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
# download iot core iso file | |
# curl http://go.microsoft.com/fwlink/?LinkId=616847 | |
curl http://download.microsoft.com/download/8/C/B/8CBE5D09-B5C5-462B-8043-DAC64938FDAC/IOT%20Core%20RPi.ISO > IOT-Core-RPi.iso | |
# install p7zip for decompress *.iso and *.msi files | |
sudo port install p7zip | |
# decompress files | |
7z x IOT-Core-RPi.ISO | |
7z x Windows_10_IoT_Core_RPi2.msi |
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 | |
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/ | |
## | |
## Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
## software and associated documentation files (the "Software"), to deal in the Software | |
## without restriction, including without limitation the rights to use, copy, modify, | |
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
## permit persons to whom the Software is furnished to do so, subject to the following | |
## conditions: |
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
# Get a random line from the Zen of Python without a print (preferably for a colorful cow to chant!) | |
# Replace stdout by an anonymous class that returns nothing on write() | |
import sys | |
stdout = sys.stdout | |
sys.stdout = type('BlackHole', (), {'write': (lambda self, string: '')})() | |
# This import's output has now been supressed | |
import this |
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
2015-06-10 19:58:21 +1000 | |
python | |
-c | |
import setuptools, tokenize | |
__file__ = 'setup.py' | |
exec(compile(getattr(tokenize, 'open', open)(__file__).read() | |
.replace('\r\n', '\n'), __file__, 'exec')) | |
--no-user-cfg | |
install |
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 main() | |
if length(ARGS) < 2 | |
println(STDERR, "Usage: fastq_rnd_seek_proper.jl filename numsamples") | |
exit() | |
end | |
filename = ARGS[1] | |
numsamples = parse(Int, ARGS[2]) | |
pattern = r"@.+[\n\r]+[A-Z-]+[\n\r]+\+[\n\r]+.+[\n\r]{0,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
/_Inline |
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
cd into /tmp/kitchen. | |
/opt/chef/embedded/bin/gem install chef-zero | |
/opt/chef/embedded/bin/chef-zero -d | |
knife cookbook upload -a -c client.rb | |
chef-shell -z -c client.rb -o '<YOUR RECIPE>' |
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
# Ask for the administrator password upfront | |
sudo -v | |
# homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew doctor | |
# Ruby Version Manager & latest Ruby | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
source ~/.rvm/scripts/rvm |
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
# regions | |
do_regions_sfo1: 3 | |
do_regions_nyc2: 4 | |
do_regions_ams2: 5 | |
do_regions_sgp1: 6 | |
do_regions_lon1: 7 | |
# sizes | |
do_sizes_32gb: 60 | |
do_sizes_16gb: 61 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.