Skip to content

Instantly share code, notes, and snippets.

View PaulusTM's full-sized avatar
🦄
Unicorn Power

Daniel Paulus PaulusTM

🦄
Unicorn Power
View GitHub Profile
@PaulusTM
PaulusTM / gvimrc.local
Created February 18, 2011 10:54
gvimrc.local
" Basics
"set encoding=utf8
" Gui settings
"color molokai
"set guifont=Menlo:h12
"if has("gui_running")
" set guioptions-=T "Remove toolbar
" set transparency=0
@PaulusTM
PaulusTM / .zshrc
Created February 18, 2011 11:22
.zshrc
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="candy"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
@PaulusTM
PaulusTM / darkdevel.vim
Created February 28, 2011 15:25
nice dark vim color scheme
" Darkdevel Vim color scheme
"
" Name: darkdevel.vim
" Maintainer: Hallison Batista <email@hallisonbatista.com>
" Last Change: 2009-03-17
" License: Public Domain
" Version: 1.1.1
highlight clear
# ~/Library/Application Support/TextMate/Bundles
# Cleanup Bundles
rm -rf *.tmbundle
# Update bundles from Github
# HTML
git clone git://github.com/textmate/html.tmbundle.git "HTML.tmbundle"
git clone git://github.com/johnmuhl/html5.tmbundle.git "HTML5.tmbundle"
" -----------------------------------------------------------------------------
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git)
" Lars Smit larssmit@me.com
" -----------------------------------------------------------------------------
" -----------------------------------------------------------------------------
" Basics
" -----------------------------------------------------------------------------
set encoding=utf8
@PaulusTM
PaulusTM / nginx
Created June 6, 2011 16:13
nginx init file
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# Place this file here: /etc/init.d/
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
@PaulusTM
PaulusTM / passenger_memory_stats
Created October 26, 2011 17:30
passenger memory stats for munin
#!/usr/bin/env ruby
# by Daniel Paulus | 27 - 10 - 2011
#
# put in /etc/munin/plugins/passenger_memory_stats
# chmod a+x /usr/share/munin/plugins/passenger_memory_stats
#
# add this to /etc/munin/plugin-conf.d/munin-node:
# [passenger_*]
# user root
# command ruby %c
@PaulusTM
PaulusTM / passenger_status
Created October 27, 2011 08:37
passenger status for munin
#!/usr/bin/env ruby
# by Daniel Paulus | 27 - 10 - 2011
#
# put in /usr/share/munin/plugins/passenger_status
# chmod a+x /usr/share/munin/plugins/passenger_status
# ln -s /usr/share/munin/plugins/passenger_status /etc/munin/plugins/passenger_status
#
# add this to /etc/munin/plugin-conf.d/munin-node:
# [passenger_*]
# user root
@PaulusTM
PaulusTM / dev_setup.sh
Created January 31, 2012 15:00
Developer workspace setup
#!/usr/bin/env bash
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
echo "Installing Homebrew, a good OS X package manager ..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
brew update
echo "Installing ImageMagick, good for cropping and re-sizing images ..."
@PaulusTM
PaulusTM / boot.sh
Created April 17, 2012 20:00
CentOS 6 chef bootstrap
#!/bin/bash
yum update -y
yum groupinstall -y "Development Tools"
yum install -y \
openssl-devel \
readline-devel \
curl-devel \
zlib-devel \