Skip to content

Instantly share code, notes, and snippets.

@schamp
schamp / onionchip.md
Last active December 24, 2016 20:36
How to make an OnionCHIP, a Tor transparent proxy access point for Next Thing Co's C.H.I.P.

0. Initial Setup

0.0 Connect with USB Serial

Connect your CHIP to your PC with a USB data cable, then login:

$ ls /dev/tty.usb*
/dev/tty.usbmodem201413
$ screen /dev/tty.usbmodem201413
Debian GNU/Linux 8 chip ttyGS0

chip login: root
@schamp
schamp / custom_chip.md
Created January 11, 2017 20:59
Build a custom Chip image

Keybase proof

I hereby claim:

  • I am schamp on github.
  • I am schamp (https://keybase.io/schamp) on keybase.
  • I have a public key ASCjlc3n9mkU61hheku1Z3CSQYIsMAVXwHp_9gSylDpxTgo

To claim this, I am signing this object:

@schamp
schamp / raspberry-pi-zero-wireless-router.md
Last active March 31, 2017 00:53
How to configure the base image for an RPiZeroW wireless router using TOR, OpenVPN or PassThru

Prepare the image

Flash an image on to an SD card. Use the latest Jessie at least.

Gain access to the device

Using these instructions (copied, from here https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a , for convenience), get access to the pi via the USB OTG ethernet device:

Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)

To make speech recognition package work:
```
sudo aptitude install pocketsphinx
sudo aptitude install python-gst0.10 gstreamer-0.10 gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-pocketsphinx
```
Find your desired card with:
```
cat /proc/asound/cards
@schamp
schamp / instructions.txt
Last active August 8, 2020 22:04
Patch solarus-quest-editor for retropie
# from scratch on retropi raspberry pi 4:
sudo apt-get install aptitude
sudo aptitude install build-essential cmake pkg-config libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libluajit-5.1-dev libphysfs-dev libopenal-dev libvorbis-dev libmodplug-dev qtbase5-dev qttools5-dev qttools5-dev-tools libglm-dev
# when it complains about dbus dependencies or something, choose to upgrade the package
wget (solarus-dev.zip) && unzip
wget (solarus-quest-editor-dev.zip) && unzip
cd solarus-dev && mkdir build && cd build
export SOLARUS=/home/pi/solarus
cmake .. -DCMAKE_INSTALL_PREFIX=$SOLARUS
make
# adapted the following from:
# https://stackoverflow.com/questions/14141170/how-can-i-just-list-undocumented-members-with-sphinx-autodoc#14238449
# set up the types of members to check that are documented
members_to_watch = [
'module',
'exception',
'function',
'class',
'method',
'attribute',