Skip to content

Instantly share code, notes, and snippets.

@hsiboy
hsiboy / gpsd.sh
Created July 20, 2018 10:28
Adding GPS to Raspberry Pi running PiAware / Dump1090 for ADS-B Flight Tracking
sudo apt-get install -y gpsd
sudo apt-get install -y gpsd-clients
sudo apt-get install -y python-gps
sudo apt-get install -y libcap-dev
sudo apt-get install -y pps-tools
echo console=ttyACM0,115200 >> /boot/cmdline.txt
# edit /etc/rc/local and add (before the exit 0)
# sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock
@VimalShekar
VimalShekar / GetCredManCreds.ps1
Last active October 14, 2021 12:11
Retrieve username and passwords of Web Credentials stored in Credential Manager using PowerShell
#-- Get the full script here : https://github.com/VimalShekar/PowerShell/blob/master/GetCredmanCreds.ps1
#
# Function to read the IE/Edge password vault (Web Credentials portion of credential manager)
#
function Get-PasswordVaultCredentials {
#initilize empty array
$CRED_MANAGER_CREDS_LST = @()
@thomasnield
thomasnield / year_over_year_growth.sql
Created June 29, 2017 15:50
Year-over-year growth in SQL
-- =========================================
-- simple year-over-year
-- =========================================
SELECT
SUM(CASE WHEN year = 2008 THEN precipitation ELSE 0 END) AS cy_precipitation,
SUM(CASE WHEN year = 2009 THEN precipitation ELSE 0 END) AS py_precipitation,
SUM(CASE WHEN year = 2008 THEN precipitation ELSE 0.0 END) / SUM(CASE WHEN year = 2009 THEN precipitation ELSE 0.0 END) - 1.0 as change
FROM station_data
@jgamblin
jgamblin / gist:2441964a1266764ed71f3243f87bbeec
Created May 8, 2016 00:02
Install Raspi-Config and rpi-update on Kali.
sudo apt-get update
sudo apt-get install lua5.1 alsa-utils triggerhappy curl libcurl3
wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160322_all.deb
wget http://archive.raspberrypi.org/debian/pool/main/r/rpi-update/rpi-update_20140705_all.deb
dpkg -i raspi-config_20160322_all.deb
dpkg -i rpi-update_20140705_all.deb