I hereby claim:
- I am kunev on github.
- I am kunev (https://keybase.io/kunev) on keybase.
- I have a public key whose fingerprint is 1A89 8964 FF14 2DF6 EF0E C6C2 A3F7 AD9C FB5D 25E8
To claim this, I am signing this object:
#!/bin/bash | |
for h in {0..23} | |
do | |
hour=`printf "%02d" $h` | |
for minutes in 00 15 30 45 | |
do | |
wget https://sslimgs.xkcd.com/comics/now/${hour}h${minutes}m.png | |
done | |
done |
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("fmi.py-bg.net"), domain("fmi.ruby.bg"), domain("fmi.clojure.bg"), domain("fmi.golang.bg") { | |
body { | |
background-color: #151515; | |
color: #fefefe; | |
} | |
header { | |
background: inherit !important; |
#!/bin/sh | |
# Get all the python files staged for committing | |
py_files=`git diff --name-only HEAD|grep '.py$'` | |
# If we;re trying to commit a pdb.set_trace() display an error message and exit right away with status 1 | |
grep -n 'pdb.set_trace()' $py_files && echo -e "\033[1;31m Debugger statements!!!\033[0m" && exit 1 | |
# Run pyflakes on all the files beign committed and exit with status 0 if there are no errors, else show error message | |
pyflakes $py_files && exit || echo -e "\033[1;31m Lint error!\033[0m" | |
# If we’re here, then pyflakes failed, exit with status 1 |
import asyncio | |
@asyncio.coroutine | |
def open_file(name): | |
print("opening {}".format(name)) | |
return open(name) | |
@asyncio.coroutine | |
def close_file(file): | |
print("closing {}".format(file.name)) |
function pattach() { | |
if [[ $1 == "" ]]; then | |
PERCOL=percol | |
else | |
PERCOL="precol --query $1" | |
fi | |
sessions=$(tmux ls) | |
[ $? -ne 0 ] && return | |
session=$(echo $sessions | eval $PERCOL | cut -d : -f 1) | |
if [[ -n "$session" ]]; then |
#!/usr/bin/env python | |
# Save this in a file somewhere | |
# In your mutt config add the following line | |
# set display_filter="/PATH/TO/THIS/PYTHON/FILE" | |
import sys | |
import re | |
import os |
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
#PanelUI-button, | |
#bookmarks-menu-button, | |
#downloads-button, | |
#home-button, | |
#abp-toolbarbutton, | |
#urlbar-history-dropmarker, | |
#back-button, | |
#forward-button { |
I hereby claim:
To claim this, I am signing this object:
'<,'>s/\v("|')/\={'"': "'", "'": '"'}[submatch(0)]/g |
if [[ -z $TMUX ]]; then | |
new_session_token='START NEW SESSION' | |
no_session='DO NOT START TMUX' | |
choice=$( (echo $new_session_token; echo $no_session; tmux ls) | fzf | cut -d':' -f 1) | |
case "$choice" in | |
"$new_session_token") | |
tmux new-session | |
exit |