Skip to content

Instantly share code, notes, and snippets.

@jsavage
jsavage / relog.sh
Created November 21, 2017 14:59 — forked from sscarduzio/relog.sh
BtWiFi_with_FON automatic login written as a bash script. I have this running every 10 minutes on my raspberry pi
#!/bin/bash
# CONF
DBG=true
RELOG_UNAME=your@email.com
RELOG_PASSW=xxxxxxxxxxxxxxx
# END CONF
@jsavage
jsavage / pizero_usb_internet.sh
Created September 4, 2016 22:54 — forked from lurch/pizero_usb_internet.sh
Script to automatically provide internet access to a PiZero connected to a Linux host over a USB-network (only tested on Ubuntu 14.04)
#!/bin/bash
# Automatically setup routing and DNS for a PiZero connected over a USB-network
# NOTE: Before running this script for the first time, you need to run the
# following two commands on your Linux PC
# sudo sysctl -w net.ipv4.ip_forward=1
# sudo iptables -t nat -A POSTROUTING -s 169.254.0.0/16 -o eth0 -j MASQUERADE
# (replace eth0 in the second command with your internet-facing network device,
# e.g. wlan0 on a laptop)
# The Avahi-discovered hostname
@jsavage
jsavage / quisk_conf_fcd.py
Created November 13, 2012 12:43 — forked from csete/quisk_conf_fcd.py
Quisk configuration files for Funcube Dongle and Funcube Dongle Pro Plus
# Custom quisk_conf.py configuration file for Funcube Dongle.
# See quisk_conf_defaults.py for more information.
# In ALSA, soundcards have these names. The "hw" devices are the raw
# hardware devices, and should be used for soundcard capture.
#name_of_sound_capt = "hw:0"
#name_of_sound_capt = "hw:1"
#name_of_sound_capt = "plughw"
#name_of_sound_capt = "plughw:1"
#name_of_sound_capt = "default"