Skip to content

Instantly share code, notes, and snippets.

View isdzulqor's full-sized avatar
🚀
curiosity-driven dot

isdzulqor isdzulqor

🚀
curiosity-driven dot
View GitHub Profile
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active January 26, 2026 13:25
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@Zearin
Zearin / python_decorator_guide.md
Last active March 10, 2026 15:21
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active March 14, 2026 17:03
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'