Skip to content

Instantly share code, notes, and snippets.

View kcoyner's full-sized avatar

Kevin Coyner kcoyner

View GitHub Profile
@kcoyner
kcoyner / .eslintrc
Created November 28, 2017 03:01 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@kcoyner
kcoyner / .eslintrc.js
Created April 21, 2018 15:39 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@kcoyner
kcoyner / aws_ec2_nginx_certbot_autorenew.sh
Created January 16, 2019 17:38 — forked from svenvarkel/aws_ec2_nginx_certbot_autorenew.sh
This script renews the LetsEncrypt certificates in a firewalled EC2 machine inside AWS VPC
#!/usr/bin/env bash
#
# This script would help to automate renewal of LetsEncrypt TLS certificates in a Linux machine
# running nginx web server on AWS EC2.
# What it does:
# 1. it stops nginx
# 2. it opens incoming firewall ports 80 and 443 for certbot host verification
# 3. it runs certbot to renew certificates. Certbot launches a standalone HTTP server on port 80 or 443
# 4. it closes incoming firewall ports 80 and 443
# 5. it starts nginx