Skip to content

Instantly share code, notes, and snippets.

View rikas's full-sized avatar
🏠
Working from home

Ricardo Otero rikas

🏠
Working from home
View GitHub Profile
#!/usr/bin/env ruby
##
# This file must be renamed to pre-commit without extension and
# added to your .git/hooks directory
# After that, run `chmod 755 pre-commit` to make it executable
$user = ENV['USER']
@rikas
rikas / backend.conf
Last active August 29, 2015 14:10 — forked from lmmendes/backend.conf
Site enabled nginx configuration
upstream app {
# Path to Unicorn SOCK file, as defined previously
server unix:/servers/sites/backend-saas/shared/tmp/sockets/.unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name passworks.io;
return 301 $scheme://www.passworks.io$request_uri;
}
@rikas
rikas / monitrc
Last active December 21, 2015 00:29 — forked from franck/monitrc
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file and a complete list of statements and
## options, please have a look in the Monit manual.
#!/bin/bash
### BEGIN INIT INFO
# Provides: sidekiq beta
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: sidekiq