Skip to content

Instantly share code, notes, and snippets.

View keimlink's full-sized avatar
🐍
Still in love with Python and Django

Markus Zapke-Gründemann keimlink

🐍
Still in love with Python and Django
View GitHub Profile
@keimlink
keimlink / keybase.md
Created March 8, 2014 11:34
Keybase proof

Keybase proof

I hereby claim:

  • I am keimlink on github.
  • I am keimlink (https://keybase.io/keimlink) on keybase.
  • I have a public key whose fingerprint is BE3C 1D2E 51FB 0446 49FB 2C8D 4D5F D0C1 0C58 1745

To claim this, I am signing this object:

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "chef/debian-7.8"
# Port forwarding for http server.
@keimlink
keimlink / hopper_api.json
Last active August 29, 2015 14:18
Hopper API JSON
{
"url": "http://example.com/api/23/",
"author": 1,
"date_created": "2015-03-26T11:01:23.262391Z",
"date_updated": "2015-03-26T11:01:23.262391Z",
"html": "<form></form>",
"javascript": "<script></script>",
"form": {
"id": "abc_123",
"method": "POST",
@keimlink
keimlink / gist:953554
Created May 3, 2011 15:34
My .hgrc file
[ui]
username = Markus Zapke-Gründemann <info@keimlink.de>
ignore = ~/.hgignore
fallbackencoding = utf8
ssh = ssh -C
[alias]
slog = log --style=/Users/zappi/.hgtemplates/mercurial-cli-templates/map-cmdline.slog
nlog = log --style=/Users/zappi/.hgtemplates/mercurial-cli-templates/map-cmdline.nlog
sglog = glog --style=/Users/zappi/.hgtemplates/mercurial-cli-templates/map-cmdline.sglog
@keimlink
keimlink / gist:953549
Created May 3, 2011 15:32
My .profile file
# General settings
export DISPLAY=:0.0
export EDITOR=/usr/bin/vim
export LC_ALL=en_US.UTF-8
# Private paths
export PYTHONPATH="/Users/zappi/Projekte/Python"
export PATH="/Users/zappi/bin:/usr/texbin/:${PATH}"
# Bash completion
@keimlink
keimlink / gist:990768
Created May 25, 2011 10:44
Django Fehler in Log schreiben
diff --git a/src/cookbook/local_settings.py b/src/cookbook/local_settings.py
--- a/src/cookbook/local_settings.py
+++ b/src/cookbook/local_settings.py
@@ -2,7 +2,7 @@
from settings import SITE_ROOT
-DEBUG = True
+DEBUG = False
TEMPLATE_DEBUG = DEBUG
@keimlink
keimlink / gist:1242984
Created September 26, 2011 18:30 — forked from jezdez/gist:1242317
cut -f1 -d" " .bash_history|sort|uniq -c|sort -r|head -n 10
74 rst2safari
46 git
41 cd
37 python
36 ll
18 vim
18 pip
16 brew
15 rst2html.py
14 idle3
@keimlink
keimlink / decorators.py
Created March 29, 2012 10:57
Example of different Python decorators
NAMES = set()
def replace(old, new):
"""Replace the first function argument.
If the first function argument matches old it will be Replaced with new.
"""
# decorate the original function
def decorate(func):
@keimlink
keimlink / otsbpython.md
Created June 1, 2012 13:14 — forked from utstikkar/otsbpython.md
Open Tech School Berlin Python workshops

We got inspired by the RailsGirls workshops and plan to organise similar workshops in Berlin for women and all sorts of beginners but for Python this time. We need you Python enthusiasts to help us with the coaching!

So if you think you can help coaching Python put your name down here (by forking this gist and adding yourself or leaving your contact details in a comment). No need to be an expert, no matter how much you know about Python programming your knowledge and experience will be useful to a beginner!

Note: if you are also into (or more into) JS then sign up as a JS coach here: https://gist.github.com/2850467

@keimlink
keimlink / gist:3016576
Created June 29, 2012 08:02
My Sublime Text 2 config
{
"auto_complete": false,
"auto_indent": true,
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_face": "Monaco",
"font_size": 14.0,
"highlight_line": true,