Skip to content

Instantly share code, notes, and snippets.

@Raefael
Raefael / disable_local_backups
Created August 31, 2013 10:03
disable local backups
sudo tmutil disablelocal
@Raefael
Raefael / reminder_ls
Created August 21, 2013 05:58
reminder for the ln command
sudo ln -s /Quelle/foo /Ziel/foo
sudo ln -s /Volumes/Daten/Benutzer /Users/Benutzer
@Raefael
Raefael / open_macappstore_tmp_folder
Created August 6, 2013 06:12
find temporary files downloaded from MacApp Store
open $TMPDIR../C/
@Raefael
Raefael / create_missing_trash
Created July 30, 2013 09:40
If you cant delete files
EDIT: Also under Get Info be sure the file isn't locked.
If that's so launch Applications/Utilities/Terminal and at the prompt copy & paste this command…
mkdir ~/.Trash
If you get a message that the folder already exists, copy & paste these commands...
sudo chown $UID ~/.Trash
Press return Enter your admin password (it will be invisible) Press return
chmod u+rwx ~/.Trash
Press return. Log out and back in, or restart.
@Raefael
Raefael / deleting_merging_partitions
Created June 12, 2013 07:34
Deleting and merging a partition with diskutil from the command line OS X
/**
* diskutil list shows you the partitions currently connected to your unit
**/
imac:~ user$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 987.2 GB disk0s2
/**
* Since 10.8.4 you may receive the following error messages in the konsole.app
* May 13 23:56:41 alluminium coreaudiod[238]: Enabled automatic stack shots because audio IO is inactive
* May 13 23:56:42 alluminium coreaudiod[238]: Disabled automatic stack shots because audio IO is active
*
* To avoid that Create /Library/Preferences/Audio/com.apple.audio.ServerSettings.plist with the following content
**/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
@Raefael
Raefael / roll_a_dice
Created May 31, 2013 07:12
Roll a dice in bash or zsh
# rolling a w6 dice on the terminal
echo $[RANDOM%6+1]
@Raefael
Raefael / enable_MAS_debug_menue
Created May 24, 2013 11:45
Enable MAS Debug Menue
#Enable MAS Debug Menue
defaults write com.apple.appstore ShowDebugMenu -bool true
@Raefael
Raefael / Disable IPv6 in OS X Lion
Created May 21, 2013 10:03
Disable IPv6 in OS X Lion
networksetup -listallnetworkservices
#To disable IPv6 for wireless, issue the following command:
networksetup -setv6off Wi-Fi
#to disable IPv6 for Ethernet, issue the following command:
networksetup -setv6off Ethernet
#To re-enable IPv6, use
-setv6automatic instead
@Raefael
Raefael / disable_OS-X_startup_chime
Created May 21, 2013 07:53
Disable OS X startup chime
# turns off the startup chime
sudo nvram SystemAudioVolume=%80
# turn on the startup chime
sudo nvram SystemAudioVolume=&@