Skip to content

Instantly share code, notes, and snippets.

View michapixel's full-sized avatar

Michael Stuhr michapixel

View GitHub Profile
@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@chrisnew
chrisnew / hd44780-lcd.js
Last active August 12, 2016 13:23
HD44780 LCD on a Raspberry Pi controlled by node.js with onoff and sleep.
var Gpio = require('onoff').Gpio;
var sleep = require('sleep');
var displayPorts = {
RS: 7,
E: 8,
D4: 25,
D5: 24,
D6: 23,
D7: 18,