This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Starts and stops scribed | |
# arsenio@gmail.com | |
# | |
# chkconfig: 2345 90 10 | |
# description: Scribe daemon | |
desc="Scribed daemon" | |
LOGDIR=/var/log/scribe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------ | |
# SCREEN SETTINGS | |
# ------------------------------------------------------------------------------ | |
startup_message off | |
#nethack on | |
#defflow on # will force screen to process ^S/^Q | |
deflogin on | |
#autodetach off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; version 2 of the License only. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EDITOR=/usr/bin/vim | |
export JAVA_HOME=/usr | |
alias vi='/usr/bin/vim' | |
alias scr='screen' | |
alias s-r='screen -r' | |
alias s-d='screen -d' | |
alias d='screen -r && screen -d' | |
alias ls='ls -F' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Originally written by Samuel Stauffer <https://gist.github.com/samuel> | |
# Modified by Arsenio Santos <arsenio@gmail.com> | |
from __future__ import division | |
import socket | |
import sys | |
from optparse import OptionParser | |
EXIT_OK = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple Stylus functions for approximating a golden-ratio line height, | |
// based on a font size and target content width. | |
// | |
// | |
// goldenRatio(font-size, content-width) | |
// * given font size and content width, generate the font size, height, and width | |
// | |
// Usage: | |
// div.readable | |
// goldenRatio 20px 550px |