You already have docker-compose.yml
, which could be your base file, and then:
docker-compose.dev.yml
for developmentdocker-compose.prod.yml
for production
Each override or extend the base. For example:
/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 |
I'm Chukwudi Nwachukwu, fondly known as iChux. I don’t engage in debates over which programming language is superior—I believe in using what works best for one to get things done.
I love hacking things together, and as we progress in this introduction, you'll see some of my work in action. You can find me on GitHub, StackOverflow, LinkedIn or Discord under the handle ichux.
These days, I’ve been actively involved in multiple projects, including: