Skip to content

Instantly share code, notes, and snippets.

View mstroeck's full-sized avatar

Michael G. Ströck mstroeck

View GitHub Profile
@mstroeck
mstroeck / gist:5d67d97fede26a69852b
Created August 21, 2014 09:36
Mailbox Betacoin Mailing Source
Delivered-To: michael@stroeck.com
Received: by 10.152.6.135 with SMTP id b7csp766829laa;
Thu, 21 Aug 2014 02:32:40 -0700 (PDT)
X-Received: by 10.50.115.73 with SMTP id jm9mr2899754igb.3.1408613554382;
Thu, 21 Aug 2014 02:32:34 -0700 (PDT)
Return-Path: <pm_bounces@pm.mtasv.net>
Received: from sc-ord-mta118.mtasv.net (sc-ord-mta118.mtasv.net. [50.31.156.118])
by mx.google.com with ESMTPS id h1si29180296icz.77.2014.08.21.02.32.33
for <michael@stroeck.com>
@mstroeck
mstroeck / Subfolder to git repo.md
Last active September 19, 2015 08:45 — forked from korya/Subfolder to git repo.md
Convert subfolder into Git submodule
@mstroeck
mstroeck / server-git.conf
Created September 22, 2015 14:34 — forked from massar/server-git.conf
Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect
# jeroen@massar.ch - http://jeroen.massar.ch
server {
listen 192.0.1.1:80;
listen [2001:db8::1]:80;
# Redirect all non-HTTPS traffic to the HTTPS variant
return 301 https://$host$request_uri;
}
@mstroeck
mstroeck / .vimrc
Created August 31, 2011 16:52
.vimrc Settings
set nocompatible
set number
set ruler
syntax on
" Set encoding
set encoding=utf-8
" Whitespace stuff
@mstroeck
mstroeck / .bash_profile
Created August 31, 2011 16:53
.bash_profile Settings
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/share/python:$PATH
export PYTHONPATH=/usr/local/lib/python:$PYTHONPATH
export EDITOR=mvim
alias ls="ls -G"
export LSCOLORS=dxfxcxdxbxegedabagacad
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w\$(parse_git_branch) $ "
@mstroeck
mstroeck / .gitignore
Created September 6, 2011 13:34 — forked from pcardune/.gitignore
Facebook command-line client helper
.fb_access_token
.fbconsole.py
; START:ns
(ns examples.exploring
(:use examples.utils clojure.contrib.str-utils)
(:import (java.io File)))
; END:ns
; START:date
(defn date [person-1 person-2 & chaperones]
(println person-1 "and" person-2
"went out with" (count chaperones) "chaperones."))
set nocompatible
set number
set ruler
syntax on
" Set encoding
set encoding=utf-8
#!/usr/bin/perl
#
# Un-MIME regular message from stdin.
# Non-text version saved in directory ~/mail/MIME and proper indication is
# left in the dumped message. Text is otherwise dumped and deleted from there.
#
# Intended to be used with mailagent thanks to the following incantation rule:
#
# Mime-Version: /^\d/ { SAVE +mime; FEED ~/mail/unmime; RESYNC; REJECT };
#
#!/bin/sh
# eps2svg: EPS to SVG vector command line image converter
# David Griffith <davidgriffith@acm.org>
# Created March 30, 2009 and released into the public domain
# The programs pstoedit and skencil are required.
EXT="svg"
USAGE="usage: eps2svg [-v] input.eps [output.svg]\n -v verbose mode"