Skip to content

Instantly share code, notes, and snippets.

School burns out my passion for programming

Xevion Xevion

School burns out my passion for programming
View GitHub Profile

Keybase proof

I hereby claim:

  • I am xevion on github.
  • I am xevion ( on keybase.
  • I have a public key ASAm89LfSNcdbKWjNBgQHChPenOqyJRNxS7b_vF7uSNpYAo

To claim this, I am signing this object:

Painezor /
Last active Mar 5, 2021
Built-in Checks for the commands extension of discord py
# Command cannot be used in private messages.
# Command can only be used in private messages.
# Command can only be used by the bot owner.
EvieePy /
Last active Feb 26, 2021
Simple Error Handling for ext.commands -
If you are not using this inside a cog, add the event decorator e.g:
async def on_command_error(ctx, error)
For examples of cogs see:
For a list of exceptions:
wolever /
Created Dec 2, 2016
A simple watchdog for long-running Python processes
A simple watchdog for long running processes which may stall for some reason or
If the main thread hasn't logged progress (by updating
``self.last_progress_time``) in WATCHDOG_HARD_KILL_TIMEOUT, the watchdog
thread will log an error containing the stack trace of all currently running
threads then use ``kill -9`` to kill the main process.
Assumes that a process monitor like supervisor or systemd will then restart
magicznyleszek /
Last active Mar 5, 2021
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Element selectors

Element -- selects all h2 elements on the page

h2 {
    foo: bar;
luhn /
Created Nov 29, 2012
Using getters and setters with SQLAlchemy
class Table(Base):
id = Column(Integer, primary_key=True)
_name = Column('name', String(24))
def name(self):
return self._name;
def name(self, value):