Take screenshots using Terminal

Take a screenshot from Terminal and automatially open it in mail ready to be sent.

screencapture -W -M mailme.jpg

You can click a window, and it’ll just grab that window

Also, do:

screencapture -h

Ton of options.

Tagged with: , , , , ,
Posted in 2013, OS X, Rambling

Disabling .DS_Store file creation over network drives

Open Terminal and type (paste)

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

You’ll need to log out and log back in for it to take effect.

Job done.

Tagged with: , , , , , ,
Posted in 2013, OS X

Protecting Zip files with a password in OS X

To create a password protected file in OS X, open Terminal, go to your folder, then :

The syntax is zip -e [archive] [file]

Example

zip -e foobar.zip *.txt
Enter password:
Verify password:

Done ;)

Tagged with: , , , , ,
Posted in 2013, OS X

Removing Multiple ‘Open With’ Entries in OS X Finder

Launch terminal and paste

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Once the process is finished (sometimes it takes a while), you need to restart Finder via this code:

killall Finder

Job done.

Tagged with: , , , , ,
Posted in 2013, OS X

Warren G. and Nate Dogg’s “Regulate” synopsis

On a cool, clear night (typical to Southern California) Warren G travels through his neighborhood, searching for women with whom he might initiate sexual intercourse. He has chosen to engage in this pursuit alone.

Nate Dogg, having just arrived in Long Beach, seeks Warren. Ironically, Nate passes a car full of women who are excited to see him. He insists to the women that there is no cause for excitement.
Read more ›

Tagged with: , , , , ,
Posted in 2013, Humor

How to convert FLAC to MP3, Ubuntu command line

This worked great, but make sure you have “lame” and “flac”

sudo apt-get install flac
sudo apt-get install lame

Then in the folder with all the .flac files:

for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done

Tagged with: ,
Posted in Rambling

How to run a shell script using Spotlight

Save your shell script with a .command suffix – this makes it double-clickable and you should also be able to run it directly from Spotlight too.

Tagged with: , , , , ,
Posted in Rambling

Relauch Dock/Finder/Menu bar from Terminal

Annoying things that often happen

The Finder crashed:

killall -KILL Finder

The Dock crashed:

killall -KILL Dock

Spaces crashed:

killall -KILL Dock

The Menubar crashed/refuses to be clickable:

killall -KILL SystemUIServer
Tagged with: , , , ,
Posted in 2012, OS X

Enabling PHP in OS X Lion

Edit your

/etc/apache2/httpd.conf

and make sure the line:

LoadModule php5_module libexec/apache2/libphp5.so

exists. By default in the standard OS X config, you just need to uncomment it, then re-start Apache:

sudo apachectl restart

And you should be good to go.

Tagged with: , , , , , ,
Posted in 2012, Apple, OS X

The Crazy Ones (2)

As narrated by Steve himself. 

Tagged with: , , , ,
Posted in Rambling
Recent Tweets

View more tweets

Calendar
June 2013
M T W T F S S
« May    
 12
3456789
10111213141516
17181920212223
24252627282930
Flickr
Demo of my iOS AppScreenshot from my AppFinally, Spring!Freya's first smileFreya 13/3/13Processed with Instant AppSnowFrozen