Japanisches Restaurant in Düsseldorf – schöne Erklärungen von Wikipedia auf der Wandtafel, sogar die “[Bearbeiten]”-Links wurden 1:1 kopiert.
Seen in a japanese restaurant in Düsseldorf – good explanations from Wikipedia on the wallboard, even the links for editing content (“Bearbeiten” in German) were copied.
Syslogviewer widget 0.94
Just uploaded a new version, which has an improved layout – and is now resizable in both dimensions.
Details / downloadSyslogviewer widget
A Dashboard widget for OS X to view a logfile continuously.
Details/DownloadJavascript autocomplete
Available now here: CwComplete.
Fast user switching via commandline
This is quite an undocumented feature, here is how it works:
Show login screen (without logging out):
#!/bin/bash
# Show the login screen (without logging out)
#
# From: www.chipwreck.de
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
Switch current user (replace 501 with the correct UID):
#!/bin/bash
# Switch to another user without logging out - replace 501 with the uid of the user you switch to
#
# From: www.chipwreck.de
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 501
Finder / Toggle visibility of hidden files
Via Shell this way:
#!/bin/bash
# Toggle Finder showing hidden files
#
# From: www.chipwreck.de
value=`defaults read com.apple.finder AppleShowAllFiles`
if [ $value == "TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
exit 0
Open the terminal with path set to given location
Useful for an automator action for example:
-- Open terminal at given path
--
-- From: www.chipwreck.de
set p to POSIX path of (item 1 of i as alias) -- define i
tell application "Terminal"
activate
do script "cd \"" & p & "\""
close window 2
end tell
System wide key remapping
When editing text or code it is quite often very useful to jump to the beginning or the end of a line, or to move the cursor one page up or down..
Unfortunately the keys dedicated to this task (home/end/pageup/pagedown on a windows-pc) have got a different meaning on a mac: Page up/down scroll one page up/down – without moving the caret (cursor), home/end move to the beginning/end of a document – also without moving the insertion point.