Skip to content

Instantly share code, notes, and snippets.

View undermink's full-sized avatar
👾

Marc Giersch undermink

👾
View GitHub Profile
@undermink
undermink / Magic-wormhole-mailbox-server-Dockerfile
Last active September 30, 2022 23:37
A simple dockerfile for running a maigc-wormhole-mailbox-server as a nonpriviilaged user (appuser). :)
FROM python:3.8
# create a non root user to run the python stuff
RUN groupadd -g 999 appuser && \
useradd -r -u 999 -g appuser appuser
# create a user homedir
RUN mkdir -p /home/appuser
# change ownership of homedir
@undermink
undermink / convert.sh
Last active March 4, 2017 04:19
A simple script to convert audiofiles from one format into another using ffmeg and minor eyecondy...
#!/bin/bash
# convert all files in the cwd to antoher format using ffmeg
clear;
# some eyecandy first :)
for i in {16,16,22,28,34,40,76} ; do echo -en "\e[48;5;${i}m \e[0m" ; done;
for i in {0..5} ; do echo -en "\e[48;5;76m \e[0m" ; done;
echo -en "\e[1m\e[97m\e[48;5;76mconverting audiofiles with ffmpeg\e[0m"