Skip to content

Instantly share code, notes, and snippets.

View afterdesign's full-sized avatar
🏠
Working from home

Rafał Malinowski afterdesign

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am afterdesign on github.
  • I am afterdesign (https://keybase.io/afterdesign) on keybase.
  • I have a public key ASD8Scmx9yKSPfSzt_PPnyEvXElzTRrBPcDWa74qJ-Pn_wo

To claim this, I am signing this object:

@afterdesign
afterdesign / private.xml
Last active March 7, 2016 18:21
Microsoft Sculpt karabiner configuration
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Microsoft</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>Sculpt</productname>
<productid>0x07a5</productid>
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 1
xdebug.profiler_enable = 0
xdebug.profiler_output_dir = /var/log/xdebug/
xdebug.profiler_enable_trigger = 1
xdebug.show_mem_delta = 1
pip install --user virtualenv
$(python -m site --user-base)/bin/virtualenv WHATEVER_DIR_YOU_WANT
cd WHATEVER_DIR_YOU_WANT
source bin/activate
SHELL := bash
environment := $(shell echo $(env) | tr a-z A-Z)
PRODUCTION_HOST = 0.0.0.0
TESTING_HOST = 1.1.1.1
rsync_or_smth = \
echo $($(environment)_HOST)
@afterdesign
afterdesign / test.py
Created July 15, 2013 15:50
Problem with paths in compiled python.
import sys
sys.path.append("/usr/lib/python2.7/lib-dynload/")
import bz2
@afterdesign
afterdesign / hack.sh
Created June 24, 2013 12:36 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
single_body_task = {
    "task" : "math.tasks.add",
    "kwargs" : {
        "a" : 1,
        "b" : 2
    },
    "id" : sha1(json_encode(single_body_task['kwargs']))
}
Making install in completions
for file in aclocal-1.11 ; do \
rm -f ./$file && \
ln -s aclocal ./$file ; \
done
for file in phing ; do \
rm -f ./$file && \
ln -s ant ./$file ; \
done
for file in asciidoc.py ; do \