Make sure everything is up to date.
2. Install Xcode and its "Command Line Tools"
- Go to App Store and install Xcode.
Make sure everything is up to date.
Make sure everything is up to date.
@echo Off | |
php "%~dp0NOMEDOCOMANDO.phar" %* | |
#REM [en] | |
#REM %~dp0 is the directory of the actual file (command.bat) , its like the directive __DIR__ on php. | |
#REM [pt_BR] | |
#REM %~dp0 é o diretório do arquivo atual, similar a diretiva __DIR__ do php. |
# Drop ICMP echo-request messages sent to broadcast or multicast addresses | |
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts | |
# Drop source routed packets | |
echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route | |
# Enable TCP SYN cookie protection from SYN floods | |
echo 1 > /proc/sys/net/ipv4/tcp_syncookies | |
# Don't accept ICMP redirect messages |
#!/bin/bash | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killall Finder |
# Reset | |
Color_Off='\[\e[0m\]' # Text Reset | |
# Regular Colors | |
Black='\[\e[0;30m\]' # Black | |
Red='\[\e[0;31m\]' # Red | |
Green='\[\e[0;32m\]' # Green | |
Yellow='\[\e[0;33m\]' # Yellow | |
Blue='\[\e[0;34m\]' # Blue | |
Purple='\[\e[0;35m\]' # Purple |
Currently just a collection of snippets, but should be developed into a setup Script! | |
# Make Sublime available from the command line (sublime ~/.hgrc) | |
$ sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime |
export PS1="\w $ " | |
export CLICOLOR=1 | |
export GREP_OPTIONS="--color=auto" | |
alias cl="source cl.sh" | |
alias work="cd ~/work" | |
alias ll="ls -al" | |
alias ahosts="vi ~/etc/apache2/httpd-vhosts.conf" | |
alias vhosts="sudo vi /etc/hosts" | |
alias subl='open -a "Sublime Text 2"' |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
brew update | |
brew install coreutils | |
brew install findutils | |
brew install bash |
A hidden gem in OS X is Apple’s ditto command. I’ve found this incredibly useful in copying large amounts of data as it can run within a Terminal window that contains more useful information about its progress than the more traditional Finder copy window.
$ ditto -V /old/work/ /new/work/