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:
#!/usr/bin/env python | |
# | |
# Example: | |
# | |
# $ progress.py /tmp/foo.tar | ssh remote tar xf - | |
# [********** ] 446 / 2298 | |
# | |
import os | |
import sys |
#!/usr/bin/env python2.7 | |
# | |
# Author: Fred Cirera <[email protected]> | |
# Module: vault-password.py | |
# | |
""" This script requires the ``keyring`` python module | |
Add a [vault] section to your ansible.cfg file, | |
the options are |
class FileCache(object): | |
use_cache = True | |
def __init__(self, expire=CACHE_EXPIRATION): | |
self._expire = expire | |
def __call__(self, func): | |
"""Simple cache decorator. Cache the values in a file in `/var/tmp`""" | |
@wraps(func) | |
def wrapped_function(*args): |
+ /Library/ | |
+ /Library/Accounts/ | |
+ /Library/Application Support/ | |
+ /Library/Application Support/AddressBook/ | |
+ /Library/Calendars/ | |
+ /Library/Dictionaries/ | |
+ /Library/Fonts/ | |
+ /Library/HomeKit/ | |
+ /Library/Keychains/ | |
+ /Library/Mail/ |
# Reload key | |
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g display-time 5000 | |
set -g display-panes-time 5000 | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" |
# | |
# 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)" |
#!/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 |
# $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 |
I hereby claim:
To claim this, I am signing this object:
class DictAttr(dict): | |
def __getattr__(self, key): | |
if key not in self: | |
raise AttributeError(key) | |
return self[key] | |
def __setattr__(self, key, value): | |
self[key] = value | |
def __delattr__(self, key): |