Skip to content

Instantly share code, notes, and snippets.

View fletchowns's full-sized avatar

Greg Barker fletchowns

View GitHub Profile
@fletchowns
fletchowns / Dockerfile
Created May 2, 2023 18:08
Photoprism Debian Bullseye Docker Build
FROM debian:bullseye-slim
MAINTAINER Greg Barker <fletch@fletchowns.net>
# Based on https://github.com/IndrekHaav/photoprism-debian
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
curl \
wget \
@fletchowns
fletchowns / make_gif.sh
Created December 26, 2013 06:51
Just a simple little script to automate making animated gifs from shadowplay recordings
# Make a gif from a video
# Make sure ffmpeg, ImageMagick, and gifsicle are installed
# lol.mp4
input_file=$1
# 0:1:33 (1 min 33 sec)
start_time=$2
# 5 (5 seconds, so end at 0:1:38)
duration=$3
function render() {
//do stuff
}
mcpool.acquire(function(mcpoolerr, mc) {
mc.get(cacheKey, function(mcgeterr, cachedResults) {
if (cachedResults == null) {
dbpool.acquire(function(dbpoolerr, db) {
db.query(
'select field from table where something = ? order by field limit 40',