Skip to content

Instantly share code, notes, and snippets.

Rafał Malinowski afterdesign

Block or report user

Report or block afterdesign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View brew tap
caskroom/cask
caskroom/drivers
caskroom/versions
homebrew/binary
homebrew/completions
homebrew/core
homebrew/dupes
homebrew/fuse
homebrew/php
homebrew/versions
@afterdesign
afterdesign / private.xml
Last active Mar 7, 2016
Microsoft Sculpt karabiner configuration
View private.xml
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Microsoft</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>Sculpt</productname>
<productid>0x07a5</productid>
View xdebug.ini
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
View venv.sh
pip install --user virtualenv
$(python -m site --user-base)/bin/virtualenv WHATEVER_DIR_YOU_WANT
cd WHATEVER_DIR_YOU_WANT
source bin/activate
View Makefile
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 Jul 15, 2013
Problem with paths in compiled python.
View test.py
import sys
sys.path.append("/usr/lib/python2.7/lib-dynload/")
import bz2
View 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
#
View add_task_to_celery_redis.md
single_body_task = {
    "task" : "math.tasks.add",
    "kwargs" : {
        "a" : 1,
        "b" : 2
    },
    "id" : sha1(json_encode(single_body_task['kwargs']))
}
View 02.make
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 \
You can’t perform that action at this time.