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
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
@ichux
ichux / ichux.md
Last active April 17, 2025 10:55

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.

What I’ve Been Working On:

These days, I’ve been actively involved in multiple projects, including:

  1. Consulting as a Group CTO, managing fintech, communications, HMO, and FMCG platforms for a company.
import logging
from sqlalchemy import Boolean, Column, Integer, String, create_engine
from sqlalchemy.orm import declarative_base, sessionmaker
from sqlalchemy.schema import CreateTable
logging.basicConfig(level=logging.INFO)
engine = create_engine("sqlite:///:memory:", connect_args={"check_same_thread": False})
SessionLocal = sessionmaker(bind=engine)
def non_repeating(data):
count = {}
# First pass: Count occurrences
for char in data:
count[char] = count.get(char, 0) + 1
# Second pass: Find the first non-repeating character
for char in data:
if count[char] == 1:
def shown(data):
sb = 73
sp = [data[i : i + sb] for i in range(0, len(data), sb)]
print(' = (\n "{}"\n)'.format('"\n "'.join(sp)))
self.app.logger.warning(f"\n\nuser: {user}\n\n")
application.logger.warning(f"\n\nuser: {user}\n\n")
flask db init
flask db migrate -m "models creation"
flask db upgrade
# important libraries
from flower.utils import strtobool
from pip._internal.utils.misc import strtobool
from setuptools._distutils.util import strtobool