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
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(); | |
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
# 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 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 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 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 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
##### | |
# TURN Server Setup | |
# Requires SSL setup - see https://gist.github.com/sbeleidy/3a23999d8e9e5da9adc6159c3742b42b | |
##### | |
sudo apt-get update | |
sudo apt-get install resiprocate-turn-server | |
nano /etc/reTurn/reTurnServer.config | |
# Change TurnAddress to your public IP address |
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
##### | |
# Signalling Server Setup ex: EasyRTC | |
# See https://easyrtc.com/docs/guides/easyrtc_server_install.php | |
# This assumes you followed https://gist.github.com/sbeleidy/f4cd7e96dc0910dbc27cc6845d8b4d22 and | |
# https://gist.github.com/sbeleidy/3a23999d8e9e5da9adc6159c3742b42b for SSL and reTURN setup | |
##### | |
# Install node | |
sudo apt-get install nodejs | |
sudo apt-get install npm |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Foundation Project</title> | |
<meta charset="UTF-8"> | |
<link href="dist/css/style.css" rel="stylesheet"> | |
</head> | |
<body> | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>FK Readability Score</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<textarea id="theText" rows="5" cols="100"></textarea> | |
</body> | |
<script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer