Skip to content

Instantly share code, notes, and snippets.

View borillo's full-sized avatar

Ricardo Borillo borillo

View GitHub Profile
@borillo
borillo / gist:cacc7cc88da529c999ee
Created May 29, 2015 16:57
tomcat-8 start script
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
@borillo
borillo / .bash_prompt
Last active December 16, 2015 17:59
.bash_prompt
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
# Shamelessly copied from https://github.com/gf3/dotfiles
default_username='borillo'
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
@borillo
borillo / sublime-layout-2x4
Created July 26, 2012 18:12
Sublime layout menu config: 2 rows x 4 columns
{
"caption" : "UJI",
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1],