Search open Apache directory listings
-inurl:htm -inurl:html intitle:"index of" "Last modified" (pdf|chm) "linux"
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
What next?
1. Bookmark us with del.icio.us or Digg Us!
2. Subscribe to this site's RSS feed
3. Browse the site.
4. Post your own code snippets to the site!
-inurl:htm -inurl:html intitle:"index of" "Last modified" (pdf|chm) "linux"
wget -erobots=off --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" -H -r -l2 --max-redirect=1 -w 5 --random-wait -PmyBooksFolder -nd --no-parent -A.pdf http://amazoo.com
wget -mk -p -N "http://www.yahoo.com"
wget -c --output-document=file.zip "http://www.hostname.com/files/testfile1"
wget -m -nd -A.avi -erobots=off -i urls.txt
wget -S yahoo.com
find . -iname "*.php" -exec perl -pi -e 's/[SEARCH]>/[REPLACE]/g' {} \;
for F in *.VOB do ffmpeg -i $F -target ntsc-dvd -s 720x480 -r 29.970 new-$F done
// insert code here..
def h(string) string.gsub(/<\/?[^>]*>/, "") end
#!/bin/sh if [ -z "$1" ]; then echo "Usage: $0 {-divx|-xvid} list_of_flv_files" exit 1 fi # video encoding bit rate V_BITRATE=1000 while [ "$1" ]; do case "$1" in -divx) MENC_OPTS="-ovc lavc -lavcopts \ vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoaspect" ;; -xvid) MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect" ;; *) if file "$1" | grep -q "Macromedia Flash Video"; then mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \ -lameopts fast:preset=standard -o \ "`basename $1 .flv`.avi" else echo "$1 is not Flash Video. Skipping" fi ;; esac shift done
sed 's+href="\([^"]*\)"+\n\1\n+g' bookmarks.html | grep '^http' |clive
import os dir_path = "test" def create_test_files(): child_dir_path = os.path.join(dir_path, "child_dir") os.mkdir(dir_path) os.mkdir(child_dir_path) open(os.path.join(child_dir_path, "test_file.txt"), 'w').close() open(os.path.join(dir_path, "test_file.txt"), 'w').close() create_test_files() for root, dirs, files in os.walk(dir_path, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) os.rmdir(dir_path)