Remove favicons from Safari's cache
grep -r "domain.tld" ~/Library/Safari/Icons/
Then, just remove all the files that match.
2261 users tagging and storing useful source code snippets
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!)
grep -r "domain.tld" ~/Library/Safari/Icons/
# for mdfind "phrase* " and "phrase! " also work, but not "phrase ! " mdfind -0 -onlyin ~ "phrase This is a" | xargs -0 grep -ails -E 'This is a phrase!' mdfind -0 "It's just $8.99!" | xargs -0 grep -ails -E "It's just \\\$8\\.99\\!" mdfind -0 'Fr\303\251d\303\251ric Chopin' | xargs -0 grep -ails -Z -E 'Fr.d.ric Chopin' | \ xargs -0 basename
mdfind -onlyin ~ "*==*" | grep -i -E 'part.*?of.*?name' mdfind -onlyin ~ '*==* && kMDItemContentType == "text"wc' | \ grep -i -E '.*?txt$' mdfind -onlyin ~ '*==* && kMDItemKind == "Folder"' | \ grep -i -E '.*?photos.*?[0-5]'
defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1
cd ~/Desktop curl -O http://darwinports.opendarwin.org/downloads/DarwinPorts-1.2-10.4.dmg hdiutil attach DarwinPorts-1.2-10.4.dmg cd /Volumes/DarwinPorts-1.2/ sudo installer -pkg DarwinPorts-1.2.pkg -target "/" hditutil detach /Volumes/DarwinPorts-1.2/
#!/bin/sh for i in `find . -regex '.*\._.*'`; do rm $i; echo "removing $i"; done
osascript -e 'set volume output muted true'
LIGHTTPD=-YES-
#!/bin/sh # # /Library/StartupItems/Lighttpd/Lighttpd # # Script to startup lighttpd with OS X booting. # OS X 10.3 Jaguar # modified by kjell olsen # # adapted from the startup mysql # (c) 2003 MySQL AB # Written by Lenz Grimmer# # Suppress the annoying "$1: unbound variable" error when no option # was given if [ -z $1 ] ; then echo "Usage: $0 [start|stop|restart] " exit 1 fi # Source the common setup functions for startup scripts test -r /etc/rc.common || exit 1 . /etc/rc.common # change config and script to match your machine's lighttpd config and lighttpd CONFIG="/etc/lighttpd/lighttpd.conf" SCRIPT="/usr/local/sbin/lighttpd" StartService () { if [ "${LIGHTTPD:=-NO-}" = "-YES-" ] ; then ConsoleMessage "Starting Lighttpd Server" $SCRIPT -f $CONFIG fi } StopService () { ConsoleMessage "Killing Lighttpd Server" kill `cat /var/run/lighttpd.pid` } RestartService () { ConsoleMessage "Restarting Lighttpd server" /Library/StartupItems/Lighttpd/Lighttpd stop /Library/StartupItems/Lighttpd/Lighttpd start } if test -x $SCRIPT ; then RunService "$1" else ConsoleMessage "Could not find lighttpd startup script!" fi
<?xml version="1.0" encoding="UTF-8"?> DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Descriptionkey>Lighttpd 1.13< /string> <key>OrderPreferencekey>None< /string> <key>Provideskey>/string> array> Lighttpd< Uses< /key> <array> <string>Networkstring>Resolver< /string> array> </dict> plist>