Skip to content

Instantly share code, notes, and snippets.

View 44670's full-sized avatar
🐢
I may be slow to respond.

44670

🐢
I may be slow to respond.
View GitHub Profile
@44670
44670 / gist:d8a6ef19e0aa6ab39bdba61156937d88
Created April 5, 2022 04:34
How to setup postgresql in debian 11
How to setup postgresql in debian 11:
1. Install postgresql:
apt install postgresql postgresql-contrib
2. su to postgres account, in order to manipulate the database:
su - postgres
3. Create a user and database named with mydb, set password:
createuser -P mydb
@44670
44670 / netcat_udp.py
Created April 15, 2023 11:33
Netcat-like UDP Tool in Python
#!/usr/bin/env python3
"""
Netcat-like UDP Tool in Python
This Python script provides a simple and lightweight netcat-like UDP tool that allows users to
send and receive data over UDP using IPv4 and IPv6 addresses. It is designed to be easy to use
and versatile, making it suitable for various networking tasks, including testing, debugging,
and learning purposes.
By following the netcat command-line style, this script offers users a familiar interface for