You are viewing [info]jackal's journal

Agnus Dei's Journal

> recent entries
> calendar
> friends
> profile

Sunday, May 6th, 2012
6:10 pm - How to install gimp under MacOSX 10.7.3
Currently if you try to install gimp on MacOSX 10.7.3 via MacPorts (2.0.4-10.7-Lion) you'll get the following error:
# sudo port install gimp
---> Computing dependencies for gimpError: Unable to execute port: can't read "startupitem.install": no such variable
To report a bug, see ...
Here's the fix/workaround for it:
# sudo port install gimp +no_startupitem

(comment on this)

Saturday, April 28th, 2012
6:40 pm - How to fix the annoying macosx "are you sure you want to open this" dialgue
How to get rid of that annoying ass Dialogue in MacOS prompting you after you download something saying "Are you sure you want to open this. It was downloaded from the Internet."

Which gets to be EXTREMELY annoying when you download 100 photos and want to view them all at once. And each one prompts you in Preview. Actually it's worse, if you Select All the photos and try to open them at once, the first once gives you that annoying dialogue and then it quits. So it only opens ONE of them. ANNOYING APPLY BUG!!!!

This is how to fix that shit!

http://osxdaily.com/2010/09/12/disable-application-downloaded-from-the-internet-message-in-mac-os-x/

(comment on this)

Wednesday, April 11th, 2012
11:45 am - My 2 favorite web debugging tools.
My 2 favorite web debugging tools.

1- Firebug for Firefox, http://getfirebug.com/

2- ySlow for Firebug, https://addons.mozilla.org/en-US/firefox/addon/yslow/

(comment on this)

Monday, March 5th, 2012
1:33 pm - keep - let's you see what's eating up all your memory
ps -Ao pid,tt,user,fname,size --sort size

(comment on this)

Sunday, January 22nd, 2012
12:21 am - ssh tunneling
http://www.revsys.com/writings/quicktips/ssh-tunnel.html

(comment on this)

Wednesday, October 20th, 2010
2:40 pm - Script for finding large files on your system (linux/unix)
$ cat find_large_files 
#!/bin/sh

if [ "$1" == "" ]; then
        echo "usage: find_large_files <filesystem/directory>"
        exit
fi

find $1 -type f -size +10000k -exec ls -lh {} \; | awk '{ print $5 ": " $9 }' |sort -rn



Here's a much better way (because time stamps change from "YYYY-MM-DD" to "MMM DD YYYY" from system to system):

find /tmp -type f -size +1000k -exec ls -l --time-style=+%Y%m%d {} \; | awk '{ print $5 ": " $7 }' |sort -rn > /tmp/large-files



UPdate:
Here's how to exclude a directory. In this case "/scratch":

# find / -not -path "*scratch*" -type f -size +10000k -exec ls -l --time-style=+%Y%m%d {} \; | awk '{ print $5 ": " $7 }' |sort -rn > /tmp/large-files 

(2 comments | comment on this)



> top of page
LiveJournal.com