Skip to content

Instantly share code, notes, and snippets.

View brendannee's full-sized avatar

Brendan Nee brendannee

View GitHub Profile
@brendannee
brendannee / gist:5400526
Last active May 25, 2020 08:07
SSH to raspberry pi
# determine your computers local IP address
ifconfig
# scan all devices on your network (if your computer's IP is 192.168.1.49, for example)
sudo nmap -sP 192.168.1.*
# the raspbery pi may show up as manufacturer "unknown" if you are using wireless.
# Try sshing to each device you think may be the pi
ssh pi@192.168.1.144
@brendannee
brendannee / gist:5298475
Created April 3, 2013 04:36
Force Raspberry Pi to use HDMI output - edit /boot/config.txt
hdmi_force_hotplug=1
echo -n '<CONSUMER KEY>:<CONSUMER SECRET>' | openssl base64
wget --header="Authorization: Basic <BASE64 ENCODED KEY AND SECRET>" --header="Content-Type: application/x-www-form-urlencoded;charset=UTF-8" --post-data="grant_type=client_credentials" https://api.twitter.com/oauth2/token
@brendannee
brendannee / gist:5225244
Created March 22, 2013 22:25
Setup Raspberry pi on OS X
$ diskutil unmountDisk /dev/disk3
$ sudo dd bs=128m of=/dev/disk3 if=~/Downloads/pi/2013-02-09-wheezy-raspbian.img
@brendannee
brendannee / gist:4506727
Created January 10, 2013 23:35
Create pi kiosk
@xset s off
@xset -dpms
@xset s noblank
@chromium --kiosk --incognito bart.blinktag.com/?station=16TH
@brendannee
brendannee / gist:4506719
Created January 10, 2013 23:33
Comment out screensaver
#@xscreensaver -no-splash
@brendannee
brendannee / gist:4506713
Last active December 10, 2015 23:08
edit /etc/xdg/lxsession/LXDE/autostart
$ sudo pico /etc/xdg/lxsession/LXDE/autostart
@brendannee
brendannee / gist:4506699
Last active December 10, 2015 23:08
Setup pi kiosk
$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get install chromium x11-xserver-utils unclutter xvkbd -y
$ sudo hostname transit
@brendannee
brendannee / gist:3815464
Created October 2, 2012 00:32
Start MYSQL installed with homebrew
mysql.server start
@brendannee
brendannee / gist:3764710
Created September 22, 2012 00:48
Start and Stop redis on OS X
launchctl unload -w io.redis.redis-server.plist
# do stuff, replace .rdb in /usr/local/var/db/redis/
launchctl load -w io.redis.redis-server.plist