Skip to content

Instantly share code, notes, and snippets.

View astro's full-sized avatar

Astro astro

View GitHub Profile
@astro
astro / scrape.js
Last active August 29, 2015 14:05
// npm i crawler && node scrape.js && less scraped.json
var fs = require('fs');
var resolve = require('url').resolve;
var Crawler = require("crawler").Crawler;
function trim(s) {
return s.replace(/^\s+/gm, "").replace(/\s+$/gm, "");
}
@astro
astro / keybase.md
Created October 12, 2014 00:11
keybase.md

Keybase proof

I hereby claim:

  • I am astro on github.
  • I am astro (https://keybase.io/astro) on keybase.
  • I have a public key whose fingerprint is A5EE 826D 645D BE35 F9B0 9933 5851 2AE8 7A69 900F

To claim this, I am signing this object:

@astro
astro / flash-arduboy.sh
Created February 19, 2017 23:22
Flash .hex on Arduboy
PORT=/dev/ttyACM1
HEX=hollow_v0.31.hex
ard-reset-arduino --caterina $PORT --verbose
avrdude -P /dev/ttyACM1 -p atmega32u4 -c avr109 -b 57600 -D -Uflash:w:$HEX:i
@astro
astro / flake.lock
Created October 29, 2023 01:04
microvm.nix CHV + tap example
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",