This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |