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/bash | |
# Generate 3 images from the specified one | |
# takes two parameters" | |
# The image to be resized | |
# The new image base name | |
# The base image size | |
# Generates: | |
# A new image at the base size, this will be named <new image base name>.png | |
# A new image at 2x the base size, this will be named <new image base name>@2x.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
alias emal="emacs ~/.profile" | |
alias dosh=". ~/.profile" | |
alias cd..="cd .." | |
alias rgrep="grep -r" | |
alias cls='tput clear' |
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
/** | |
@interface <#Interface#> | |
@addtogroup <#Group#> | |
@{ | |
*/ | |
/** | |
@brief <#Brief description#> | |
<#Full description#> | |
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
/** @} */ |
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
MyMac:~ myuser$ sudo dscl | |
Password: (your password) | |
Entering interactive mode... (type "help" for commands) | |
> cd /Local/Default/ | |
/Local/Default > | |
/Local/Default > ls Groups gid |
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/bash | |
LOG=/Developer/jenkins/logs/slave.log | |
sudo rm -f $LOG | |
date >$LOG | |
chmod 777 $LOG | |
echo ============================= >> $LOG | |
echo whoami >> $LOG |
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
alias emal="emacs ~/.bash_aliases" | |
alias doal=". ~/.bash_aliases" | |
alias dosh=". ~/.bashrc" | |
alias cd..="cd .." | |
alias rgrep="grep -r" | |
alias cls='tput clear' | |
alias ls='CLICOLOR_FORCE=1 ls -G' | |
alias less='less -R' |
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
sudo xcode-select --switch /Applications/<insert Xcode app path here>/Contents/Developer |
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
# for example Name with capital is "Derekmac" and fully qualified lower case name is "derekmac.derek.domain.com" | |
sudo scutil --set ComputerName <Name with capital> | |
sudo scutil --set LocalHostName <Name with capital> | |
sudo scutil --set HostName <fully qualified lower case name> | |
dscacheutil -flushcache |
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
# If apache isnt starting, Try this to help debug: | |
sudo bash -x /usr/sbin/apachectl -k start |
OlderNewer