Skip to content

Instantly share code, notes, and snippets.

@kanchudeep
kanchudeep / customise-windows-10.cmd
Created December 31, 2023 01:05
Batch file to customise Windows 10 22H2
:: Script to customise Windows 10 22H2
@echo off
:: System related
echo Setting 'Notify before downloading and installing any updates' for Windows Updates...
reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /f /v AUOptions /t REG_DWORD /d 2
echo.
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
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
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.
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':
@kanchudeep
kanchudeep / setting-up-joomla-on-debian-ubuntu-linux.txt
Created July 28, 2022 07:29
Setting Up Joomla on Debian/Ubuntu Linux
# Update apt & do a full upgrade
sudo apt update && sudo apt full-upgrade
# Install Apache2, appt https support & MariaDB
sudo apt install --yes apache2 apt-transport-https mariadb-server mariadb-client
# Setup database:
sudo mysql_secure_installation

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

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
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:
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