Skip to content

Instantly share code, notes, and snippets.

View magicbug's full-sized avatar
🛰️
On the lookout for freelance work!

Peter Goodhall magicbug

🛰️
On the lookout for freelance work!
View GitHub Profile
@magicbug
magicbug / Doppler.SQF
Last active November 30, 2018 17:24
SatPC32 Files used by 2M0SQL
; SatPC32 Doppler.SQF file
; Created by Peter 2M0SQL
;
; This SQF file is the current linear & fm transponders plus data satellites
;
;
; Linear Satellites
;
@magicbug
magicbug / Doppler.SQF
Last active November 30, 2018 17:10
SpaceX SSO-A launch SatPC32 Files
FOX1-Cliff,145920.0,435300.0,FM,FM,NOR,0,0,FM U/V
FOX1-Cliff,145920.0,1267300.0,FM,FM,NOR,0,0,FM L/V
ESEO,145895.0,1263500.0,FM,FM,NOR,0,0,FM L/V
ESEO,437000,0,FM,FM,NOR,0,0,Beacon
K2SAT,435835.0,145980.0,FM,FM,NOR,0,0,FM V/U
ExseedSat,145900.0,435340.0,FM,FM,NOR,0,0,FM U/V
@magicbug
magicbug / latlong_to_locator.php
Last active November 11, 2023 13:49
Latlong to Locator (Gridsquare) PHP Example
<?php
// Example Lat/Long aka IO91js
$latitude = "51.756435";
$longitude = "-1.246042";
echo latlong_to_locator($latitude, $longitude);
function latlong_to_locator ($latitude, $longitude) {
@magicbug
magicbug / webcam.php
Created September 17, 2012 21:19
PHP Code for overlaying logbook information on webcam image.
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header('Content-Type: image/png');
function LoadJpeg($imgname)
{
/* Attempt to open */
$im = @imagecreatefromjpeg($imgname);
/* See if it failed */