Skip to content

Instantly share code, notes, and snippets.

View KunalGautam's full-sized avatar

Kunal Gautam KunalGautam

View GitHub Profile
@darksidelemm
darksidelemm / 2020-11-14_FakeTLE_guide.md
Last active July 2, 2024 00:53
TLE Estimation for an Upcoming Rocket Launch

TLE Estimation for an Upcoming Rocket Launch

Scenario: RocketLab are launching 30 small-sats into space in a few days. We know that one of them is going to be transmitting on the amateur radio bands, but we haven't been able to obtain a pre-launch TLE yet. We want to get setup to use strf to listen for beacon signals (see my guide here), but we need to know when to expect the satellites. We have some basic orbital information from a press release, so how can we use this to estimate a TLE for prediction purposes?

Note: I am approaching this from the point-of-view of someone who really don't know much about orbital mechanics. I'm relying heavily on the experience of others, and the content below is my attempt at documenting the process taken.

Thanks to Cees Bassa for the amazing software as always...

@avataru
avataru / animated-link.css
Created July 4, 2018 10:17
Animated hover on links
@beevelop
beevelop / dompdf-pagebreak.html
Created April 18, 2015 07:48
explicit page break with dompdf
<div style="page-break-after: always;"></div>
@samuelkordik
samuelkordik / backup.php
Created September 7, 2013 21:26
Simple PHP script to backup MySQL database and email results to me. Adapted from (here)[http://davidwalsh.name/backup-mysql-database-php] with improvements made including using MySQLi, gzipping the backup file (significantly reduces time to email), adding a timing function, and generally making more functional. Note two functions here left fairl…
<?php
/**
* Handles backing up database automatically and emailing it to me.
*/
date_default_timezone_set('America/Chicago'); // necessary in some server environments before using any Date/Time functions.
$timestart = microtime(true);
config(); // sets up constants and configurations for database credentials, error handling, etc. including using local environment specific options.
$filename = backup_tables(DB_HOST, DB_USER, DB_PASS, DB_NAME); // backs up data.