Skip to content

Instantly share code, notes, and snippets.

View brocard's full-sized avatar
🏠
Working from home...

Yusniel Brocard brocard

🏠
Working from home...
View GitHub Profile
@brocard
brocard / Laravel PHP7 LEMP AWS.md
Last active March 7, 2018 17:39 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
@brocard
brocard / custom.js
Created September 11, 2013 22:33
Modal Popup
/* Custom Modal Popup */
function show_popup(){
$('[data-toggle="modal"]').click(function(e) {
e.preventDefault();
var data_target=$(this).attr('data-target');
if (data_target=="#") {
data_target="#modal"+parseInt(Math.random()*1000);
}
var url = $(this).attr('href');
@brocard
brocard / example.js
Created September 11, 2013 22:28
Welcome to your first Gist! Gists are simple code reminders. Whenever you come across a piece of code you think might be useful later on, save it as a Gist. With GistBox, you can also tag the Gist with a label. This is especially useful for keeping them organized by language, project or purpose. For more info about GistBox, visit: http://www.gi…
// log an object to the browser console
console.log({ text: "foobar" });