Skip to content

Instantly share code, notes, and snippets.

View fallenhitokiri's full-sized avatar

Timo Zimmermann fallenhitokiri

View GitHub Profile
@fallenhitokiri
fallenhitokiri / .vimrc
Created May 5, 2014 15:00
backup of my vimrc
set nocompatible
set nobackup
set nowritebackup
set noswapfile
set history=100
set incsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
autoload -U colors && colors
autoload -U compinit && compinit
# completion
zstyle ':completion:*' menu select
setopt completealiases
# history
HISTFILE=$HOME/.zsh_history
HISTSIZE=1000
@fallenhitokiri
fallenhitokiri / gist:dbaf0bec1f6e2793001e
Created July 6, 2014 14:12
drupan 2 MacBook Air mid 2013 (i7, SSD)
# 100 posts - 5 images
Shirayuki ~/Projects/drupan venv
$ time python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy
python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy 0,77s user 0,06s system 99% cpu 0,835 total
# 200 posts - 10 images
Shirayuki ~/Projects/drupan venv
$ time python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy
python drupan.py ~/tmp/screamingatmyscreen/config.yaml --nodeploy 0,95s user 0,08s system 97% cpu 1,033 total
@fallenhitokiri
fallenhitokiri / config.yaml
Created July 6, 2014 16:46
screamingatmyscreen.com drupan 2 config
reader: "filesystem"
writer: "filesystem"
plugins: ["markdown", "blank", "tags"]
deployment: "s3sub"
url_scheme:
index: ""
archive: "/archive/"
tag: "/tag/%slug/"
post: "/%year/%month/%slug/"
page: "/%slug/"
@fallenhitokiri
fallenhitokiri / error.log
Last active August 29, 2015 14:05
wrtc 0.0.22, node 0.11.13, Darwin 13.3.0
Shirayuki ~/Playground/wrtc
$ npm install wrtc
/
> wrtc@0.0.22 install /Users/timo/Playground/wrtc/node_modules/wrtc
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Source compile required: 404 status code downloading tarball
ACTION Run build script /dev/null
TARGET_ARCH=x64 r5982 Release
Preparing directories ... done
@fallenhitokiri
fallenhitokiri / package.json
Created August 27, 2014 06:51
npm install wrtc
{
"name": "wrtc",
"description": "Standards-compliant WebRTC implementation for Node",
"keywords": [
"webrtc",
"p2p",
"peer"
],
"version": "0.0.22",
"author": {
autoload -U colors && colors
autoload -U compinit && compinit
autoload -Uz vcs_info
# completion
zstyle ':completion:*' menu select
setopt completealiases
# history
HISTFILE=$HOME/.zsh_history
autoload -U colors && colors
autoload -U compinit && compinit
autoload -Uz vcs_info
# completion
zstyle ':completion:*' menu select
setopt completealiases
# history
HISTFILE=$HOME/.zsh_history

Title=Coding Example Created=2011-05-02 Categories=coding Tags=python,html -----#####----- so let us look at syntax highlighting and see what will happen after I added pygments

import markdown2

from pygments.lexers import guess_lexer
@fallenhitokiri
fallenhitokiri / write.py
Created January 19, 2012 09:52
write for zenbo // test gist
# -*- coding: utf-8 -*-
import io
def write(site):
"""
write content to disc
<- site object
"""