Last active
December 14, 2015 20:18
Revisions
-
mCzolko revised this gist
Oct 23, 2013 . 1 changed file with 8 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 @@ -1,4 +1,3 @@ ## Install GIT ``` @@ -9,6 +8,14 @@ and ``` if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion source ~/.git-completion.bash GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWUPSTREAM="git verbose legacy" export PSORIG="$PS1" PS1=$PSORIG'$(__git_ps1 "\[\033[01;31m\]%s \[\033[00m\]")' fi ``` and (if you didn't do this earlier) -
mCzolko revised this gist
Oct 23, 2013 . 2 changed files 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 @@ -117,7 +117,6 @@ sudo chown -R mysql:mysql /opt/local/var/log/mysql5/ ## Install GIT ``` sudo port install git-core +bash_completion ``` and 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 @@ -1,5 +1,4 @@ ## Install GIT ``` -
mCzolko revised this gist
Oct 23, 2013 . 2 changed files with 21 additions 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 @@ -118,6 +118,7 @@ sudo chown -R mysql:mysql /opt/local/var/log/mysql5/ ``` brew install git bash-completion sudo port install git-core +bash_completion ``` and @@ -126,12 +127,6 @@ git config --global user.name "Your Name" git config --global user.email [email protected] ``` ## Install NPM and node.js ``` 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 @@ -0,0 +1,20 @@ ## Install GIT ``` brew install git bash-completion ``` and ``` if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi ``` and (if you didn't do this earlier) ``` git config --global user.name "Your Name" git config --global user.email [email protected] ``` -
mCzolko revised this gist
Oct 23, 2013 . 1 changed file with 7 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 @@ -117,7 +117,7 @@ sudo chown -R mysql:mysql /opt/local/var/log/mysql5/ ## Install GIT ``` brew install git bash-completion ``` and @@ -126,6 +126,12 @@ git config --global user.name "Your Name" git config --global user.email [email protected] ``` ``` if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi ``` ## Install NPM and node.js ``` -
mCzolko revised this gist
Mar 25, 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 @@ -68,6 +68,7 @@ sudo port install php54-tidy sudo port install php54-gettext sudo port install php54-zip sudo port install php54-mongo sudo port install php54-intl sudo port install php54-xdebug ``` -
mCzolko revised this gist
Mar 15, 2013 . 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 @@ -61,13 +61,13 @@ alias memcached-stop="killall memcached" alias memcached-restart="killall memcached && /opt/local/bin/memcached -m 1 -l 127.0.0.1 -p 11211 -d" ############################################################################# # Mongo ############################################################################# alias mongo-start="sudo /opt/local/bin/mongod --fork --journal --logpath /var/log/mongo.log --logappend --dbpath /data/mongo/" ############################################################################# # MySQL ############################################################################# alias mysql="/opt/local/lib/mysql5/bin/mysql" -
mCzolko revised this gist
Mar 15, 2013 . 1 changed file with 5 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 @@ -47,6 +47,11 @@ alias apache-restart="sudo /opt/local/apache2/bin/apachectl restart" alias apache-stop="sudo /opt/local/apache2/bin/apachectl stop" alias apache-graceful="sudo /opt/local/apache2/bin/apachectl graceful" ############################################################################# # Redis ############################################################################# alias redis-flushall="redis-cli flushall" ############################################################################# # memcached ############################################################################# -
mCzolko revised this gist
Mar 12, 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 @@ -91,7 +91,7 @@ sudo port install php54-mysql sudo port load mysql5-server ``` Setup password: ```mysqladmin5 -u root password ''``` Check if running ```sudo ps -ef | grep mysql``` -
mCzolko revised this gist
Mar 12, 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 @@ -87,7 +87,7 @@ For more run ```sudo port search php54-``` ``` sudo port install mysql5-server sudo -u mysql mysql_install_db5 sudo port install php54-mysql sudo port load mysql5-server ``` -
mCzolko revised this gist
Mar 12, 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 @@ -12,7 +12,7 @@ # # for colored prompt use this notation (color codes find on Google, dont be lazy): # \033['code'm'string'\033[0m export PS1="\033[0;36m\u\033[0m\033[0;37m@\h\033[0m \033[0m\033[0;32m\w\033[0m " ############################################################################# # git autocomplet and bash prompt -
mCzolko revised this gist
Mar 12, 2013 . 1 changed file with 4 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 @@ -1,4 +1,3 @@ ############################################################################# # current prompt ############################################################################# @@ -10,7 +9,10 @@ # \W – Current working directory (ie: Desktop/) # \w – Current working directory, full path (ie: /Users/Admin/Desktop) # export PS1="\u@\h\w: " # # for colored prompt use this notation (color codes find on Google, dont be lazy): # \033['code'm'string'\033[0m export PS1="\033[0;36m\u\033[0m\033[0;37m@\h\033[0m \033[0m\033[0;32m\w\033[0m "" ############################################################################# # git autocomplet and bash prompt -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 21 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 @@ -86,9 +86,29 @@ For more run ```sudo port search php54-``` ## Install MySQL Sever ``` sudo port install mysql5-server sudo -u mysql mysql_install_db5 sudo port install php5-mysql sudo port load mysql5-server ``` Setup password: ```mysqladmin -u root password 'p'``` Check if running ```sudo ps -ef | grep mysql``` Change php.ini ```subl /opt/local/etc/php54/php.ini```: ``` mysql.default_socket = /opt/local/var/run/mysql5/mysqld.sock mysqli.default_socket = /opt/local/var/run/mysql5/mysqld.sock pdo_mysql.default_socket = /opt/local/var/run/mysql5/mysqld.sock ``` ``` sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ sudo chown -R mysql:mysql /opt/local/var/run/mysql5/ sudo chown -R mysql:mysql /opt/local/var/log/mysql5/ ``` ## Mongodb ```sudo port install mongodb``` @@ -140,7 +160,7 @@ open ~/Library/Application\ Support/Tunnelblick/Configurations/ Resources: - [Install MAMP with mac ports](https://trac.macports.org/wiki/howto/MAMP) - See my ```~/.bash_profile``` -
Roman Ozana revised this gist
Mar 11, 2013 . 2 changed files with 7 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 @@ -0,0 +1,3 @@ [ { "keys": ["super+alt+l"], "command": "reindent", "args": {"single_line": false} } ] 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 @@ -78,7 +78,10 @@ For more run ```sudo port search php54-``` ```sudo cp /opt/local/etc/php54/php.ini-development /opt/local/etc/php54/php.ini``` edit ```subl /opt/local/etc/php54/php.ini``` and set: - ```pdo_mysql.default_socket=/opt/local/var/run/mysql5/mysqld.sock``` - ```date.timezone = Europe/Prague``` - ```default_charset = "UTF-8"``` - ```post_max_size = 256M``` ## Install MySQL Sever ``` -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 3 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 @@ -109,13 +109,14 @@ sudo port install nodejs curl http://npmjs.org/install.sh | sh sudo chmod -R g+w /opt/local/ ``` Or ```curl -k https://npmjs.org/install.sh | sudo sh``` if you have trable with error newline. Check ```node -v``` and ```npm -v``` ``` npm install -g bower npm install -g grunt-cli npm install -g less npm install -g coffee-script ``` ### Install composer: -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 19 additions and 19 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 @@ -90,53 +90,53 @@ sudo port load mysql5-server ```sudo port install mongodb``` ## Install GIT ``` sudo port install git-core +bash_completion ``` and ``` git config --global user.name "Your Name" git config --global user.email [email protected] ``` ## Install NPM and node.js ``` sudo port install nodejs curl http://npmjs.org/install.sh | sh sudo chmod -R g+w /opt/local/ ``` Or ```curl -k https://npmjs.org/install.sh | sudo sh``` if you have trable with error newline ### Install packages ``` npm install -g bower npm install -g grunt-cli ``` ### Install composer: ``` sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /bin/composer sudo composer self-update ``` ## Install VPN Download [https://code.google.com/p/tunnelblick/](https://code.google.com/p/tunnelblick/) and install ``` open ~/Library/Application\ Support/Tunnelblick/Configurations/ ``` Resources: - [Install MAMP with mac ports](https://trac.macports.org/wiki/howto/MAMP) - See my ```~/.bash_profile`` -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 34 additions and 34 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 @@ -26,18 +26,6 @@ sudo port load apache2 ``` Try [http://localhost/](http://localhost/) Edit: ```subl /opt/local/apache2/conf/httpd.conf``` set: @@ -52,43 +40,55 @@ Restart apache: ```sudo port unload apache2 && sudo port load apache2``` or ```a Setup some virtual hosts: ```subl /opt/local/apache2/conf/extra/httpd-vhosts.conf``` ## Install PHP 5.4 ``` sudo port install php54 php54-apache2handler sudo port select php php54 php -v ``` ### Install PHP extensions ``` sudo port install php54-APC sudo port install php54-memcached sudo port install php54-curl sudo port install php54-gd sudo port install php54-soap sudo port install php54-sockets sudo port install php54-http sudo port install php54-iconv sudo port install php54-imagick sudo port install php54-imap sudo port install php54-mbstring sudo port install php54-mcrypt sudo port install php54-mysql sudo port install php54-openssl sudo port install php54-tidy sudo port install php54-gettext sudo port install php54-zip sudo port install php54-mongo sudo port install php54-xdebug ``` For more run ```sudo port search php54-``` ### Setup php.ini ```sudo cp /opt/local/etc/php54/php.ini-development /opt/local/etc/php54/php.ini``` edit ```subl /opt/local/etc/php54/php.ini``` and set: - ```pdo_mysql.default_socket=/opt/local/var/run/mysql55/mysqld.sock``` ## Install MySQL Sever ``` sudo port install mysql5-server sudo port load mysql5-server ``` ## Mongodb ```sudo port install mongodb``` ## Install environment -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 43 additions and 12 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,36 +4,66 @@ Download and install: - [http://www.sublimetext.com/](http://www.sublimetext.com/) - [http://www.macports.org/](http://www.macports.org/) Create sublime shortcut: ``` sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /bin/subl ``` Show hidden files in Finder: ``` defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder ``` Update macports ```sudo port -v selfupdate``` ## Install Apache2 ``` sudo port install apache2 sudo port load apache2 ``` Try [http://localhost/](http://localhost/) ## Install PHP ``` sudo port install php54 php54-apache2handler sudo port select php php54 ``` ```sudo cp /opt/local/etc/php5/php.ini-development /opt/local/etc/php5/php.ini``` ``` cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php54.so ``` Edit: ```subl /opt/local/apache2/conf/httpd.conf``` set: - default htdocs dir ```/opt/local/apache2/htdocs``` to something - add ```ServerName localhost:80``` - add ```LoadModule php5_module modules/mod_php54.so``` - change ```DirectoryIndex index.html``` to ```DirectoryIndex index.html index.php``` - add ```AddType application/x-httpd-php .php``` and ```AddType application/x-httpd-php-source .phps``` - uncomment ```Include conf/extra/httpd-vhosts.conf``` and add ```NameVirtualHost *:80``` Restart apache: ```sudo port unload apache2 && sudo port load apache2``` or ```apache-restart``` if you use my .bash_profile Setup some virtual hosts: ```subl /opt/local/apache2/conf/extra/httpd-vhosts.conf``` ``` sudo port install php +apache2 +pear ``` Install MySQL Sever ``` sudo port install mysql5-server sudo port load mysql5-server ``` ## Mongodb ```sudo port install mongodb``` ## PHP @@ -44,9 +74,7 @@ sudo port install php5-mysql +mysqlnd Copy php.ini file: Setup default mysql socket: @@ -74,6 +102,9 @@ sudo port install nodejs ``` sudo curl http://npmjs.org/install.sh | sh ``` Install packages ``` ``` ### Install composer: @@ -84,9 +115,9 @@ sudo composer self-update ``` ## Setup ### Git ``` git config --global user.name "Your Name" -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 29 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 @@ -1,13 +1,27 @@ # Install mac env Download and install: - [http://www.sublimetext.com/](http://www.sublimetext.com/) - [http://www.macports.org/](http://www.macports.org/) Create sublime shortcut ``` sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /bin/subl ``` Update porsts ```sudo port -v selfupdate``` ## Install Apache2 ``` sudo port install apache2 sudo port load apache2 ``` Edit: ```subl /opt/local/apache2/conf/httpd.conf``` and change default dir ```/opt/local/apache2/htdocs``` Restart apache: ```sudo port unload apache2 && sudo port load apache2``` Setup some virtualhosts: ```subl /opt/local/apache2/conf/extra/httpd-vhosts.conf``` ``` sudo port install php +apache2 +pear @@ -69,15 +83,29 @@ sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /bin/c sudo composer self-update ``` ## Setups ## Git ``` git config --global user.name "Your Name" git config --global user.email [email protected] ``` ### VPN Download [https://code.google.com/p/tunnelblick/](https://code.google.com/p/tunnelblick/) and install ``` open ~/Library/Application\ Support/Tunnelblick/Configurations/ ``` See my ```~/.bash_profile`` Resources: - [Install MAMP with mac ports](https://trac.macports.org/wiki/howto/MAMP) -
Roman Ozana revised this gist
Mar 11, 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 @@ -65,7 +65,7 @@ sudo curl http://npmjs.org/install.sh | sh ### Install composer: ``` sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /bin/composer sudo composer self-update ``` -
Roman Ozana revised this gist
Mar 11, 2013 . 2 changed files with 121 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 @@ -0,0 +1,108 @@ ############################################################################# # current prompt ############################################################################# # \d – Current date # \t – Current time # \h – Host name # \# – Command number # \u – User name # \W – Current working directory (ie: Desktop/) # \w – Current working directory, full path (ie: /Users/Admin/Desktop) # export PS1="\u@\h\w: " export PS1="\w: " ############################################################################# # git autocomplet and bash prompt # sudo port selfupdate # sudo port install git-core +bash_completion +doc +svn ############################################################################# # Bash shell command completion if [ -f /opt/local/share/doc/git-core/contrib/completion/git-completion.bash ]; then . /opt/local/share/doc/git-core/contrib/completion/git-completion.bash fi if [ -f /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh ]; then . /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh fi # prompt GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWUPSTREAM="git verbose legacy" export PSORIG="$PS1" # pokud chcete zachovat puvodni PS1 PS1=$PSORIG'$(__git_ps1 "\[\033[01;31m\]%s \[\033[00m\]")' ############################################################################# # apache aliases ############################################################################# alias apachectl='sudo /opt/local/apache2/bin/apachectl' alias apache-start="sudo /opt/local/apache2/bin/apachectl start" alias apache-restart="sudo /opt/local/apache2/bin/apachectl restart" alias apache-stop="sudo /opt/local/apache2/bin/apachectl stop" alias apache-graceful="sudo /opt/local/apache2/bin/apachectl graceful" ############################################################################# # memcached ############################################################################# alias memcached-start="/opt/local/bin/memcached -m 1 -l 127.0.0.1 -p 11211 -d" alias memcached-stop="killall memcached" alias memcached-restart="killall memcached && /opt/local/bin/memcached -m 1 -l 127.0.0.1 -p 11211 -d" ############################################################################# # mongo ############################################################################# alias mongo-start="sudo /opt/local/bin/mongod --fork --journal --logpath /var/log/mongo.log --logappend --dbpath /data/mongo/" ############################################################################# # mongo ############################################################################# alias mysql="/opt/local/lib/mysql5/bin/mysql" ############################################################################# # perl env variables for git ############################################################################# export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 ############################################################################# # Path to macports ############################################################################# export PATH=/opt/local/bin:/opt/local/sbin:$PATH ############################################################################# # aliases ############################################################################# alias ll="ls -la" # ll alias alias drives="df -h" # list all drives ############################################################################# # ant tags autocomplete # see http://matthew.mceachen.us/blog/ant-bash-completion-on-mac-os-x-43.html # sudo port install bash-completion apache-ant ############################################################################# if [ -f /opt/local/etc/bash_completion ]; then . /opt/local/etc/bash_completion fi complete -C /opt/local/share/java/apache-ant/bin/complete-ant-cmd.pl ant ############################################################################# # bash history size ############################################################################# export HISTCONTROL=erasedups export HISTSIZE=10000 shopt -s histappend 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,23 +51,33 @@ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so ## Install environment ``` sudo port install git-core +bash_completion sudo port install nodejs ``` ### Install NPM: ``` sudo curl http://npmjs.org/install.sh | sh ``` ### Install composer: ``` sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /usr/local/bin/composer sudo composer self-update ``` ## Setups ``` git config --global user.name "Your Name" git config --global user.email [email protected] ``` See my ```~/.bash_profile`` Resources: - [Install MAMP with mac ports](https://trac.macports.org/wiki/howto/MAMP) -
Roman Ozana revised this gist
Mar 11, 2013 . 1 changed file with 42 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 @@ -2,12 +2,19 @@ sudo port -v selfupdate ``` ## Install Apache2 ``` sudo port install apache2 sudo port load apache2 ``` ``` sudo port install php +apache2 +pear ``` Install MySQL Sever ``` sudo port install mysql5-server @@ -21,11 +28,45 @@ sudo port install php +apache2 sudo port install php5-mysql +mysqlnd ``` Copy php.ini file: ``` sudo cp /opt/local/etc/php5/php.ini-development /opt/local/etc/php5/php.ini ``` Setup default mysql socket: ``` pdo_mysql.default_socket=/opt/local/var/run/mysql55/mysqld.sock ``` Activate PHP5 apache module: ``` cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so ``` ## Install environment ``` sudo port install git sudo port install nodejs ``` Install NPM: ``` sudo curl http://npmjs.org/install.sh | sh ``` Install composer: ``` sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /usr/local/bin/composer sudo composer self-update ``` Resources: -
Roman Ožana revised this gist
Mar 11, 2013 . 1 changed file with 5 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 @@ -1,4 +1,3 @@ ``` sudo port -v selfupdate ``` @@ -26,4 +25,8 @@ sudo port install php5-mysql +mysqlnd ``` sudo port install git sudo port install nodejs ``` Resources: - [Install MAMP with mac ports](https://trac.macports.org/wiki/howto/MAMP) -
Roman Ožana created this gist
Mar 11, 2013 .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 @@ -0,0 +1,29 @@ ``` sudo port -v selfupdate ``` ``` sudo port install apache2 sudo port load apache2 sudo port install php +apache2 +pear ``` Install MySQL Sever ``` sudo port install mysql5-server sudo port load mysql5-server ``` ## PHP ``` sudo port install php +apache2 sudo port install php5-mysql +mysqlnd ``` ## Instalace prostredi ``` sudo port install git sudo port install nodejs ```