Skip to content

Instantly share code, notes, and snippets.

@jkutner
jkutner / raspberry-pi-autoguider.md
Last active January 31, 2024 20:38
Raspberry Pi Autoguider for Astrophotography

This is an update to an older post about how to Turn a Raspberry Pi into an Astrophotography Autoguider. I rebuilt my autoguider from scratch with newer versions of the software. It's even a bit easier now.

Step 1: Install Raspberry Pi OS

Follow the official instructions and install the "Raspberry Pi OS with desktop and recommended software". All of the commands in the steps that follow are run from a terminal session on the Raspberry Pi.

Step 2: Install Git

@jkutner
jkutner / atik-indi-phd2-raspbian-instructions.md
Last active January 19, 2024 19:09
Turn a Raspberry Pi into an Astrophotography Autoguider
@jkutner
jkutner / buffalo-eclipse-data.csv
Created October 8, 2023 18:06
Python CSV reader
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1803-Feb-21 P 17:11:43 07 - 17:51(s) 0(s) 256 - 17:51(s) 0(s) 0.443(s) 0.333(s) -
1805-Jun-26 P 18:47:34 11 - 19:31:10 03 299 - 19:54(s) 0(s) 0.548 0.453 -
1806-Jun-16 T 09:37:41 52 10:54:41 10:56:05 64 134 10:57:29 12:18:46 70 1.059 1.000 2m48s
1809-Apr-14 P 15:56:39 32 - 16:43:45 23 261 - 17:27:33 15 0.174 0.083 -
1811-Sep-17 P 12:15:42 50 - 13:56:47 43 218 - 15:29:09 30 0.9 0.844 -
1815-Jul-06 P 19:06:36 07 - 19:53(s) 0(s) 302 - 19:53(s) 0(s) 0.71(s) 0.645(s) -
1819-Apr-24 P 05:23(r) 0(r) - 05:48:52 04 077 - 06:35:54 13 0.395 0.277 -
1821-Aug-27 P 07:34:26 21 - 08:47:18 34 110 - 10:07:10 47 0.64 0.545 -
1822-Feb-21 P 15:08:58 25 - 16:09:42 17 237 - 17:06:16 08 0.447 0.332 -
1824-Jun-26 P 19:11:39 07 - 19:42:52 02 301 - 19:54(s) 0(s) 0.22 0.121 -
@jkutner
jkutner / Main.java
Created September 20, 2016 16:55
Jetty with health check
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.*;
import java.net.URI;
import java.net.URISyntaxException;
import java.sql.*;
import java.net.*;
import javax.net.ssl.*;
def clear():
if sys.platform.startswith("linux"):
os.system("clear")
elif sys.platform.startswith("win32"):
os.system("cls")
elif sys.platform.startswith("darwin"):
os.system("clear")
$ falcon addons init sfdc/ajna 
$ cat falcon/addons/main.tf
module "falcon_addon_ajna" { 
source = "tfregistry.registry.buildndeliver.aws-dev2-uswest2.aws.sfdc.cl/falcon-addons/ajna" 
version = "1.0" 
# any other config you might need, like resource_name
}
$ falcon inspect --local

Joe's Cloud Native Buildpacks

[project]
# ...
[[images]]
stack = "heroku-20"
path = "./modules/www"
name = "web-app"
[[images]]
stack = "heroku-18"
def gyro_drive(self, speed, heading, distance):
self.robot.reset()
actual_distance = 0
while actual_distance < distance:
correction = self.gyro.angle() * -10
self.robot.drive(speed, correction)
wait(10)
actual_distance = self.robot.distance()