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 | |
function getWhatWeNeed { | |
brew install erlang | |
brew install gnuplot | |
} | |
function getCode { | |
echo -e "\n\nDownloading code...\n\n" | |
# Get the version of tsung we need |
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 | |
DATA_FILE="$1" | |
OUT_FILE="$DATA_FILE.json" | |
if [ ! -f "$DATA_FILE" ]; then | |
echo "Data file is missing please specify a data file on the command line." | |
exit 1 | |
fi |
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
[alias] | |
dt = difftool | |
mt = mergetool | |
[diff] | |
tool = kdiff3 | |
prpmpt = false | |
[merge] | |
tool = kdiff3 |
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
function timeStamp() { | |
var d = new Date(); | |
var hour = ('0' + d.getHours()).slice(-2); | |
var min = ('0' + d.getMinutes()).slice(-2); | |
var sec = ('0' + d.getSeconds()).slice(-2); | |
var mil = ('000' + d.getMilliseconds()).slice(-3); | |
return hour + ":" + min + ":" + sec + "(" + mil + ")"; | |
} | |
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
import ( | |
"log" | |
"net/http" | |
"crypto/tls" | |
"net" | |
"code.google.com/p/go.net/websocket" | |
) | |
const ( | |
tlsListenAddress = ":443" // Where are we listening for TLS connections (address:port) |
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
' Does the following: | |
' 1: Convert all of the CVS in the current directory to XLSX files. | |
' 2: Deletes the CSVs | |
' | |
' Usage: | |
' 1: Place this script in the directory with the CSVs. | |
' 2: Double click it. | |
' 3: Jobs a good'un | |
' | |
' Borrowing heavily from here: |
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
[puppetlabs-deps] | |
name=Puppet Labs Dependencies | |
baseurl=https://yum.puppetlabs.com/el/6/dependencies/x86_64/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs |
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
Acquire::http::Pipeline-Depth "0"; | |
Acquire::http::No-Cache=True; | |
Acquire::BrokenProxy=true; |
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 | |
# The location of the JDK | |
NEW_JDK_LOCATION="/opt/java/jdk1.7.0_25" | |
sudo update-alternatives --install "/usr/bin/java" "java" "$NEW_JDK_LOCATION/bin/java" 1 | |
sudo update-alternatives --install "/usr/bin/javac" "javac" "$NEW_JDK_LOCATION/bin/javac" 1 | |
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "$NEW_JDK_LOCATION/bin/javaws" 1 | |
sudo update-alternatives --install "/usr/bin/jarsigner" "jarsigner" "$NEW_JDK_LOCATION/bin/jarsigner" 1 | |
sudo update-alternatives --install "/usr/bin/javah" "javah" "$NEW_JDK_LOCATION/bin/javah" 1 |
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
## begin nat | |
*nat | |
:PREROUTING ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A PREROUTING -i eth2 -p tcp --dport 80 -j DNAT --to-destination :8080 | |
COMMIT | |
### end nat |
OlderNewer