-
Star
(311)
You must be signed in to star a gist -
Fork
(82)
You must be signed in to fork a gist
-
-
Save g3d/2709563 to your computer and use it in GitHub Desktop.
Revisions
-
g3d revised this gist
Apr 15, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,8 @@ Apps * [LiveReload](http://livereload.com) * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions) * [Clipy](https://clipy-app.com/) * [Captain](https://getcaptain.co/) * [Brew services menubar](https://github.com/andrewn/brew-services-menubar) #Xcode Command Line Tools -
g3d revised this gist
Aug 20, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Apps * [Atom Editor](https://atom.io/) * [LiveReload](http://livereload.com) * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions) * [Clipy](https://clipy-app.com/) #Xcode Command Line Tools -
g3d revised this gist
Feb 4, 2016 . 1 changed file with 1 addition and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,6 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ # install homebrew packages brew install \ tree \ node \ ssh-copy-id \ @@ -46,6 +45,7 @@ caskroom/cask/brew-cask ####Homebrew Web Server Packages ```bash brew install \ rabbitmq \ dnsmasq \ nginx \ mariadb \ @@ -425,11 +425,6 @@ createdb -Ouser -Eutf8 -T template0 user_test Manage homebrew installed packages with LaunchRocket --------------  -
g3d revised this gist
Feb 4, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,6 +30,7 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ # install homebrew packages brew install \ rabbitmq \ tree \ node \ ssh-copy-id \ -
g3d revised this gist
Feb 4, 2016 . 1 changed file with 129 additions and 38 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -22,11 +22,73 @@ Apps `Xcode > Preferences > Downloads > Command Line Tools` ####Homebrew ```bash # install package manager ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install homebrew packages brew install \ tree \ node \ ssh-copy-id \ wget \ jpegoptim \ pngcrush \ colordiff \ imagemagick \ graphicsmagick \ ack \ caskroom/cask/brew-cask ``` ####Homebrew Web Server Packages ```bash brew install \ dnsmasq \ nginx \ mariadb \ redis \ memcached \ libmemcached \ ``` ####Homebrew Cask Apps & Fonts ```bash # add support for fonts brew tap caskroom/fonts #add dev/beta versions brew tap caskroom/versions #install mac apps & fonts brew cask install \ font-source-code-pro \ adobe-creative-cloud \ blueharvest \ cleanmymac \ cocktail \ ghostlab \ coda \ sublime-text-dev \ virtualbox \ coderunner \ google-chrome \ firefox \ codekit \ iterm2-beta \ sequel-pro \ querious \ imageoptim \ imagealpha \ xquartz \ simpholders-2-alpha \ handbrake \ vagrant \ ksdiff \ spotify \ launchrocket ``` @@ -80,62 +142,91 @@ rbenv install 2.3.0 # OS X Preferences ```bash # Enable character repeat on keydown defaults write -g ApplePressAndHoldEnabled -bool false # Set a shorter Delay until key repeat defaults write NSGlobalDomain InitialKeyRepeat -int 12 # Set a blazingly fast keyboard repeat rate defaults write NSGlobalDomain KeyRepeat -int 0 # Disable window animations ("new window" scale effect) defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false # Turn on dashboard-as-space defaults write com.apple.dashboard enabled-state 2 # Use plain text mode for new TextEdit documents defaults write com.apple.TextEdit RichText -int 0 # Make top-right hotspot start screensaver defaults write com.apple.dock wvous-tr-corner -int 5 && \ defaults write com.apple.dock wvous-tr-modifier -int 0 # Set default Finder location to home folder (~/) defaults write com.apple.finder NewWindowTarget -string "PfLo" && \ defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}" # Expand save panel by default defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true # Disable ext change warning defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # Check for software updates daily, not just once per week defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 # Use current directory as default search scope in Finder defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" # Show Path bar in Finder defaults write com.apple.finder ShowPathbar -bool true # Show Status bar in Finder defaults write com.apple.finder ShowStatusBar -bool true # Show icons for hard drives, servers, and removable media on the desktop defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true && \ defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true && \ defaults write com.apple.finder ShowMountedServersOnDesktop -bool true && \ defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true # Avoid creating .DS_Store files on network volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true # Disable disk image verification defaults write com.apple.frameworks.diskimages skip-verify -bool true && \ defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true && \ defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true # Trackpad: map bottom right corner to right-click defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 && \ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true && \ defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1 && \ defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true # Enable the Develop menu and the Web Inspector in Safari defaults write com.apple.Safari IncludeInternalDebugMenu -bool true && \ defaults write com.apple.Safari IncludeDevelopMenu -bool true && \ defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true && \ defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true && \ defaults write NSGlobalDomain WebKitDeveloperExtras -bool true # Show the ~/Library folder chflags nohidden ~/Library # Show absolute path in finder's title bar. defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES # Auto-play videos when opened with QuickTime Player defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1 # Enable AirDrop over Ethernet and on unsupported Macs defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true # Disable WebkitNightly.app's homepage defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true ``` -
g3d revised this gist
Feb 4, 2016 . 1 changed file with 87 additions and 152 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,13 +4,15 @@ Apps ---- * [Webkit](http://webkit.org) * [Chrome](http://www.chromium.org/getting-involved/dev-channel) * [Firefox](http://www.mozilla.org/en-US/firefox/beta/) * [Opera](http://www.opera.com/browser/next/) * [iTerm](http://iterm2.com) * [FileZilla](http://filezilla-project.org/download.php) * [Sublime Text](http://www.sublimetext.com/dev) * [Atom Editor](https://atom.io/) * [LiveReload](http://livereload.com) * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions) @@ -20,22 +22,31 @@ Apps `Xcode > Preferences > Downloads > Command Line Tools` #Homebrew ```bash /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install git ack wget curl memcached libmemcached readline sqlite gdbm pkg-config ``` #Shell Switch to z-shell --------------- ```bash brew install zsh curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh ``` Update .zshrc ------------- ```bash subl ~/.zshrc ``` ```bash ZSH=$HOME/.oh-my-zsh ZSH_THEME="candy" @@ -46,16 +57,24 @@ export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lo Install rvm ------------- ```bash \curl -L https://get.rvm.io | bash -s stable rvm requirements ``` OR Install rbenv ------------- ```bash brew install rbenv ``` Install rubies ------------- ```bash rvm install 2.3.0 # OR rbenv install 2.3.0 ``` # OS X Preferences @@ -119,61 +138,38 @@ defaults write com.apple.iTunes hide-ping-dropdown true ``` Set hostname ------------ `sudo scutil --set HostName Work` Install python ------------ ```bash brew install python3 ``` Install virtualenv with pip ------------ ```bash pip3 install virtualenv pip3 install virtualenvwrapper ``` Source virtualenvwrapper script ```bash VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3 source /usr/local/bin/virtualenvwrapper.sh ``` #Git Setup Github ------------ ```bash ssh-keygen -t rsa -C "g3dinua@gmail.com" @@ -194,72 +190,82 @@ git config --global color.ui true ``` #Sublime Text Add Sublime Text CLI -------------------- ```bash sudo mkdir -p "/usr/local/bin/" && ln -s "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl" "/usr/local/bin/subl" ``` Install Package Control ----------------------- ```python import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) ``` Settings -------- ```json { "always_show_minimap_viewport": true, "bold_folder_labels": true, "close_windows_when_empty": true, "default_encoding": "UTF-8", "default_line_ending": "unix", "ensure_newline_at_eof_on_save": true, "fallback_encoding": "Cyrillic (Windows 1251)", "font_face": "Mensch", "font_size": 15, "highlight_line": true, "highlight_modified_tabs": true, "ignored_packages": [ "Vintage" ], "indent_guide_options": [ "draw_normal", "draw_active" ], "margin": 2, "material_theme_accent_lime": true, "material_theme_accent_orange": true, "material_theme_accent_purple": true, "material_theme_accent_red": true, "material_theme_accent_yellow": true, "material_theme_bold_tab": true, "material_theme_disable_fileicons": true, "material_theme_disable_folder_animation": true, "material_theme_disable_tree_indicator": true, "material_theme_small_statusbar": true, "material_theme_small_tab": true, "open_files_in_new_window": false, "overlay_scroll_bars": "enabled", "rulers": [ 80 ], "show_full_path": true, "show_tab_close_buttons": true, "soda_classic_tabs": false, "soda_folder_icons": true, "spell_check": false, "tab_size": 2, "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true, "use_simple_full_screen": true, "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", "word_wrap": "true" } ``` Key Bindings ------------ @@ -271,50 +277,12 @@ Key Bindings ] ``` #Server Install pow --------------- ```bash curl get.pow.cx | sh ``` @@ -325,87 +293,54 @@ MySQL brew install mysql ``` MySQL Settings -------------- ```bash # start mysql mysql.server start # secure mysql mysql_secure_installation # connecto to mysql mysql -uroot ``` PostgreSQL ----- ```bash brew install postgres ``` PostgreSQL Settings -------------- ```bash # connect to psql psql -U `whoami` -d postgres # create user and databases createuser user createdb -Ouser -Eutf8 -T template0 user_development createdb -Ouser -Eutf8 -T template0 user_test ``` Manage homebrew installed packages with LaunchRocket -------------- ```bash brew tap caskroom/cask brew cask install launchrocket ```  Enjoy your new OS X! --------------  -
g3d revised this gist
Jul 2, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -251,7 +251,7 @@ Settings "spell_check": true, "tab_size": 2, "theme": "Soda Dark 3.sublime-theme", "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true, "use_simple_full_screen": true, "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?" -
g3d revised this gist
Jul 1, 2013 . 1 changed file with 19 additions and 15 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -231,29 +231,33 @@ Settings ```json { "close_windows_when_empty": true, "default_encoding": "UTF-8", "fallback_encoding": "Cyrillic (Windows 1251)", "font_face": "Mensch", "font_size": 14, "highlight_line": true, "highlight_modified_tabs": true, "ignored_packages": [ "Vintage" ], "margin": 2, "open_files_in_new_window": false, "show_full_path": true, "show_tab_close_buttons": true, "soda_classic_tabs": false, "soda_folder_icons": true, "spell_check": true, "tab_size": 2, "theme": "Soda Dark 3.sublime-theme", "translate_tabs_to_spaces": false, "trim_trailing_white_space_on_save": true, "use_simple_full_screen": true, "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?" } ``` Key Bindings -
g3d revised this gist
Jun 26, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -55,7 +55,6 @@ Install rubies ------------- ```bash rvm get head rvm install 1.9.3 ``` -
g3d revised this gist
Jun 26, 2013 . No changes.There are no files selected for viewing
-
g3d revised this gist
Jun 26, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Install rvm ------------- ```bash \curl -L https://get.rvm.io | bash -s stable rvm requirements ``` Install rubies -
g3d revised this gist
Jun 26, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lo Install rvm ------------- ```bash \curl -L https://get.rvm.io | bash -s stable ``` Install rubies -
g3d revised this gist
Jun 26, 2013 . 1 changed file with 0 additions and 541 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -274,25 +274,6 @@ Snippets git clone git@github.com:bytestudios/sublime-snippets.git "/Users/Joel/Library/Application Support/Sublime Text 2/Packages/Byte" ``` #Server @@ -333,246 +314,6 @@ scutil --dns ``` MySQL ----- @@ -632,288 +373,6 @@ createdb -Ouser -Eutf8 -T template0 user_test ``` Install nginx -------------- ```bash -
g3d revised this gist
Jun 26, 2013 . No changes.There are no files selected for viewing
-
g3d revised this gist
Dec 13, 2012 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -231,7 +231,8 @@ Settings ```json { "font_size": 14, "font_face": "Mensch", "margin": 2, "tab_size": 2, "translate_tabs_to_spaces": false, @@ -245,11 +246,11 @@ Settings "show_tab_close_buttons": true, "close_windows_when_empty": true, "spell_check": true, "highlight_modified_tabs": true, "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", "ignored_packages": [ "Vintage" ] } -
g3d revised this gist
Dec 13, 2012 . No changes.There are no files selected for viewing
-
g3d revised this gist
Dec 13, 2012 . 1 changed file with 19 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -231,17 +231,26 @@ Settings ```json { "font_size": 13.0, "margin": 2, "tab_size": 2, "translate_tabs_to_spaces": false, "highlight_line": true, "trim_trailing_white_space_on_save": true, "fallback_encoding": "Cyrillic (Windows 1251)", "default_encoding": "UTF-8", "use_simple_full_screen": true, "open_files_in_new_window": false, "show_full_path": true, "show_tab_close_buttons": true, "close_windows_when_empty": true, "spell_check": true, "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", "ignored_packages": [ "Vintage", "Highlight Whitespaces" ] } ``` -
g3d revised this gist
Dec 5, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -54,6 +54,7 @@ Install rubies ------------- ```bash rvm get head rvm pkg install readline # need it to work correctly with utf-8 characters in irb/pry rvm install 1.9.3 ``` -
g3d revised this gist
Dec 3, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -434,7 +434,7 @@ Group _www </IfModule> </IfModule> ServerAdmin g3dinua@gmail.com ServerName localhost -
g3d revised this gist
Sep 28, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -38,8 +38,8 @@ subl ~/.zshrc ```bash ZSH=$HOME/.oh-my-zsh ZSH_THEME="candy" plugins=(git osx rails3 ruby github node npm brew) source $ZSH/oh-my-zsh.sh export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin ``` -
g3d revised this gist
Aug 27, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -129,7 +129,7 @@ Set hostname ```bash ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) ``` ```bash -
g3d revised this gist
Aug 26, 2012 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -60,6 +60,9 @@ rvm install 1.9.3 # OS X Preferences ```bash #Fix fonth smoothing defaults -currentHost write -globalDomain AppleFontSmoothing -int 0 #Disable window animations defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false -
g3d revised this gist
May 20, 2012 . 1 changed file with 30 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -570,8 +570,6 @@ MySQL Settings -------------- ```bash #setup daemon @@ -589,6 +587,36 @@ mysql.server start ``` PostgreSQL ----- ```bash brew install --without-ossp-uuid https://raw.github.com/briancunnie/homebrew/postgres-no-ossp-uuid/Library/Formula/postgresql.rb ``` PostgreSQL Settings -------------- ```bash #create database initdb /usr/local/var/postgres #autostart mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist #fix the psql error sudo mkdir /var/pgsql_socket/ ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/ #create user and databases createuser user createdb -Ouser -Eutf8 -T template0 user_development createdb -Ouser -Eutf8 -T template0 user_test ``` Configure php.ini --------------------- -
g3d revised this gist
May 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -162,7 +162,7 @@ pip install virtualenvwrapper Source virtualenvwrapper script ```bash source /usr/local/bin/virtualenvwrapper.sh ``` -
g3d revised this gist
May 16, 2012 . 1 changed file with 35 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -134,13 +134,44 @@ brew install git ack wget curl memcached libmemcached readline sqlite gdbm pkg-c ``` Install python ------------ ```bash brew install python --framework --universal ``` Add into your ~/.zshrc ```bash export PATH=/usr/local/share/python:$PATH ``` Change system symlinks ```bash cd /System/Library/Frameworks/Python.framework/Versions sudo rm Current ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current ``` Install pip & virtualenv ------------ ```bash easy_install pip pip install virtualenv pip install virtualenvwrapper ``` Source virtualenvwrapper script ```bash source /usr/local/share/python/virtualenvwrapper.sh ``` #Git Setup Github ------------ ```bash ssh-keygen -t rsa -C "g3dinua@gmail.com" #copy ssh key to github.com subl ~/.ssh/id_rsa.pub @@ -149,9 +180,9 @@ subl ~/.ssh/id_rsa.pub ssh -T git@github.com #set git config values git config --global user.name "Bohdan Viter" git config --global user.email "g3dinua@gmail.com" git config --global github.user g3d git config --global github.token your_token_here git config --global core.editor "subl -w" -
g3d revised this gist
May 16, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -130,7 +130,7 @@ Set hostname ``` ```bash brew install git ack wget curl memcached libmemcached readline sqlite gdbm pkg-config ``` -
g3d revised this gist
May 16, 2012 . 1 changed file with 26 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -51,6 +51,7 @@ curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | b ``` Install rubies ------------- ```bash rvm get head rvm install 1.9.3 @@ -845,5 +846,30 @@ Install nginx ```bash brew install nginx ``` Configure your ```/usr/local/etc/nginx/nginx.conf``` (similar to): ```bash server { listen 80; server_name localhost; root /path/to/phpfiles; index index.php index.html index.htm; location / { # http://www.ruby-forum.com/topic/187939 # error_page 405 = $uri; } location ~ .php { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /path/to/phpfiles$fastcgi_script_name; } } ``` Start nginx: ```bash /usr/local/sbin/nginx -c /usr/local/etc/nginx/nginx.conf ```  -
g3d revised this gist
May 16, 2012 . 1 changed file with 10 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -44,9 +44,17 @@ source $ZSH/oh-my-zsh.sh export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin ``` Install rvm ------------- ```bash curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable ``` Install rubies ```bash rvm get head rvm install 1.9.3 ``` # OS X Preferences -
g3d revised this gist
May 16, 2012 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -832,4 +832,10 @@ sudo apachectl graceful ``` Install nginx -------------- ```bash brew install nginx ```  -
g3d revised this gist
May 16, 2012 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,8 +11,6 @@ Apps * [iTerm](http://iterm2.com) * [FileZilla](http://filezilla-project.org/download.php) * [Sublime Text](http://www.sublimetext.com/dev) * [LiveReload](http://livereload.com) * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions)
NewerOlder