Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael G. Ströck mstroeck

View GitHub Profile
@mstroeck
mstroeck / gist:5d67d97fede26a69852b
Created Aug 21, 2014
Mailbox Betacoin Mailing Source
View gist:5d67d97fede26a69852b
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 Sep 19, 2015 — forked from korya/Subfolder to git repo.md
Convert subfolder into Git submodule
View Subfolder to git repo.md
@mstroeck
mstroeck / server-git.conf
Created Sep 22, 2015 — forked from massar/server-git.conf
Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect
View server-git.conf
# 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 Aug 31, 2011
.vimrc Settings
View .vimrc
set nocompatible
set number
set ruler
syntax on
" Set encoding
set encoding=utf-8
" Whitespace stuff
@mstroeck
mstroeck / .bash_profile
Created Aug 31, 2011
.bash_profile Settings
View .bash_profile
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 Sep 6, 2011 — forked from pcardune/.gitignore
Facebook command-line client helper
View .gitignore
.fb_access_token
.fbconsole.py
View exploring.clj
; 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."))
View .vimrc
set nocompatible
set number
set ruler
syntax on
" Set encoding
set encoding=utf-8
View gist:1282410
#!/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 };
#
View gist:1700096
#!/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"