Skip to content

Instantly share code, notes, and snippets.

View amb101's full-sized avatar
🎯
Focusing

RBust amb101

🎯
Focusing
View GitHub Profile
@amb101
amb101 / reset.css
Created December 23, 2018 04:21
Reset CSS
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
@amb101
amb101 / webpack.config.js
Created July 18, 2018 03:24
Barebones Webpack Config
const debug = process.env.NODE_ENV !== "production";
const webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : false, // true || false val required
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@amb101
amb101 / gist0.js
Created July 18, 2018 03:11
Nginx / Node Frontend / Load Balancer / Static Assets Caching
upstream project {
server 22.22.22.2:3000;
server 22.22.22.3:3000;
server 22.22.22.5:3000;
}
server {
listen 80;
location / {
@amb101
amb101 / bootstrap.sh
Last active July 14, 2018 01:02
LAMP Stack
## Update Packages
apt-get update
## Upgrade Packages
apt-get upgrade
## Git
apt-get install -y git
## Apache
apt-get install -y apache2

Keybase proof

I hereby claim:

  • I am amb101 on github.
  • I am amb101 (https://keybase.io/amb101) on keybase.
  • I have a public key ASDotRQy4kQVW-Uh61yY6yfqiwVOkeeXZBnBiC3sJ_UYIwo

To claim this, I am signing this object:

@amb101
amb101 / gist:76c8339be0889e82258ce0e4bad5874e
Created June 23, 2018 00:46
Stop tracking node_modules in git repo
#add 'node_modules' to .gitignore file
echo "node_modules/" >> .gitignore
git rm -r --cached node_modules
git commit -m 'Remove node_modules from repo'
git push origin master