I hereby claim:
- I am awaddell on github.
- I am awaddell (https://keybase.io/awaddell) on keybase.
- I have a public key ASAYmyk2a4ingvP83My5x6HEr9mV_YwojKUFD6inonlwaQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
From a Terminal | |
open ~/Applications | |
(now delete selected apps) | |
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock | |
/** | |
* Module dependencies | |
*/ | |
var express = require('express') | |
, http = require('http'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
var request = require('request'); |
#!/bin/bash | |
: "${mysqlhost:?Need to set mysqlhost}" | |
# example JMESPath input to --query | |
# 'DBSnapshots[?starts_with(DBSnapshotIdentifier,`rds:mysql-master-2016-02-14`)==`true`]' | |
mydate=`date -u +%Y-%m-%d` | |
region=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/\(.*\)[a-z]/\1/'` |
# from https://coreos.com/os/docs/latest/cloud-config.html | |
#cloud-config | |
write_files: | |
- path: "/etc/resolv.conf" | |
permissions: "0644" | |
owner: "root" | |
content: | | |
nameserver 8.8.8.8 | |
- path: "/etc/motd" | |
permissions: "0644" |
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
#!/bin/bash | |
# this script does not read or change the local interface at all | |
# its for use with a host behind NAT where the NAT device can do 6rd or 6in4 but can't update the tunnel broker | |
# as tunnelbroker.net don't want us to brute force their API, we leave the API update until we're sure our IPv4 address has changed | |
# http://www.linuxjournal.com/content/validating-ip-address-bash-script | |
function valid_ip() | |
{ |