Skip to content

Instantly share code, notes, and snippets.

View AaronJackson's full-sized avatar
📟
writing yaml

Aaron S. Jackson AaronJackson

📟
writing yaml
View GitHub Profile
const IRCCloud = require('irccloud');
const MQTT = require('mqtt')
const mqtt = MQTT.connect('mqtt://mqtt address', {
username: '',
password: '',
clientId: 'nodejs_irccloud',
});
console.log(mqtt);
from rank_bm25 import BM25Okapi
import glob, os
import numpy as np
import cv2
import string
files = []
corpus = []
similarity = []
@AaronJackson
AaronJackson / keyboard.conf
Created March 28, 2022 19:06
xorg keyboard config
Section "InputClass"
Identifier "hhkb"
MatchIsKeyboard "on"
MatchProduct "PFU Limited HHKB-Classic"
Option "XkbLayout" "us"
EndSection
Section "InputClass"
Identifier "laptop-kb"

Keybase proof

I hereby claim:

  • I am aaronjackson on github.
  • I am asjackson (https://keybase.io/asjackson) on keybase.
  • I have a public key whose fingerprint is 4FAE 5660 A0C2 9995 102B E3C1 1D4F 8528 46D3 36D9

To claim this, I am signing this object:

@AaronJackson
AaronJackson / mirror.sh
Created February 13, 2019 10:51
ZFS incremental backup over SSH
#!/bin/sh
source_pool=$1
first_sync=$2
if [ $first_sync ] ; then
echo "You have asked for an initial sync."
echo "If you didn't mean this, you have five five seconds to cancel it."
sleep 5
fi
@AaronJackson
AaronJackson / clusterstatus.sh
Created December 12, 2018 21:58
Slurm GPU status script, shows available GPUs by partition, plus node degredations
#!/bin/bash
regex='s/.*gpu=\([0-9]\).*/\1/p'
p=$(while IFS='=' read x partition ; do
IFS='=' read x nodes
echo $partition $nodes
done < <(scontrol show part | \
grep -e PartitionName -e ' Nodes'))
;; ROW MAJOR MODE MATRIX STUFF
;; matrix definition
;; w h elems
(SETQ M '(2 2 (1 0
0 1)))
(SETQ MATRIX-NUMEL
(LAMBDA (MAT)
(* (CAR MAT) (CAR (CDR MAT)))))
### Keybase proof
I hereby claim:
* I am aaronjackson on github.
* I am asj (https://keybase.io/asj) on keybase.
* I have a public key whose fingerprint is 2D30 2738 2CCC C393 1A5B F6A4 88F5 B21F A012 F470
To claim this, I am signing this object:
@AaronJackson
AaronJackson / caffe-mode.el
Last active March 12, 2016 20:07
caffe-mode.el for emacs
;; Aaron Jackson <asj@cs.nott.ac.uk>
;; caffe-mode.el
(setq caffe-mode-highlights
'((".*\s{" . font-lock-function-name-face)
("^\s*.+:" . font-lock-keyword-face)
("#+.*" . font-lock-comment-face)
("'.*'" . font-lock-string-face)
("[A-z]" . font-lock-constant-face)
("false\\|true" . font-lock-constant-face)
@AaronJackson
AaronJackson / Cameras
Created May 29, 2015 20:39
Tile four VLC windows. Used to view RTSP security cameras
xset dpms 0 0 0
xset -dpms
xset s noblank
xset s noexpose
killall -9 vlc
export WINOPTS="--disable-screensaver --width=960 --height=540 --no-embedded-video"
vlc --video-title TopLeft \