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 characters
| Installation | |
| wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
| sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' | |
| sudo apt-get update | |
| sudo apt-get install jenkins | |
| Configuration: | |
| http://www.vogella.com/tutorials/Jenkins/article.html#jenkinsconfiguration | |
| Find wich java: |
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 characters
| #!/bin/bash -e | |
| #echo $(dirname $(readlink -f $0)) | |
| USER=$(whoami) | |
| APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {print $1}') | |
| echo $(whoami) | |
| echo $(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {print $1}') |
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 characters
| phpsh -- An interactive shell for php | |
| http://www.phpsh.org/ |
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 characters
| From: https://www.derekgourlay.com/blog/git-when-to-merge-vs-when-to-rebase/ | |
| Keeping a clean history in git comes down to knowing when to use merge vs. rebase. Great quote describing when to use each: | |
| Rebases are how changes should pass from the top of hierarchy downwards and merges are how they flow back upwards. | |
| Rule of thumb: | |
| - When pulling changes from origin/develop onto your local develop use rebase. | |
| - When finishing a feature branch merge the changes back to develop. |
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 characters
| List of plugins very coool: | |
| Xtensible RealTime Multiplatform Language allows you to: | |
| - Discard page refreshes, | |
| - Use Bidirectional communication, | |
| - Write code without advanced programming skills | |
| LINK: http://www.xrtml.org/ | |
| LINK: https://realtime.co/messaging/ | |
| Routie is a javascript hash routing library: |
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 characters
| With .htaccess just need to add these flags: | |
| php_value session.cookie_httponly 1 | |
| php_value session.cookie_secure 1 |
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 characters
| Install composer: | |
| - sudo apt-get -y install curl | |
| - curl -s http://getcomposer.org/installer | php | |
| - sudo mv composer.phar /usr/local/bin/composer | |
| ------------------------------------- | |
| Install xdebug / phpdbg (http://phpdbg.com): | |
| - pecl install xdebug |
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 characters
| List of bundles: | |
| Media: | |
| https://github.com/sonata-project/SonataMediaBundle | |
| Read and write spreadsheet files: | |
| https://github.com/box/spout | |
| Validation: | |
| ValidationBundle -> https://github.com/Respect/ValidationBundle |
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 characters
| If you want create a new branch from any of the existing branch in git, just follow the options. | |
| First change/checkout into the branch from where you want to create a new branch. | |
| For example if you have the following branches like: | |
| master | |
| dev | |
| branch1 | |
| So if you want to create a new branch called "subbranch_of_b1" under the branch named "branch1" follow the steps: |
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 characters
| The keyboard combination to display the current line number whilst you are using nano is CTRL+C. | |
| Alternatively, to display the line & column number position you could just use the -c parameter when launching nano i.e: | |
| nano -c [filename] | |
| To make this permanent, nano uses a configuration in your home folder ~/.nanorc | |
| Thus to display line numbers always when using nano... | |
| nano ~/.nanorc |