Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🕵🏼‍♂️

Julián Gutiérrez juliangut

💭
🕵🏼‍♂️
View GitHub Profile
@juliangut
juliangut / post-checkout-changes-check.sh
Created Aug 1, 2017
git post checkout hook for changes detection
View post-checkout-changes-check.sh
#!/bin/bash
# https://gist.github.com/gurglet/1780139
# Git post checkout hook.
# Reminds you of South migration changes when switching branches.
# Can be useful when you are testing out a branch from
# someone else that requires migrations.
# Put the file in .git/hooks/post-checkout
@juliangut
juliangut / upstart_service_template
Last active Apr 6, 2016
upstart service template
View upstart_service_template
description "service_description"
author "Julián Gutiérrez - http://juliangut.com"
# Events
start on startup
stop on shutdown
# Automatically Respawn
respawn
View initd_service_template
#!/bin/bash
### BEGIN INIT INFO
# Provides:
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO