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/sh | |
cd /tmp | |
installer=setup-x86_64.exe | |
wget http://cygwin.com/${installer} | |
chmod +x ${installer} | |
exec ./${installer} |
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
set autohidecursor | |
let barposition = "bottom" | |
let blacklists = ["https://inbox.google.com/*"] | |
let searchalias d = "duckduckgo" | |
imap <C-i> editWithVim | |
" map <Space> : | |
map <C-f> scrollFullPageDown | |
map <C-b> scrollFullPageUp |
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
snippet userstory | |
h6.+User Story+ | |
*As a${2:n}* ${1:<STAKEHOLDER>}, *I need* ${3:<SOME GOAL>} *so that* ${4:<SOME REASON>}. | |
${5: | |
h6.+Suggested Implementation Notes+ | |
* ${6:TODO} | |
} |
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 System.Environment | |
main = getArgs >>= test | |
test :: [String] -> IO() | |
test x | |
| x !! 0 == "foo" = putStrLn "w00t!" | |
| otherwise = putStrLn(x !! 0 ++ "bar") |
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
#!/usr/bin/python | |
import socket | |
import struct | |
grp = 'xxx.xxx.xx.xx' | |
port = 7001 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 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
ps -p $$ | awk 'END{ print $NF }' | egrep -q 't?csh' |
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
FROM centos:5 | |
RUN echo "exec gnome-session" > ~/.xinitrc && chmod 777 ~/.xinitrc | |
RUN yum --nogpgcheck -y install gnome-desktop gnome-session gnome-terminal x11vnc xorg-x11-server-Xvfb | |
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd | |
CMD x11vnc -forever -usepw -create -auth /var/lib/gdm/:0.Xauth |
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
*.l#* |
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 | |
port = "/dev/ttyACM0" | |
board = "uno" | |
sketch = "/usr/share/arduino/examples/ArduinoISP/ArduinoISP.ino" | |
# We need a sketch | |
if [ ! -f "${sketch}" ]; then | |
echo "ERROR: Could not find the Arduino ISP sketch (${sketch})" >&2 | |
exit 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
#!/bin/bash | |
# http://archlinuxarm.org/platforms/armv6/raspberry-pi | |
here=$(cd $(dirname $0); pwd) | |
[ $UID != 0 ] && exec sudo ${here}/$0 $@ | |
dir=`mktemp -d` && cd $dir | |
device="/dev/mmcblk0" | |
bootPart="${device}p1" |
OlderNewer