Skip to content

Instantly share code, notes, and snippets.

Dr. Dennis Akpenyi Dr-Denzy

Block or report user

Report or block Dr-Denzy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Dr-Denzy /
Created Sep 22, 2019 — forked from alcesleo/
Python descriptors made easy
import re
from weakref import WeakKeyDictionary
class AdvancedDescriptor(object):
Base class for descriptors, is hard to understand but works for most cases.
def __init__(self, name=None):
View postgres_queries_and_commands.sql
-- 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%'
Dr-Denzy / prompt
Created Nov 7, 2018 — forked from sams/prompt
dual line color prompt with date & gitstatus
View prompt
### PROMPT ###
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart -
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# name: bobthefish
# bobthefish is a Powerline-style, Git-aware fish theme optimized for awesome.
# You will need a Powerline-patched font for this to work:
# I recommend picking one of these:
You can’t perform that action at this time.