Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get autoclean
Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get autoclean
#!/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 \ |
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.
#!/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 |
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'); |
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:
(still a work-in-progress)