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
Show hidden characters
/* | |
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
and don't need to be repeated here. Anything listed here will take precedence, however. | |
*/ | |
[ | |
{ "keys": ["super+shift+n"], "command": "new_window" }, | |
{ "keys": ["super+shift+w"], "command": "close_window" }, | |
{ "keys": ["super+o"], "command": "prompt_open" }, | |
{ "keys": ["super+shift+t"], "command": "reopen_last_file" }, | |
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>comment</key> | |
<string>JavaScript Syntax: version 2.0</string> | |
<key>fileTypes</key> | |
<array> | |
<string>js</string> | |
<string>htc</string> |
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
git config --global alias.tree 'log --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset"' |
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
RewriteEngine On | |
RewriteBase / | |
# Dominios desarrollo (usado en el .htaccess de ida) | |
RewriteCond %{HTTP_HOST} (.+)\.dev\.ida\.cl | |
RewriteCond %{REQUEST_URI} !^/dev | |
RewriteRule (.*) /dev/%1/$1 [L,NC] | |
#otros, como Wordpress etc |
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 | |
#Ejecuta un Apache Benchmark (ab) y lo grafica usando gnuplot | |
#tamaño imagen | |
w=1200 | |
h=600 | |
#úsame :3 pero úsame bien |
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
<Virtualhost *:80> | |
# Con una solicitud tipo: usuario.proyecto.dev | |
VirtualDocumentRoot "/home/%1/www/%2" | |
ServerName personales.dev | |
ServerAlias *.dev | |
UseCanonicalName Off | |
LogFormat "%V (%v) %h %l %u %t \"%r\" %s %b" vcommon | |
ErrorLog "/var/www/dev/vhosts-error_log" | |
<Directory "/home/*/www/*"> | |
Options Indexes FollowSymLinks MultiViews |
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 | |
#script que lee Arriba y Abajo de teclado y mouse y al matarlo vuelve a mostrar el buffer anterior de la consola ~seb.cl | |
#se usa `stty echo` al salir para q vuelva a activarse el echo de la consola, desactivado por `read` | |
#además a nivel de script desactivé todo el echo para poder usar el scroll del mouse sin que se vean signos raros | |
stty -echo | |
tput smcup | |
trap "tput rmcup;stty echo;exit" KILL INT | |
printf "Usa las flechas del teclado o el scroll del mouse\n\n" | |
while :;do |
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
#no estoy seguro si todo es necesario, pero las dos primeras sí ~seb | |
#esto no me funcionó en Ubuntu (sucks) pero sí en Debian | |
sudo apt-get install automake | |
sudo apt-get install build-essential | |
sudo apt-get install libfuse-dev | |
sudo apt-get install fuse-utils | |
sudo apt-get install libcurl4-openssl-dev | |
sudo apt-get install libxml2-dev |
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
time echo d|dd if=/dev/zero of=asd bs=524288000 count=1 |
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
#busca solo en archivos (cambiar type en caso de querer otra cos) | |
#uso: sh buscar.sh <busqueda> <extension> | |
#remoto: bash <(curl -s URL.DEL.GIST) | |
buscar() { | |
echo "Buscando '$bus' en extension '$ext'" | |
find . -type f -exec sh -c "echo {}|grep -q '\.$ext' && echo '\033[0;31m Analizando \033[0;32m {} \033[0m:' && (cat {}|grep \"$bus\") " \; | |
} |
OlderNewer