I hereby claim:
- I am 0x9900 on github.
- I am 0x9900 (https://keybase.io/0x9900) on keybase.
- I have a public key whose fingerprint is D7BB 551B BB16 BC3F A3F1 5591 0172 317A F80F 70A7
To claim this, I am signing this object:
# Reload key | |
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# utf8 | |
set-window-option -g utf8 on | |
set -g status-utf8 on |
def set_logging(level=logging.INFO): | |
level = logging.getLevelName(os.getenv('LOG_LEVEL', 'INFO').upper()) | |
logger = logging.getLogger(__name__) | |
logger.setLevel(level) | |
handler = logging.StreamHandler() | |
handler.setLevel(level) | |
handler.setFormatter(logging.Formatter( | |
'%(asctime)s %(name)s: %(funcName)s %(levelname)s[%(lineno)d]: %(message)s' | |
)) |
#!/usr/local/bin/bash | |
# | |
# (c) Sometime in 2015 by Fred C. @0x9900 | |
# | |
# Checks whitelisted IPs in spamdb and if they are known by any of the | |
# follwing DNSBL lists, tag them as trapped. This script only check | |
# the IP addresses whitelisted since the last run. Therefore the date | |
# of the last run is stored in a file called /tmp/spamtrap.status. | |
# | |
# - abuseat.org |
# | |
# Sometime, specifically in your tests, you want to silence the | |
# standard output or be able to read the standard output of a function | |
# to test what's printed. Here is some recipe to do that. | |
# | |
# | |
import cStringIO as StringIO | |
import sys |
I hereby claim:
To claim this, I am signing this object:
# $OpenBSD: wsconsctl.conf,v 1.2 2007/05/14 05:06:03 tedu Exp $ | |
# | |
# wscons configurable parameters | |
# | |
keyboard.repeat.deln=25 # I like the repeat to ve a little more reactive. | |
keyboard.encoding=us.swapctrlcaps | |
# | |
# Sometime I have an USB keyboard plugged in | |
keyboard1.repeat.deln=25 # I like the repeat to ve a little more reactive. | |
keyboard1.encoding=us.swapctrlcaps |
#!/bin/ksh | |
# | |
USAGE="Usage: dnsbl [-b] ipaddress" | |
set -A RBL_LST "zen.spamhaus.org" "bl.spamcop.net" \ | |
"b.barracudacentral.org" "cbl.abuseat.org" \ | |
"hostkarma.junkemailfilter.com" | |
if [[ $# < 1 || $# > 2 ]]; then |
/* ROLL LINKS */ | |
.roll-link { | |
display: inline-block; | |
overflow: hidden; | |
vertical-align: top; | |
-webkit-perspective: 600px; | |
-moz-perspective: 600px; | |
-ms-perspective: 600px; |
#!/usr/bin/env python2.7 | |
# | |
# Author: Fred Cirera <github-fred@hidzz.com> | |
# Module: vault-password.py | |
# | |
""" This script requires the ``keyring`` python module | |
Add a [vault] section to your ansible.cfg file, | |
the options are |
# | |
# Nice prompt with nice colors for git | |
# Colors: master (red), dev (grey), other branches (green) | |
# | |
__set_prompt() { | |
local _RESET="\033[0m\017" # reset color | |
local _MASTER="\033[31m" # red | |
local _DEV="\033[90m" # grey | |
local _BRANCH="\033[32m" # green | |
local ref="$(git symbolic-ref --short HEAD 2>/dev/null)" |