shlogg · Early preview
Shakhzhakhan Maxudbek @xinitd

SysAdmin | DevOps | PythonDev

Configuring Nginx As Reverse Proxy And HTTPS Redirect

Configure Nginx as reverse proxy & force HTTPS with self-signed SSL certificate: install Nginx, generate cert/key, configure server block, create symlink & restart service for secure web app hosting.

Cisco ASA Configured As Network Gateway For LAN Internet Access

Configure Cisco ASA 5500-series as network gateway: set outside interface IP, create inside interface for LAN, set DNS, route traffic, and enable NAT & DHCP.

Sending Messages Via Telegram API With Python And Requests Library

Send messages via Telegram API using Python & Requests library. Use `https://api.telegram.org/bot<token>/sendMessage` with JSON body `{ "chat_id": chat_id, "text": "Hello World!" }`. Mark up with Markdown by adding `parse_mode": "Markdown"`.

Configuring Cisco Device In Linux With Minicom

To configure Cisco device in Linux machine with Minicom: install Minicom utility, connect via COM-to-USB cable & physical connection, determine port using `sudo dmesg | grep -i tty`, launch Minicom with `sudo minicom -s` and set serial port settings.

Configuring Linux Directory As Network Share With Samba

Configure directory as network share on Linux with Samba: install Samba, create folder, add config to `/etc/samba/smb.conf`, set permissions & start Samba daemon.

Learning XML With Python Requests Library

XML explained in simple terms, used for storing structured data & creating custom tags. Example: breakfast menu with name, price, description & calories. Working with XML & Python Requests library to extract data.

Docker Compose For Serverless Cross-Platform Architecture

Docker Compose simplifies running apps on any machine with one click, enabling serverless & cross-platform architecture. It's convenient & simple to use.

Resetting Autoincrement Sequences In Django After Deletion

After deletion, Django models' autoincrement IDs don't reset. Use `python manage.py sqlsequencereset <app_name>` to generate SQL for resetting sequences. Run it with `dbshell` or in PostgreSQL's psql shell with `ALTER SEQUENCE`.

Docker Tutorial For Java Devs: Fast Deployment & Multi-OS Support

Create Java app in Docker: create directory, Main.java file, Dockerfile with FROM openjdk and RUN javac Main.java, then build image with docker build and run it with docker run.