Welcome To Snipplr


Everyone's Recent Bash Snippets



1 ... 34 35 36 37 38 ... 41
If Ubuntu Server fails to resolve hostnames or find a network connection via Parallels 3 bridged networking, it may be attempting to use the wrong network interface.
0 1752 posted 18 years ago by cczona
Quick command I use to remove .SVN folders from a tree structure copied from SVN working copy. Sometimes a bit easier than running an export.
6 3143 posted 18 years ago by wfdev
find command just returns a list of HTML files that have 'search_str' in it, vim takes a list of files.
0 1823 posted 18 years ago by mandric
0 1548 posted 18 years ago by mandric
count .htm or .html files in the directory. use ls and grep command.
1 1872 posted 18 years ago by kyokutyo
1 2034 posted 18 years ago by CharlyBr
recover to normal speed with /sbin/ipfw delete 100 /sbin/ipfw delete 200 ... or reboot
0 2100 posted 18 years ago by zingo
Useful when trying to cleanup a large repo to see where you've made the most changes
1 2815 posted 18 years ago by JacobSingh
Forces a recalcitrant port to install by *uninstalling* it completely first
0 1334 posted 18 years ago by cczona
//for options available, see: http://www.ss64.com/bash/shopt.html
1 2058 posted 18 years ago by cczona
Sure that programmers know this, but me as a sysadmin does not use svn that much.
3 2706 posted 18 years ago by therobot
This command will not delete the .DS_Store files from the file system, just take them out of version control. Before doing this it would be a good idea to setup the repository to ignore .DS_Store files.
1 3068 posted 18 years ago by jachin
Improved blipsend miniapp Requires curl, zenity and sed
0 1458 posted 18 years ago by lukaszkorecki
\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.
1 2389 posted 18 years ago by ches
Il suffit de créer une page PHP et y placer un phpinfo() ou si vous avez accès au serveur en ligne de commande (Putty, WinSCP, ...), vous pouvez tapez cette commande. Dans l'exemple, nous souhaitons savoir si l'extension openssl est présente et no...
0 1835 posted 18 years ago by cyo
0 1998 posted 18 years ago by zingo
0 2100 posted 18 years ago by zingo
2 2351 posted 18 years ago by zingo
This script removes (DROPS) all tables that start with foo_. Usefull if you had some CMS or application that (ab)uses table prefixing, and want to clean 0ut your database. NOTE: the data is remove FOREVER! So take good casre: make backups and all...
2 2397 posted 18 years ago by berkes
0 1891 posted 18 years ago by assbach
When Apache under OS X throws 'Forbidden' errors on files under the ~/Sites path, and the error log report 'Permission denied: access to /somefile/blah failed because search permissions are missing on a component of the path', check a missing Other E...
1 2318 posted 18 years ago by cczona
A very dynamic and flexible bash prompt. Personally I find this to have everything needed. It shows exit status, shortens itself for long directories, and shows bash history for easy referencing. Hopefully it doesn't get messed up.
2 2042 posted 18 years ago by robh
This requires ImageMagick installed. Resize, as well as convert the image format. (Note: either of WIDTH or HEIGHT can be left blank, e.g. WIDTHx and the image will be resized proportionally)
1 2103 posted 18 years ago by soroush
test with echo instead of mv example removes spaces after dots, replaces spaces with _, removes ' , and -, and finally lowercases filenames
1 2343 posted 18 years ago by iblis
3 1945 posted 18 years ago by iblis
1 ... 34 35 36 37 38 ... 41