Open or create your personal ~/.bashrc withĪlias OF1. 6-ext= 'hdiutil attach ~/OpenFOAM.sparseimage > /dev/null. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc' 2.4.The SSD on my Air died this weekend, no backup. This time when setting a new system up I took note of all the steps.Īll the steps were tested on the latest Mac OS X 10.8.3 (latest). Install Command Line Tools (Preferences -> Downloads).Read brew doctor output and do what it says if something is wrong! This is a package manager with packages described in ruby. Git config -global credential.helper osxkeychain Git config -global core.excludesfile '~/.gitignore' Some packages you will probably need for ruby dev: brew install node wget qt4 curl-ca-bundle Git Here is how you can create a user (from psql console): CREATE USER zuigo WITH PASSWORD 'zuigo' Now you can connect to it via psql console: psql -h 127.0.0.1 postgres Ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents \curl -L | bash -s head -ruby=2.0.0 -autolibs=enabled Postgresql brew install postgres Ruby version manager (install and auto-switch ruby and gems per-project). GRANT ALL PRIVILEGES ON `zuigo%`.* TO Redis # Grant all privileges for DB names that start with "zuigo" Here is how you can create a user (from mysql console): # For every host create a user (or use USER IDENTIFIED BY 'zuigo' Now you can connect to it via mysql console: mysql -uroot Ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents There is also a GUI pg manager helpful for troubleshooting issues MySQL brew install mysql #Install wget mac os x 10.8 password Launchctl load ~/Library/LaunchAgents/ ZSH Ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Great in-memory data structure store, persistent with expiry times, works with (z-)sets, arrays, hashes, and key-value. Zsh is much better! brew install zshĬat /etc/shells | grep zsh || which zsh | sudo tee -a /etc/shells Mac OS X comes with an old bash for a shell. Then after installing zsh I just do: rm ~/.gitconfig ~/.viminfo You'll also want all the magic provided by either zprezto or oh-my-zsh. it has user.name set to Gleb Mazovetskiy in. Gitconfig etc), but you can fork it or create your own from scratch. iTerm2 - must have, proper terminal for Mac, graphical tmux.Growl - notifications centre, works with iterm, will tell you when bundle update is done!.Notational Velocity - great notes on hotkey (this is written using NV).While that is all that you need to know to use wget for downloading files, there are many other commands that’ll enable you to control its usage and you can access them within your terminal in wget’s man page or online. r (or -recursive) and -np (or -no-parent) tells wget to follow links within the directory that you’ve specified. The -e robots=off flag tells wget to ignore restrictions in the robots.txt file which is good because it prevents abridged downloads. Downloading a directory # wget -e robots=off -r -np the wget command, -X to indicate the file path (unless you want to save the downloaded content to your current working directory), and the public link. Downloading a single file # wget -X path/to/py # brew install wgetĪs long as a file or directory’s URL is publicly accessible, you can download it and files can be downloaded singly or recursively when downloading directories. Next, install wget command-line download client. ![]() Install Homebrew using the following command, it will also install Xcode’s command line tools if they aren’t already installed: # /bin/bash -c "$(curl -fsSL )" Don’t worry if you don’t have it installed, I’ve got you covered: There are alternatives like Fink and MacPorts but I prefer using Homebrew.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |