Skip to content

Instantly share code, notes, and snippets.

View ichux's full-sized avatar
🏠
Working from home

Chukwudi Nwachukwu ichux

🏠
Working from home
View GitHub Profile
# cinema, advertising
sudo apt install -y mpv smplayer
mpv http://example.com/stream-url
smplayer http://example.com/stream-url
# cinema
July 20, 2025, 14:00
http://example.com/katiba/jumat/monkies/019826bb-944c-726a-bd06-86456702e548

🧩 1. Split your Compose setup

You already have docker-compose.yml, which could be your base file, and then:

  • docker-compose.dev.yml for development
  • docker-compose.prod.yml for production

Each override or extend the base. For example:

docker-compose.yml (base)

/interface lte at-chat lte1 input="at+cmgd=1,4"
#!/bin/bash
db_set(){
echo "$1,$2" >> database
}
db_get(){
grep "^$1," database | sed -e "s/^$1,//" | tail -n 1
}
while ! (echo > /dev/tcp/localhost/3306) 2>/dev/null && echo "- 3306"; do sleep 1; done; echo "+ 3306"
# PostgreSQL
while ! PGPASSWORD="$PGPASSWORD" psql -h localhost -U "$PGUSER" -d "$PGDATABASE" -c '\q' 2>/dev/null; do
sleep 1
done
echo "PostgreSQL is ready"
import logging
logging.basicConfig(
**{
"level": logging.DEBUG,
"format": "%(asctime)s - %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S",
}
)
docker run --rm debian:bullseye-slim getent passwd 1000
docker run --rm debian:bullseye-slim getent passwd ubuntu
docker run --rm nginx:latest getent passwd nginx
docker run --rm nginx:latest getent passwd 101
docker run --rm nginx:latest bash -c "useradd ichux && getent passwd ichux"
import time
from datetime import datetime, timedelta, timezone
import redis
RD = redis.Redis(
host="192.168.2.193",
port=6379,
password="U9c4062aca1512V",
decode_responses=True,
sudo dpkg-reconfigure tzdata
*
!.gitignore