Skip to content

Instantly share code, notes, and snippets.

View c12i's full-sized avatar

Collins Muriuki c12i

View GitHub Profile
@c12i
c12i / listen.py
Created March 6, 2022 19:50 — forked from kissgyorgy/listen.py
How to use PostgreSQL's LISTEN/NOTIFY as a simple message queue with psycopg2 and asyncio
import asyncio
import psycopg2
# dbname should be the same for the notifying process
conn = psycopg2.connect(host="localhost", dbname="example", user="example", password="example")
conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT)
cursor = conn.cursor()
cursor.execute(f"LISTEN match_updates;")
@c12i
c12i / public-stun-list.txt
Created January 30, 2022 12:47 — forked from mondain/public-stun-list.txt
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
@c12i
c12i / README.md
Last active August 1, 2021 17:23 — forked from LukeMathWalker/audit.yml
GitHub Actions - Rust setup

GitHub Actions

Rust setup