Skip to content

Instantly share code, notes, and snippets.

View gawbul's full-sized avatar

Steve Moss gawbul

View GitHub Profile
@copyfun
copyfun / flash_win10IoT_onto_sdcard_OSX.sh
Last active September 15, 2023 10:21
Install Windows 10 IoT core on Raspberry Pi 2 using OS X
# 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
@DaveWoodCom
DaveWoodCom / fixXcode6OnElCapitan.sh
Last active September 8, 2023 21:02
Script to fix Xcode 6.x so that it will run on El Capitan
#!/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:
@AgustinLado
AgustinLado / cowzen.py
Created June 29, 2015 15:31
Get a random line from the Zen of Python without a print (preferably for a colorful cow to chant!)
# 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
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
@dcjones
dcjones / gist:9f20218f58e438c96476
Created May 21, 2015 16:17
Random FASTQ entries
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}"
@rocky
rocky / .gitignore
Last active August 29, 2015 14:12
VEP speedup testing
/_Inline
@mattjbarlow
mattjbarlow / gist:242b66cdae6938d34419
Created December 22, 2014 15:40
Chef Shell in Test Kitchen
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>'
@blahah
blahah / dev_setup.sh
Last active August 29, 2015 14:05
OSX dev setup (wip)
# 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
@mrwilson
mrwilson / do_codes_20140729.yml
Last active August 29, 2015 14:04
get_digital_ocean_codes.sh
# 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.