Removing your Time Capsule .sparsebundle can take multiple days (or weeks) if you use Finder or Terminal.
The fastest way is by connecting to the TimeCapsule through Windows running in Parallels/VMWare etc and delete it using Windows Explorer (\\ipadress of time capsule). It took 'only' 80 minutes to remove 1.5TB (1.8 million files of 8MB)
een handige tool om snel afbeeldingen te bewerken
ipconfig getifaddr en1
or
ifconfig en1 | grep "inet " | cut -d " " -f2
convert file.png file.ico
clear
pbpaste pbpaste | head -n 5
ls | pbcopy
pbpaste | expand | pbcopy
ls | sort
ls | rev
ls | uniq
ls | uniq -d
ls | uniq -u
diskutil eject disk1
or
drutil tray eject
dig companje.nl A
defaults write com.apple.dashboard mcx-disabled -boolean YES killall Dock
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I|grep " SSID: "|cut -c 18-
or
networksetup -getairportnetwork en1 networksetup -getairportnetwork en1 | cut -c 24-
killall Finder
networksetup -listallhardwareports
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --getinfo
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s
ln -s fullpath-source-www /Users/rick/Sites/8
alt+F2
Download QLColorCode. Create folder ~/Library/QuickLook and copy QLColorCode.qlgenerator to that folder.
SetFile
hdiutil create ....
system_profiler SPUSBDataType
ping -i 5 -c 2 192.168.1.255
ping IPADDRESS arp -a
sudo fping -s -g 192.168.0.1 192.168.0.9 -r 1
sudo apachectl start
sudo launchctl stop org.cups.cupsd
diskutil list diskutil unmountDisk /dev/disk3 dd if=debian6-19-04-2012.img of=/dev/disk3 bs=1m
(…additional “bs” parameter to “1m”? This parameter is used to set both the input and output block size for the copy)
geen idee wat het doet maar het doet iets.
only loopback traffic: tcpdump -i lo0 -vv
en0 ethernet, en1 wifi
- er is standaard een tftp client geinstalleerd
- een prima tftp server is TftpServer
otool -L install_name_tool libtool
http://qin.laya.com/tech_coding_help/dylib_linking.html otool is an alternative for linux' 'ldd'
ar -t libctest.a
<code>
export CFLAGS=”-i /usr/local/include/libusb-1.0”
</code>
for Preview, Quicktime and XCode:
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false defaults write com.apple.dt.Xcode NSQuitAlwaysKeepsWindows -bool false
this file contains the search paths
instead of cd ~ you can just type cd
CGPoint pt; pt.x = x; pt.y = y; CGEventRef mouseDownEv = CGEventCreateMouseEvent (NULL,kCGEventMouseMoved,pt,kCGMouseButtonLeft); CGEventPost(kCGHIDEventTap, mouseDownEv); CFRelease(mouseDownEv);
sudo ifconfig en1 ether aa:bb:cc:dd:ee:ff
to check the result type:
ifconfig en1 | grep ether
for Lion you might need to change ether into Wi-Fi.
When you reboot your computer the original address is restored.
Escape character is '^]'
which means Ctrl+]
sudo nano -w /etc/hosts sudo dscacheutil -cachedump -entries Host dscacheutil -flushcache
http://stackoverflow.com/questions/3918032/bash-serial-i-o-and-arduino
can you run stty -a < /dev/tty.usbserial-A800eIUj while you have the serial port working on the Arduino IDE? That would give you the settings to use.
stty -f /dev/tty.PL2303-00001004 19200
otool -L libopenFrameworks.dylib
install_name_tool
nog uitzoeken: launchd en lingon
grep -ir "texttofind" *
find . | grep -i ".cpp"
git diff | grep 'piano'
g++ -Wall -O3 -g -framework OpenGL -framework GLUT bezmesh.c -o bezmesh
Don't forget to include OpenGL and GLUT like this:
#ifdef __APPLE__ #include <OpenGL/OpenGL.h> #include <GLUT/glut.h> #else #include <GL/glut.h> #endif
or type ls -G or put the following in your ~/.profile file for a permanent solution.
export CLICOLOR=1
defaults write com.apple.finder AppleShowAllFiles TRUE
(and reload Finder)
defaults write com.apple.screencapture location /Users/rick/Desktop/screenshots
SizeUp allows you to quickly position a window to fill exactly half the screen (splitscreen), a quarter of the screen (quadrant), full screen, or centered via the menu bar or configurable system-wide shortcuts (hotkeys). Similar to “tiled windows” functionality available on other operating systems.
Install Visor to have a system-wide terminal on a hot-key.
sips input.jpg -r 90 --out output.jpg
sips -s format jpeg 4.gif --out 4.jpg
chmod -R 777 data
alias dir="ls -lGa"
alias tocaf="afconvert -f caff -d LEI16"
alias cdd="cd ~/Desktop"
see ffmpeg
sudo port install pdftk pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
An alternative for macports
Wireshark is a tool to analyze network traffic
installed by default.
hexdump filename
zie nano
See this page: link I managed to send an email but it's not working completely yet.
Handige app om GCODES mee te bekijken in 3D
synergys --config synergy.conf
synergy.conf:
section: screens
rick.local:
User-PC:
end
section: links
rick.local:
right = User-PC
User-PC:
left = rick.local
end
Discussion