Skip to content

Instantly share code, notes, and snippets.

View rpi-adsb-feeder.md

Setting up Dump1090-mutability, FlightRadar24Feed, PiAware, PlaneFinder on a RaspberryPi running Raspbian

  1. Install 'lighttpd':

sudo apt install lighttpd

  1. Install 'dump1090-mutability' dependencies:
View JSHint.json
{
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: <Deprecated> Identifiers must be in camelCase
"curly" : false, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
"esversion" : 3, // {int}: Specify ECMAScript version to which code must adhere: 3 (old browsers, 5, 6)
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"freeze" : true, // true: Prohibits overwriting prototypes of native objects such as Array, Date and so on
"funcscope" : false, // true: Suppress warnings about declaring variables inside blocks while accessing later from outside e.g. 'function foo() { var bar = 0; }; bar++;'
View notes-sdr.txt
Antenna Length:
1/4th length [in m] = 74948114.5 / f [frequency in Hz]
1/4th length [in cm] = 7494.81145 / f [frequency in MHz]
Radio Frequency Spectrum Ranges:
VLF: 3kHz-30kHz 100Km-10Km
LF: 30kHz-300kHz 10Km-1Km
MF: 300kHz-3MHz 1Km-100m
HF: 3MHz-30MHz 100m-10m
View tricks-windows.txt
Add Linux Boot Option With bcdedit
1. bcdedit /create /d "Linux" /application BOOTSECTOR
2. bcdedit will return an ID for this entry (for example something like -
{de50478b-bb21-11e1-837e-001d72ceba3a}) that we will call {Linux-ID} below.
3. bcdedit /set {Linux-ID} device partition=C:
bcdedit /set {Linux-ID} path \boot-loader.bin
bcdedit /displayorder {FreeBSD_ID} /addlast
* Note: Get the BOOTSECTOR file from Linux using something like
dd if=/dev/sda3 of=/mnt/share/linux.bin bs=512 count=1
View tricks-raspbian.txt
Boot from USB:
1. Set SoC's OTP (One Time Programmable) memory for USB boot by executing:
echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt
2. After reboot you can check OTP has been programmed with:
vcgencmd otp_dump | grep 17
* Should return output: 17:3020000a
Build EDuke32:
1. Install dependencies:
View tricks-virtualbox.txt
Access Host Machine Localhost:
10.0.2.2
Access Guest Machine Localhost:
1. In VM settings under 'Network', change 'Attached to' from 'NAT' to
'Bridged Adapter'.
2. Find IP address of VM and use it to access.
View tricks-macos.txt
Clear Terminal History
1. For current session history:
history -c
2. For all history:
rm ~/.bash_historys
Create Install ISO (10.9 Mavericks onwards):
After downloading installation, execute:
# Create blank disk image
View tricks-linux.txt
Allow executable to run sudo w/o password prompt
1. Execute:
sudo visudo
2. Add line:
<username> ALL=NOPASSWD:/path/to/executable
Apt
Auto purge:
apt autoremove --purge
View tricks-android.txt
Buttons:
• GTi9105 / s2ve / Samsung S2+
Recovery mode: Home + Volume Up + Power
Download mode: Home + Volume Down + Power
• Nakasig / Tilapia / Nexus 7C 2012
Nicki / Sony Xperia M C1905
Osprey / Motorola Moto G3:
Recovery mode:
On the Bootloader/Fastboot select Recovery mode.
While holding down the Power button, press the Volume Up button.
You can’t perform that action at this time.