This file contains 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
# Download Files from remote to local | |
scp -r user@host:/path/to/remote/folder /path/to/local/folder | |
# MYSQL | |
#log to mysql cli | |
mysql -u {username}-p | |
#List all databases | |
SHOW DATABASES; |
This file contains 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
#make a folder for your app | |
mkdir /var/www | |
mkdir /var/www/laravel | |
#nginx config for laravel app | |
server { | |
listen 80 default_server; | |
root /var/www/laravel/public/; | |
index index.php index.html index.htm; |
This file contains 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
#create a public key base on the link bellow | |
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 | |
#the local public key has to be added on bitbucket.com and the remote server | |
https://help.github.com/articles/generating-ssh-keys/ | |
#if you added a pass phrase to the key you need to add your public key to the remote server | |
http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/#toc_3 | |
#set up the public ssh to your account |
This file contains 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
#COUTION required plug in if not installed | |
1. sudo apt-get install php5-xsl | |
#install the appropriate required libs for composer global | |
1. composer global require "phing/phing" | |
2. composer global require "phpunit/phpunit" | |
3. composer global require "pdepend/pdepend" | |
4. composer global require "phpmd/phpmd" | |
5. composer global require "phploc/phploc" | |
6. composer global require "squizlabs/php_codesniffer" |
This file contains 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
#updating local package index | |
sudo apt-get update | |
#install nginx server | |
sudo apt-get install nginx | |
#install mysql server | |
sudo apt-get install mysql-server | |
#run a simple security script that will prompt you to modify some insecure defaults |
This file contains 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
#Remove Apache | |
sudo apt-get remove apache2 | |
#Remove Nginx | |
sudo apt-get purge nginx nginx-common | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
# Remove Mysql | |
sudo apt-get remove --purge mysql-server mysql-client mysql-common |
This file contains 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
### Config ### | |
git config --global core.autocrlf input | |
### Create remote branch ### | |
git push origin <branchName> | |
### Delete remote branch ### | |
git push origin --delete <branchName> | |
###Start developing new feature### |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="{Project Name}" default="dev" basedir="."> | |
<property name="basedir" value="${project.basedir}" /> | |
<property name="vendorBinDir" value="${basedir}/vendor/bin" /> | |
<property name="source" value="${basedir}/app" /> | |
<property name="exclude" value="${source}/cache,${source}/config,${source}/language,${source}/third_party,${source}/views,${source}/libraries" /> | |
<target name="dev" depends="clean,lint,pdepend,phpmd,phpcpd,phploc,phpcs,phpunit,phpcb" /> | |
<target name="full" depends="clean,lint,phpdoc,pdepend,phpmd,phpcpd,phploc,phpcs,phpunit,phpcb" /> |
This file contains 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
sudo apt-get update | |
sudo apt-get upgraed | |
wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | |
sudo apt-key add erlang_solutions.asc | |
sudo apt-get update | |
sudo apt-get install erlang | |
sudo apt-get install erlang-nox | |
This file contains 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 Postman | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
rm postman.tar.gz | |
sudo rm /usr/bin/postman | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman |
OlderNewer