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
| curl http://tachyon.vektra.io/install.sh > it.sh && test $(openssl sha1 < it.sh) = "23fb0450b152dfaa8331dd37c3a4c13d4de9dbb8" && bash it.sh |
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
| modprobe zram num_devices=1 | |
| totalmem=`free | grep -e "^Mem:" | sed -e 's/^Mem: *//' -e 's/ *.*//'` | |
| mem=$(((totalmem / 2) * 1024)) | |
| echo $mem > /sys/block/zram0/disksize | |
| mkswap /dev/zram0 | |
| swapon -p 5 /dev/zram0 |
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
| mem = 1024 * 1024 | |
| ary = [] | |
| i = 0 | |
| seed = (0..mem).map { rand(255) }.pack("C*") | |
| loop { | |
| p i | |
| x = seed.dup |
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
| modprobe zram | |
| echo 512M > /sys/block/zram0/disksize | |
| mkswap /dev/zram0 | |
| swapon /dev/zram0 |
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
| mem = 1024 * 1024 | |
| ary = [] | |
| i = 0 | |
| loop { | |
| p i | |
| ary << (" " * mem) | |
| i += 1 | |
| } |
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
| class TestMe | |
| def run | |
| 3 + 4 | |
| end | |
| end | |
| TestMe.new.run |
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
| #!/bin/sh | |
| if [ -z "$1" ]; then | |
| echo "gem_permdelete <gem name>" | |
| exit 1 | |
| fi | |
| echo "Connecting to rubygems.org..." | |
| exec ssh -t -C app02.production.rubygems.org "cd /applications/rubygems/current && sudo -u deploy ./script/permadelete $1" |
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
| urls = %w! | |
| https://www.youtube.com/watch?v=lYIRO97dhII | |
| https://www.youtube.com/watch?v=IM2MCCd-EnA | |
| https://www.youtube.com/watch?v=LkCNJRfSZBU | |
| https://www.youtube.com/watch?v=FtW7eaSvd6A | |
| https://www.youtube.com/watch?v=sTSA_sWGM44 | |
| https://www.youtube.com/watch?v=21OH0wlkfbc | |
| https://www.youtube.com/watch?v=e2jjCMgGOYw | |
| https://www.youtube.com/watch?v=b2LseRItJb4 | |
| ! |
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
| 54.236.207.133 - - [07/Aug/2014:18:10:30 +0000] "HEAD /pd4ml/pd4ml_fonts/3.80/pd4ml_fonts-3.80-javadoc.jar HTTP/1.1" 404 0 "-" "Artifactory/3.2.2" | |
| 54.236.207.133 - - [07/Aug/2014:18:10:30 +0000] "HEAD /net/jcip/jcip-annotations/1.0/jcip-annotations-1.0-javadoc.jar HTTP/1.1" 404 0 "-" "Artifactory/3.2.2" | |
| 54.236.207.133 - - [07/Aug/2014:18:10:30 +0000] "HEAD /org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7-sources.jar HTTP/1.1" 404 0 "-" "Artifactory/3.2.2" | |
| 54.236.207.133 - - [07/Aug/2014:18:10:31 +0000] "HEAD /org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7-sources.jar HTTP/1.1" 404 0 "-" "Artifactory/3.2.2" | |
| 54.236.207.133 - - [07/Aug/2014:18:10:31 +0000] "HEAD /org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7-javadoc.jar HTTP/1.1" 404 0 "-" "Artifactory/3.2.2" | |
| 54.236.207.133 - - [07/Aug/2014:18:10:31 +0000] "HEAD /org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1-javadoc.jar HTTP/1.1" 404 0 "-" "Artifactory/3.2.2" | |
| 54.236.207.133 - - [07/Aug/2014:18:10:32 +0000] "HEAD /commons-httpclient/common |
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
| zero :: config/packer> packer build -only=amazon-ebs vm.json | |
| amazon-ebs output will be in this color. | |
| ==> amazon-ebs: Creating temporary keypair: packer 53c975ff-7621-655b-eecc-c0362fd9d8e2 | |
| ==> amazon-ebs: Creating temporary security group for this instance... | |
| ==> amazon-ebs: Authorizing SSH access on the temporary security group... | |
| ==> amazon-ebs: Launching a source AWS instance... | |
| ==> amazon-ebs: Error launching source instance: The security group 'sg-d304b9b6' does not exist in VPC 'vpc-a14728ca' (InvalidGroup.NotFound) | |
| ==> amazon-ebs: Deleting temporary security group... | |
| ==> amazon-ebs: Deleting temporary keypair... |