Skip to content

Instantly share code, notes, and snippets.

@RogerQuiros
RogerQuiros / deploy.sh
Created September 5, 2018 01:56 — forked from sahibalejandro/deploy.sh
Deploy script for Laravel projects.
# Shutdown the laravel app
php artisan down
# Install new composer packages
composer install --no-dev --prefer-dist
# Cache boost configuration and routes
php artisan cache:clear
php artisan config:cache
php artisan route:cache
@RogerQuiros
RogerQuiros / multiple_ssh_setting.md
Created March 17, 2018 06:44 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@RogerQuiros
RogerQuiros / introrx.md
Created September 6, 2017 17:25 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
// once the google maps is loaded, put a Raphael canvas on top of it
// be sure to apply margin:0 to the body in this case
var point = new GLatLng(46.065375, 5.448974);
var pixel = map.fromLatLngToContainerPixel(point);
var paper = Raphael(0, 0, 400, 300);
var circle = paper.circle(pixel.x, pixel.y, 10);
circle.attr("fill", "#f00");
circle.attr("stroke", "#fff");