This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def busyExecutors = Jenkins.instance.computers | |
| .collect { | |
| c -> c.executors.findAll { it.isBusy() } | |
| } | |
| .flatten() | |
| busyExecutors.each { e -> | |
| if (e.getCurrentExecutable().getParent().getOwnerTask().getName() == "JobName") { | |
| e.doStop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $dictionary["custom_module_securitygroups"] = array( | |
| 'true_relationship_type' => 'many-to-many', | |
| 'relationships' => | |
| array( | |
| 'custom_module_securitygroups' => | |
| array( | |
| 'lhs_module' => 'SecurityGroups', | |
| 'lhs_table' => 'securitygroups', | |
| 'lhs_key' => 'id', | |
| 'rhs_module' => 'custom_Module', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream demo1.localhost { | |
| server 172.17.0.4:5000; | |
| server 172.17.0.3:5000; | |
| } | |
| server { | |
| #ssl_certificate /etc/nginx/certs/demo.pem; | |
| #ssl_certificate_key /etc/nginx/certs/demo.key; | |
| gzip_types text/plain text/css application/json application/x-javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name '*.csv' -exec cp --parents \{} /target \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Forms = (function(Forms) { | |
| Forms.requestDemo = { | |
| init: function(){ | |
| var self = Forms.requestDemo; | |
| console.log('initalize stuff'); | |
| self._initFormFields(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Specify where we will install | |
| # the xip.io certificate | |
| SSL_DIR="/etc/ssl/xip.io" | |
| # Set the wildcarded domain | |
| # we want to use | |
| DOMAIN="*.xip.io" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iptables -t nat -A PREROUTING -p tcp --dport 3306 -j DNAT --to 10.0.4.172:3306 | |
| iptables -A FORWARD -p tcp -d 10.0.4.172 --dport 3306 -j ACCEPT | |
| iptables -t nat -A POSTROUTING -j MASQUERADE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| du -d 1 ~ | sort -n -r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Source: http://www.portugal-a-programar.pt/topic/58852-algoritmo-de-validacao-de-nif-pt/ | |
| */ | |
| function validaContribuinte(contribuinte){ | |
| // algoritmo de validação do NIF de acordo com | |
| // http://pt.wikipedia.org/wiki/N%C3%BAmero_de_identifica%C3%A7%C3%A3o_fiscal | |
| var temErro=0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gunzip < DUMP_FILE.sql.gz | mysql --user=DB_USER --password DB_NAME |
NewerOlder