Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
1. Create a proxy on 8080 to foreword traffic to your server
2. Install Foxyproxy and use options 127.0.0.1:8080 and SOCKS5 enabled
3. Profit
1
772
posted 14 years ago by benpjohnson
Eu ouço podcasts no mp3 do carro.
Problema: Se quero adiantar 10 minutos, preciso ficar 3 minutos com o dedo pressionando o >> :(
Solução: Dividir podcasts com mais de 40Mb em trechos de 5 minutos.
A linha abaixo acha esses arquivos no cartÃ...
0
561
posted 14 years ago by gpupo
I use this bash oneliner all the time to recursively search for a string in large codebases. I use it when searching for mentions of tables, databases, function definitions, function calls etcetera.\r\n\r\nIt searches through a number of file types (...
1
921
posted 14 years ago by niels_bom
from: http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/
0
885
posted 14 years ago by edeustace
This script let you back up your servers at once from a central backup server. First you must copy the central server ssh public key into the servers to backup (without password). After that you can install this script with a cron.
0
711
posted 14 years ago by eusonlito
Script to backup all MySQL databases and delete copies after X days
1
733
posted 14 years ago by eusonlito
To rename a bunch of files from "*.foo" to "*.bar" (like windows' REN *.foo *.bar) in unix.
Looking at the solution, it is easy to adapt it to more powerful character substitutions on a 1 to 1 basis.
If you want to test what will be executed b...
0
893
posted 14 years ago by jarnaldich
Dumps the contents of a mysql database to a .sql file named by the current date.
0
793
posted 14 years ago by gdvickery