Skip to content

Instantly share code, notes, and snippets.

View tessro's full-sized avatar

Tess Rosania tessro

View GitHub Profile
@tessro
tessro / gist:1515117
Created December 23, 2011 19:15 — forked from arnorhs/gist:1509904
gitopen - Open all files from a git diff or show command
#!/bin/bash
# This script will open all files from a git diff or a git show in vim.
# My bash skills are a bit primitive so this can probably be done more intelligently
# Usage:
# gitopen -- opens all added files that have changed since HEAD
# gitopen diff HEAD -- these are the default parameters
# gitopen diff master -- opens files that have changed from master
#!/bin/sh
### BEGIN INIT INFO
# Provides: [app]
# Required-Start: $local_fs $remote_fs $network $syslog $nginx $mysql
# Required-Stop: $local_fs $remote_fs $network $syslog $nginx $mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the [app] app server
# Description: starts the [app] app server