Skip to content

Instantly share code, notes, and snippets.

View developius's full-sized avatar

Finnian Anderson developius

View GitHub Profile
@developius
developius / mac.bash_login
Created July 30, 2015 07:52
Preferred ~/.bash_login config
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/mysql/bin
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
alias ls='ls -GFh'
@developius
developius / recursive-pull.sh
Created March 24, 2015 09:04
Recursively enter all sub directories of current directory and run git pull in them
for x in `ls`; do cd $x && git pull && cd ../; done
import serial
from pynmea import nmea
ser = serial.Serial("/dev/ttyAMA0",9600)
gpgga = nmea.GPGGA()
while 1:
data = ser.readline()
if (data.startswith('$GPGGA')):
gpgga.parse(data)
print("Lat: ", gpgga.latitude
print("Long: ", gpgga.longitude