start new:
tmux
start new with session name:
tmux new -s myname
| #soporte para 256 colores | |
| set -g default-terminal "screen-256color" | |
| #set -g default-terminal "xterm-256color" | |
| #Cambiar PREFIX a Ctrl + a | |
| set-option -g prefix C-a | |
| unbind-key C-b | |
| bind-key C-a send-prefix | |
| #dividir la pantalla a la forma de vim |
| :%s/:\(\w\+\) =>/\1:/g |
| check process redis-server | |
| with pidfile "/var/run/redis.pid" | |
| start program = "/etc/init.d/redis-server start" | |
| stop program = "/etc/init.d/redis-server stop" | |
| if 2 restarts within 3 cycles then timeout | |
| if totalmem > 100 Mb then alert | |
| if children > 255 for 5 cycles then stop | |
| if cpu usage > 95% for 3 cycles then restart | |
| if failed host 127.0.0.1 port 6379 then restart | |
| if 5 restarts within 5 cycles then timeout |
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vimset nocompatible
execute pathogen#infect()
syntax on| require 'rubygems' | |
| require 'rubygems/package' | |
| require 'zlib' | |
| require 'fileutils' | |
| module Util | |
| module Tar | |
| # Creates a tar file in memory recursively | |
| # from the given path. | |
| # |
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |