This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ====== | |
# = tr = | |
# ====== | |
# Use the tr command to translate one character to another. | |
tr ';' ',' <before.txt >after.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# convert case | |
tr 'A-Z' 'a-z' <before.txt >after.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# install tor from source for command line tools | |
# tor-resolve | |
# first download and install libevent - http://libevent.org/ | |
cd libevent-2.0.19-stable/ | |
./configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============== | |
= Dictionary = | |
============== | |
select some text then press the key combination below to open the dictionary | |
⌘+Ctrl+D | |
================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================== | |
= Mac osx keyboard shortcuts = | |
============================== | |
/* Paragraphs =============================================================================*/ | |
control-A move to start of current paragraph | |
control-E move to end of current paragraph |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#The last number is the time interval in seconds, making hours grouped by 3600 second segments. | |
#If you wanted to wait 4 hours between backups, the number would be 14400, and so on. | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 14400 | |
#The default setting is one hour, or 3600 seconds, which can be restored with: | |
# sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 3600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time machine set up | |
1 - create the sparsebundle disk image with disk quitlity | |
2 - set the volume size to partition size of hard drive its on | |
3- name the sparsebundle with the ethernet id of the mac you are backing up | |
computername_000000000000.sparsebundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Back up my Dropbox to a USB Stick with Time Machine | |
You exclude every folder on your Mac except the Dropbox folder from your Time Machine back up | |
1 - Insert USB stick into Mac ( Make sure the usb stick is bigger than the size of your Dropbox ) | |
2 - Open Disk Utility and then select the USB in the left pane and click the erase button |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# =========================================== | |
# = textutil convert text to another format = | |
# =========================================== | |
# syntax | |
# textutil -convert fmt filename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
say -f infile.txt -o outfile.aiff |