This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: rtl_rpcd | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: rtl_rpcd RTL-SDR RPC daemon | |
| # Description: Receives RF and IR messages from a RTLSDR dongle | |
| ### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # Quick & dirty script to power down the computer when receiving | |
| # a "power button" IR signal from the RTL remote over RTL-SDR dongle | |
| # via rpc_ir librtlsdr: https://github.com/rxseger/librtlsdr/pull/1 | |
| # Intended for use with Raspberry Pi, which lacks a built-in power button | |
| # Usage: | |
| # rtl_rpcd -I 1235 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nec-pwr | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: NEC IR power-off daemon | |
| # Description: Receives IR messages from a RTLSDR dongle | |
| # and shuts down when the remote power button is pressd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew tap dholm/sdr | |
| brew install dholm/sdr/liquid-dsp | |
| # problem: installs liquid-dsp 1.2.0, released Apr 26, 2012, | |
| # FIX: brew install --HEAD dholm/sdr/liquid-dsp | |
| git clone https://github.com/miek/inspectrum | |
| # https://github.com/miek/inspectrum/tree/fc9e575052a069923a21b496f73f2b4867539a2f | |
| cd inspectrum | |
| cmake . | |
| make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import RPi.GPIO as GPIO | |
| import time | |
| GPIO.setmode(GPIO.BOARD) | |
| BTN_G = 11 # G17 | |
| BTN_R = 12 # G18 | |
| BTN_Y = 13 # G27 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #### MOVED TO https://github.com/rxseger/flightled | |
| ### BEGIN INIT INFO | |
| # Provides: flightled | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Light up LEDs when a watched flight is observed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # Light up LEDs using GPIO in response to dump1090 flights | |
| ### MOVED TO https://github.com/rxseger/flightled | |
| import socket | |
| import select | |
| import time | |
| import datetime | |
| import os | |
| import RPi.GPIO as GPIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <crypt.h> | |
| int main(int argc, char **argv) { | |
| if (argc < 3) { | |
| fprintf(stderr, "usage: %s key salt\n", argv[0]); | |
| return -1; | |
| } | |
| char *result = crypt(argv[1], argv[2]); | |
| if (!result) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # interrupt-based GPIO example using LEDs and pushbuttons | |
| import RPi.GPIO as GPIO | |
| import time | |
| import threading | |
| GPIO.setmode(GPIO.BOARD) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: gpint | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Interrupt-based GPIO LED/pushbutton daemon | |
| # Description: Listens for button events and lights up LEDs | |
| ### END INIT INFO |