Skip to content

Instantly share code, notes, and snippets.

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.
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
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
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.
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:
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:
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
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
Linux - Post Install
Reduce system swappiness (for SSD based systems). Add the following line to
'/etc/sysctl.conf':
vm.swappiness=10
Use a ramdisk to store temporary data if you have enough RAM (for SSD based
systems). Add following lines to '/etc/fstab':
{
// 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++;'

Setting up Dump1090, PiAware, FlightRadar24Feed, PlaneFinder Client, AdsbExchange Feeder, AirNav RadarBox Feeder & OpenSky Network Feeder

  1. Fix dump1090-mutability service not working by default, due to missing udev rules:

    sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"

    sudo reboot