Skip to content

Instantly share code, notes, and snippets.

View spangborn's full-sized avatar

Sawyer Pangborn spangborn

View GitHub Profile
@fasiha
fasiha / README.md
Last active November 3, 2023 20:40
Set up RTL-SDR, dump1090, and dump978 for ADS-B/TIS-B/FIS-B/UAT on macOS

Introduction

I’m not very familiar with the aviation jargon (see FAA’s ADS-B FAQ), but ADS-B is a next-gen system where aircraft are equipped with transponders that periodically broadcast their own positions and receive the reports from both other aircraft (direct air-to-air) as well as air-traffic control (ATC) ground transmitters.

There are two separate ADS-B radio bands: the commercial aviation (CA) is at 1090 MHz while the general aviation (GA) is at 978 MHz. If I can be permitted a gross generalization—the former corresponds to big commercial jets and the latter to small private aircraft.

Because ADS-B is designed to democratize airspace situational awareness (in contrast to the older setup, like from films, where a central air-traffic controller is coordinating all these aircraft that can’t see each other), we can buy cheap RF receivers to pick up and decode the messages being broadcast by aircraft and ground towers to get our own picture of the

@matthewtole
matthewtole / pebble-assist.h
Last active December 29, 2015 16:39
Pebble Assist - A collection of utility macros to make Pebble app development a bit simpler.
/***
* Pebble Assist
* Copyright (C) 2014 Matthew Tole
*
* Version 0.2.0
***/
/**
The MIT License (MIT)
@da-n
da-n / wp-permissions.sh
Last active December 18, 2015 08:49
Configures WordPress file permissions based on recommendations
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
# Modofied by Daniel Davidson
#
WP_OWNER=wpowner # <-- wordpress owner
WP_GROUP=wpgroup # <-- wordpress group
@bradrobertson
bradrobertson / modal-responsive.css
Created September 6, 2012 11:44
Bootstrap Responsive Modal
// Responsive shizzle
@media (max-width: 767px) {
// Modals
.modal {
position: absolute;
top: 20px;
left: 20px;
right: 20px;
width: auto;
@rlemon
rlemon / gist:1780212
Created February 9, 2012 14:12
PHP get CPU information from /proc/stat
<?php
/* Gets individual core information */
function GetCoreInformation() {
$data = file('/proc/stat');
$cores = array();
foreach( $data as $line ) {
if( preg_match('/^cpu[0-9]/', $line) )
{
$info = explode(' ', $line );
$cores[] = array(