I hereby claim:
- I am smokey42 on github.
- I am christophrauch (https://keybase.io/christophrauch) on keybase.
- I have a public key ASBkog36rv4LUnODBi7XquNFjQbLoATx0oRKrSMgEXrMpQo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
"""A utility to find the location(s) of an executable in the PATH environment variable. | |
This script searches for an executable specified as a command-line argument | |
in the directories listed in the PATH environment variable. It supports | |
options to display symbolic links. | |
Usage: | |
zzat executable_name [-l|--links] |
# put under ~/.config/screen-lock-notify | |
# | |
# Obtain one here: https://api.slack.com/legacy/custom-integrations/legacy-tokens | |
# | |
# Beware: New tokens will only be issued until May. | |
# | |
SLACK_LEGACY_TOKEN="xoxp-..." | |
# Figure out the interface by issuing: | |
# |
import contextlib | |
import functools | |
import inspect | |
@contextlib.contextmanager | |
def simple_transaction(session, close=False, commit=True): | |
""" | |
Simple transaction manager, commits on success, rolls back on exception. |
import os | |
def _oom_adj_self(): | |
oom_adj = '/proc/%d/oom_adj' % os.getpid() | |
if os.path.exists(oom_adj): | |
with open(oom_adj, 'w') as oom: | |
# OOM killer, please kill this process first. | |
oom.write('15') |
I hereby claim:
To claim this, I am signing this object: