Skip to content

Instantly share code, notes, and snippets.

View juliangut's full-sized avatar
💭
🕵🏼‍♂️

Julián Gutiérrez juliangut

💭
🕵🏼‍♂️
View GitHub Profile
@juliangut
juliangut / initd_service_template
Created April 6, 2016 15:11
init.d 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
@juliangut
juliangut / upstart_service_template
Last active April 6, 2016 15:16
upstart service template
description "service_description"
author "Julián Gutiérrez - http://juliangut.com"
# Events
start on startup
stop on shutdown
# Automatically Respawn
respawn
@juliangut
juliangut / post-checkout-changes-check.sh
Created August 1, 2017 09:52
git post checkout hook for changes detection
#!/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