Skip to content

Instantly share code, notes, and snippets.

@russellsmithies
russellsmithies / gist:d64dd2580ba7180fc8c83ff7c0eea83f
Created October 4, 2026 00:08
One page webap for astrophotography planning.
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nebula, Planet & Moon Sky Tracker - Astronomical Darkness Trajectories</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
@russellsmithies
russellsmithies / astrofilter.py
Last active October 2, 2026 20:52
Quality filter astro .fits file
#!/usr/bin/python3.12
import argparse
import os
import sys
from concurrent.futures import ProcessPoolExecutor, as_completed
import numpy as np
import polars as pl
from astropy.io import fits
from astropy.stats import SigmaClip
@russellsmithies
russellsmithies / adsb_filter.py
Last active August 12, 2026 20:23
ADS-B filter
import argparse
import datetime
import json
import os
import time
import urllib.error
import urllib.request
from tabulate import tabulate
@russellsmithies
russellsmithies / Vagrantfile
Created August 10, 2023 03:12
A Vagrantfile to create a small HTCondor cluster
# -*- mode: ruby -*-
# vi: set ft=ruby :
#Total number of nodes
NODE_COUNT = 5
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = false
@russellsmithies
russellsmithies / gist:f91a5f62f9219447a147dab7357a3188
Created May 31, 2021 01:42
ont-bonito Singularity definition
BootStrap: docker
From: nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04
%post
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
echo 'export LC_ALL=C.UTF-8' >> $SINGULARITY_ROOTFS/$SINGULARITY_ENVIRONMENT
echo 'export LANG=C.UTF-8' >> $SINGULARITY_ROOTFS/$SINGULARITY_ENVIRONMENT