Skip to content

Instantly share code, notes, and snippets.

View evert0n's full-sized avatar

Everton Yoshitani evert0n

View GitHub Profile
@evert0n
evert0n / ubuntu-hardening.md
Created June 25, 2019 22:56 — forked from lokhman/ubuntu-hardening.md
List of things for hardening Ubuntu
@evert0n
evert0n / react-app-s3-sync.sh
Created June 11, 2019 11:47 — forked from kevindice/react-app-s3-sync.sh
A shell script for uploading a React app build to S3 + CloudFront for deployment
#!/bin/bash
S3_BUCKET_NAME=$1
CF_ID=$2
# Sync all files except for service-worker and index
echo "Uploading files to $S3_BUCKET_NAME..."
aws s3 sync build s3://$S3_BUCKET_NAME/ \
--acl public-read \
--exclude service-worker.js \
@evert0n
evert0n / CONVENTIONS.md
Created August 16, 2018 12:57 — forked from alexweber/CONVENTIONS.md
Git Commit Conventions

Git Commit Conventions

Commit Conventions

<type>(scope): message

Types

  • feat (features)
  • fix (bug fixes)
@evert0n
evert0n / HOWTO.md
Created February 16, 2018 11:47 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
#!/bin/sh
HOST=$1
CURL_BIN=$(which curl)
if [ -z "$HOST" ]; then
echo "Host is missing"
exit 1
fi
if [ -z "$CURL_BIN" ]; then
echo "Curl binary is missing"
exit 1
@evert0n
evert0n / domainhacks.js
Created February 2, 2018 17:34 — forked from alexanderGugel/domainhacks.js
Domainhacks
var fs = require('fs');
var words = fs.readFileSync('/usr/share/dict/words', {
encoding: 'utf8'
}).split('\n');
var tlds = ['co', 'com', 'io', 'de', 'it'];
var results = [];
(function(y, o, d, a) {
var i = o.createElement(d);
i.scrolling = 'off'; i.frameborder = '0';
i.src = a; o.body.appendChild(i);
})(window, document, 'iframe', '//somedomain.tld');

What is it? Please provide some details.

Estabilish a migration process for databases mainly for MySQL for now but the same good could be used for etcd and firebase.

This affects various core projects sandy, wigeon, kappa.

A few candidates to consider, I just made a quickly list some of these tools are for more advanced use cases like when you have mysql into a cluster, I'm personally lean towards a more simple one like sql-migrate or goose

Migration tools: