Skip to content

Instantly share code, notes, and snippets.

View louis-e's full-sized avatar
:octocat:
0xDEADBEEF

Louis Erbkamm louis-e

:octocat:
0xDEADBEEF
View GitHub Profile
@leommoore
leommoore / nano_js_syntax_highlighting.md
Last active October 5, 2023 21:21
nano javascript syntax highlighting

#nano javascript syntax highlighting

The existing syntax highlighting is located in /usr/share/nano/

To add a new language

sudo nano /usr/share/nano/javascript.nanorc

Put the following in the contents:

@mowings
mowings / gist:7210816c88fb3328b3ad
Last active December 3, 2021 08:34
Raspberry Pi raspivid output to mp4
# Stream 60 seconds of video to an mp4 file
sudo raspivid -o - -t 60000 -ex night -br 50 -w 1920 -h 1080 -rot 279 -fps 8 | sudo ffmpeg -r 8 -i - -y -vcodec copy /mnt/pi/camera/foo.mp4
@chippydip
chippydip / grasshopper.ks
Created February 2, 2017 07:47
kOS Suicide Burn Script
@lazyglobal off.
function countdown {
parameter i.
lock STEERING to LOOKDIRUP(UP:VECTOR, FACING:TOPVECTOR).
lock THROTTLE to 1.
until i <= 0 {
HUDTEXT(i, 1, 4, 100, RED, false).