Skip to content

Instantly share code, notes, and snippets.

View usrjense's full-sized avatar

Jens usrjense

  • Germany
View GitHub Profile
@usrjense
usrjense / alpinePhpApache.md
Last active June 26, 2025 16:01
Dockerfile 🐳 to build Alpine based image containing PHP, Apache2, PostgreSQL-client to run as non-root user.

Dockerfile

FROM alpine:latest

RUN apk --no-cache --update \ 
    add unzip libaio libpq-dev icu-dev icu-data-full \
    apache2 \    
    apache2-ssl \
    apache2-utils \ 
@usrjense
usrjense / gitCloner.md
Last active June 26, 2025 15:35
Dockerfile 🐳 to build Alpine based image containing 'Git'. Can be used as a init-/sidecar-container in K8s-deployments to clone git-repository into empty volume

Dockerfile

FROM alpine:latest

RUN apk --no-cache --update \    
    add git 

# run this build
# docker build -f dockerfile-git -t usrjense/alpine-git:2 .
@usrjense
usrjense / sbtTimekeeper.md
Last active June 26, 2025 15:31
Script for the Logitech Squeezebox Touch (https://forums.slimdevices.com/forumdisplay.php?34-Squeezebox-Touch) to keep time in sync if not connected to any server

Usage

  • copy /usr/bin/loop.sh and /usr/bin/ntp.sh to /usr/bin/
  • edit ntp.sh and set URL of your timeserver (line #3).
    The device does not support SSL so it is required to use http://.
    Best scenario is to have a local server for that. Due to the fact, that the SBT needs some time itself to run this, we may define a offset, that is added to the time to set!
  • edit /etc/init.d/rcS and add /usr/bin/loop.sh start

Ressources

/usr/bin/loop.sh