This file contains 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 | |
# pad images to height | |
sips --padToHeightWidth 77 32 *.png |
This file contains 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 | |
# crop images with sips | |
# sips --cropToHeightWidth height width *.png | |
sips --cropToHeightWidth 93 223 *.png |
This file contains 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 | |
#-----------------------------------------------# | |
# shutdown mac | |
#-----------------------------------------------# | |
# Shutdown immediately | |
sudo shutdown -h now | |
# Restart immediately |
This file contains 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 | |
# show wifi network | |
networksetup -getairportnetwork en0 |
This file contains 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 | |
# =========================================== | |
# = show os version from command line (mac) = | |
# =========================================== | |
sw_vers |
This file contains 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 | |
# show ipv6 address | |
dns-sd -F |
This file contains 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 | |
# show hard drive size | |
df -h |
This file contains 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 | |
# show file size | |
du -sh somedirectory |
This file contains 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
Set Help Viewer window to non-floating mode. | |
have an icon in the Dock for Help Viewer | |
and how to set its windows to non-floating mode. | |
In DevMode Help Viewer has an icon in the Dock | |
and its windows are non-floating windows. | |
To activate Help Viewer DevMode type this in a terminal window: |
This file contains 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 | |
#-----------------------------------------------# | |
# Sendmail fix on Mountain Lion | |
#-----------------------------------------------# | |
sudo mkdir -p /Library/Server/Mail/Data/spool | |
sudo /usr/sbin/postfix set-permissions | |
sudo /usr/sbin/postfix start |