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
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active February 19, 2024 21:55
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');