01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
| // You don't want to serve HTTPS supporting for SSL3.0 any longer, see: | |
| // http://googleonlinesecurity.blogspot.de/2014/10/this-poodle-bites-exploiting-ssl-30.html | |
| import ( | |
| "crypto/tls" | |
| "net/http" | |
| ) | |
| // This code supports SSL3.0, TLS1.0, TLS1.1 and TLS1.2 | |
| // Chances are you currently do this but want to stop due to the POODLE | |
| err := http.ListenAndServeTLS(addr, "crtfile", "keyfile", handler) |
| default: | |
| @go get code.google.com/p/go.crypto/ssh | |
| go build -o bin/test_ssh_client *.go |
| package main | |
| import ( | |
| "bytes" | |
| "code.google.com/p/portaudio-go/portaudio" | |
| "encoding/binary" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" |
| cookbook 'apt' | |
| cookbook 'monit' | |
| cookbook 'logstash', git: 'git://github.com/lusis/chef-logstash.git' |
The instrucctions come from http://blogs.citrix.com/2012/07/13/xs-unattended-install/
Et voilà!
| # Create repo | |
| mkdir eventum | |
| cd eventum | |
| git init | |
| # Prepare for bzr | |
| mkdir .git/bzr | |
| mkdir .git/bzr/repo | |
| mkdir .git/bzr/map | |
| bzr init-repo --no-trees .git/bzr/repo |
| # Print the config file of every package installed | |
| for pkg in `dpkg -l|grep ii|awk '{print $2}'`;do | |
| dpkg-query --showformat='${Conffiles}\n' --show $pkg | sed '/^$/d' | |
| done | |
| # dpigs - Show which installed packages occupy the most space | |
| apt-get install debian-goodies && dpigs |
| # | |
| # pushoverbooted service | |
| # | |
| # Sends a PushOver notification when the box has finished booting. To | |
| # install, place this file in /etc/init/ You can test the service by | |
| # running 'start pushoverbooted' | |
| # | |
| # You will need to replace TOKEN with the value you get upon following the | |
| # registration process for a pushover application detailed at: | |
| # https://pushover.net/api#registration |
| #!/usr/bin/env ruby | |
| # | |
| # Needs ruby and rubygems installed | |
| # | |
| # Install deps first: | |
| # | |
| # apt-get install ruby rubygems | |
| # | |
| # gem install --no-ri --no-rdoc clamp curb diskid | |
| # |