Skip to content

Instantly share code, notes, and snippets.

Avatar
🛰️
On the lookout for freelance work!

Peter Goodhall magicbug

🛰️
On the lookout for freelance work!
View GitHub Profile
@magicbug
magicbug / webcam.php
Created Sep 17, 2012
PHP Code for overlaying logbook information on webcam image.
View webcam.php
<?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 */
@magicbug
magicbug / latlong_to_locator.php
Last active Jun 6, 2019
Latlong to Locator (Gridsquare) PHP Example
View latlong_to_locator.php
<?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 / Doppler.SQF
Last active Nov 30, 2018
SpaceX SSO-A launch SatPC32 Files
View Doppler.SQF
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 / Doppler.SQF
Last active Nov 30, 2018
SatPC32 Files used by 2M0SQL
View Doppler.SQF
; SatPC32 Doppler.SQF file
; Created by Peter 2M0SQL
;
; This SQF file is the current linear & fm transponders plus data satellites
;
;
; Linear Satellites
;