Skip to content

Instantly share code, notes, and snippets.

View whs-piwars's full-sized avatar

WHS PiWars! whs-piwars

View GitHub Profile
# For our robot, so that we can edit files using VSCode on our laptop, remotely:
sshfs pi@whs-pi-robot:/home/pi /home/USERNAME/Documents/PiWars/sshfs
@whs-piwars
whs-piwars / gist:4e0ce47fc923dfe2868f1f272167ee38
Created January 31, 2017 09:33
Link Bluetooth joystick to Raspberry Pi 3
bluetoothctl
agent on
default-agent
pair xx:xx:xx:xx:xx:xx
trust xx:xx:xx:xx:xx:xx
quit
Replace xx:xx:xx:xx:xx:xx with device ID which can be discovered by typing: scan on
For the OUYA device we have, you should see entries for:
/dev/input/event0
@whs-piwars
whs-piwars / gist:cb2a19e1cf223afb2711590472b48559
Created October 31, 2016 20:07
Install vscode on Raspberry Pi 3...
See: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs build-essential libx11-dev
See: https://gist.github.com/ted-piotrowski/e5c223a6a2f6f3079cb38c959ceecaa6
git clone https://github.com/Microsoft/vscode
cd vscode
./scripts/npm.sh install --arch=armhf