Skip to content

Instantly share code, notes, and snippets.

View albankora's full-sized avatar

Alban Kora albankora

View GitHub Profile
@albankora
albankora / capistrano-3-basic-set-up
Last active February 9, 2017 14:09
Capistrano 3 basic set up
#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
@albankora
albankora / LEMP_Laravel_config
Last active June 8, 2017 02:35
LEMP install and Laravel config
#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;
@albankora
albankora / basic-commands
Last active February 11, 2018 11:01
Basic commands...
# 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;