I hereby claim:
- I am ajdiaz on github.
- I am ajdiaz (https://keybase.io/ajdiaz) on keybase.
- I have a public key whose fingerprint is 90AD F27A 6AA5 5A78 9738 CDB1 5369 AA41 71B5 139C
To claim this, I am signing this object:
| #! /usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # vim:fenc=utf-8 | |
| # | |
| # Copyright © 2021 Andrés J. Díaz <[email protected]> | |
| # | |
| # Distributed under terms of the MIT license. | |
| import sys | |
| import time |
I hereby claim:
To claim this, I am signing this object:
| #! /usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| # vim:fenc=utf-8: | |
| import time | |
| from collections import deque | |
| from threading import RLock, Timer | |
| from multiprocessing import Process, Queue |
| #! /usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| # vim:fenc=utf-8: | |
| import urllib, urllib2, json, sys, os | |
| import getpass | |
| config_file = os.path.join(os.environ["HOME"],".postrc") | |
| try: |
| cfg_parser () | |
| { | |
| IFS=$'\n' && ini=( $(<$1) ) # convert to line-array | |
| ini=( ${ini[*]//;*/} ) # remove comments with ; | |
| ini=( ${ini[*]/\ =/=} ) # remove tabs before = | |
| ini=( ${ini[*]/=\ /=} ) # remove tabs be = | |
| ini=( ${ini[*]/\ =\ /=} ) # remove anything with a space around = | |
| ini=( ${ini[*]/#[/\}$'\n'cfg.section.} ) # set section prefix | |
| ini=( ${ini[*]/%]/ \(} ) # convert text2function (1) | |
| ini=( ${ini[*]/=/=\( } ) # convert item to array |
| #! /bin/bash | |
| # (c) 2010 Andres J. Diaz <[email protected]> | |
| # Modified 2011 by Ryan Turner <[email protected]> | |
| # A hook to git-commit(1) to update the home dot files link using this | |
| # repository as based. | |
| # | |
| # To enable this hook, rename this file to "post-commit". | |
| for dot in $PWD/*; do | |
| home_dot="$HOME/.${dot##*/}" |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim:fenc=utf-8 | |
| """ | |
| Python uschedule handler | |
| ------------------------ | |
| This module provide a methods to handle uschedule_ scheduler by Uwe Ohse, | |
| which is similar to cron, but safer. Here is an usage example:: |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim:fenc=utf-8 | |
| """ | |
| Python supervise | |
| ---------------- | |
| This module provide a methods to handle runit [1]_ or daemontools [2]_ based | |
| supervised services, using the control file provided. Here are a small | |
| example:: |