This file contains 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
#!/bin/bash | |
assignProxy(){ | |
HTTP_PROXY_ENV="http_proxy ftp_proxy all_proxy HTTP_PROXY FTP_PROXY ALL_PROXY" | |
HTTPS_PROXY_ENV="https_proxy HTTPS_PROXY" | |
for envar in $HTTP_PROXY_ENV | |
do | |
export $envar=$1 | |
done | |
for envar in $HTTPS_PROXY_ENV |
This file contains 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
#!/bin/bash | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This file contains 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
console.log("Usage Syntax: scanScope($scope.model, 'SCANFOR');"); | |
function scanScope(whatToScan, scanValue, parentTree) { | |
var insertString = ''; | |
for (var key in whatToScan) { | |
if (((whatToScan[key] != null) && (whatToScan[key].indexOf != undefined) && whatToScan[key].indexOf(scanValue) > -1) || key.indexOf(scanValue) >= 0) { | |
if (parentTree != null) { | |
insertString = parentTree + '.'; | |
} else { | |
insertString = ''; | |
} |
This file contains 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
/** | |
* rotated heading | |
*/ | |
#testwrap { border:1px solid red; height:300px; position:relative; width:80% } | |
#testwrap:before { content:"test"; background:blue; color:orange; } | |
#testwrap:before { | |
transform: rotate(90deg); | |
-webkit-transform: rotate(90deg); |