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
Host hostname.example.com | |
IdentityFile ~/.ssh/id_rsa | |
Host * | |
IdentityFile ~/.ssh/id_dev |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>dev-sync</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/rsync</string> | |
<string>-aq</string> |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { |
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
package main | |
import ( | |
"crypto/tls" | |
"log" | |
"net/http" | |
) |
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
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia \ | |
--volume /Volumes/UNTITLED\ 1 \ | |
--applicationpath /Applications/Install\ OS\ X\ Yosemite.app |
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 ( | |
"fmt" | |
"bytes" | |
) | |
func main() { | |
s := bytes.NewBufferString("hello world").Bytes() | |
fmt.Printf("%#v", s) | |
} |
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
# This must be run from GOROOT | |
cd /usr/local/go/src | |
# Options | |
# darwin_386 | |
# darwin_amd64 | |
# freebsd_386 | |
# freebsd_amd64 | |
# linux_386 | |
# linux_amd64 |
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
package main | |
import "fmt" | |
import "time" | |
func main() { | |
t := time.Now() | |
time.Sleep(10 * time.Millisecond) |
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
mkdir /usr/java | |
cp jre-7u51-linux-x64.rpm /usr/java/jre-7u51-linux-x64.rpm | |
cd /usr/java | |
rpm -ivh jre-7u51-linux-x64.rpm | |
alternatives --config java | |
java -version |
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
postconf -e 'smtp_tls_security_level = may’ | |
postconf -e 'smtp_tls_loglevel = 1’ | |
postconf -e 'smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt’ | |
service postfix restart |
NewerOlder