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
| # Let's Encrypt SSL Setup | |
| # Following the awesome tutorial from digitalocean's community: | |
| # https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04 | |
| ##### | |
| sudo apt-get -y install git bc | |
| sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt | |
| sudo apt-get install nginx | |
| sudo nano /etc/nginx/sites-available/default | |
| # Add to server block: | |
| # location ~ /.well-known { |
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
| // View the walkthrough at https://medium.com/@sbeleidy/a-weekend-with-gun-a61fdcb8cc5d | |
| localStorage.clear(); | |
| var gun = Gun(); | |
| var markInfo = { | |
| name: "Mark", | |
| username: "@amark" | |
| }; |
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
| // Complex object with arrays inside of it or its children | |
| o = { | |
| a: "a", | |
| b: { | |
| c: "c", | |
| d: "d" | |
| }, | |
| e: [1,2,3], | |
| f: { | |
| g: ["a","b","c", { |
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
| # For when installing laravel in an existing empty repo | |
| # Clone and cd into repo then run the following | |
| laravel new d | |
| cd d | |
| mv {.,}* ../ | |
| cd .. | |
| rm -r d |
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
| var gulp = require('gulp'), | |
| uglify = require('gulp-uglify'), | |
| sourcemaps = require('gulp-sourcemaps'), | |
| sass = require('gulp-sass'), | |
| imagemin = require('gulp-imagemin'), | |
| plumber = require('gulp-plumber'), | |
| browserSync = require('browser-sync'), | |
| reload = browserSync.reload(); | |
NewerOlder