Skip to content

Instantly share code, notes, and snippets.

View feniix's full-sized avatar
🇦🇷

Sebastian B Otaegui feniix

🇦🇷
View GitHub Profile
@feniix
feniix / -
Created January 27, 2015 02:44
{
"AutoScalingGroupARN": "arn:aws:autoscaling:us-east-1:159116025302:autoScalingGroup:af673450-8a4d-4273-9038-d10765e8cc8d:autoScalingGroupName/cas-prod-12-18-2014",
"HealthCheckGracePeriod": 300,
"SuspendedProcesses": [],
"DesiredCapacity": 1,
"Tags": [
{
"ResourceType": "auto-scaling-group",
"ResourceId": "cas-prod-12-18-2014",
"PropagateAtLaunch": true,
@feniix
feniix / -
Created January 27, 2015 02:41
{
"AutoScalingGroups": [
{
"AutoScalingGroupARN": "arn:aws:autoscaling:us-east-1:159116025302:autoScalingGroup:af673450-8a4d-4273-9038-d10765e8cc8d:autoScalingGroupName/cas-prod-12-18-2014",
"HealthCheckGracePeriod": 300,
"SuspendedProcesses": [],
"DesiredCapacity": 1,
"Tags": [
{
"ResourceType": "auto-scaling-group",
#!/usr/bin/env bash -e
AWSCLI=$(command -v aws)
AWS_CMD="${AWSCLI} --profile confsol"
BASE_NAME="grails"
BUILD_SUFFIX="${GIT_COMMIT}-${BUILD_NUMBER}"
DATESTAMP=$(date +%m%d%Y)
RESOURCE_NAME="${BASE_NAME}-${ENV}-${DATESTAMP}-${BUILD_SUFFIX}"
get_ami() {
@feniix
feniix / -
Created January 22, 2015 00:32
{
"LaunchConfigurations": [
{
"UserData": "I2Nsb3VkLWNvbmZpZwojCiMjIHJ1biBjb21tYW5kcwojIyBkZWZhdWx0OiBub25lCiMjIHJ1bmNtZCBjb250YWlucyBhIGxpc3Qgb2YgZWl0aGVyIGxpc3RzIG9yIGEgc3RyaW5nCiMjIGVhY2ggaXRlbSB3aWxsIGJlIGV4ZWN1dGVkIGluIG9yZGVyIGF0IHJjLmxvY2FsIGxpa2UgbGV2ZWwgd2l0aAojIyBvdXRwdXQgdG8gdGhlIGNvbnNvbGUKIyMgLSBpZiB0aGUgaXRlbSBpcyBhIGxpc3QsIHRoZSBpdGVtcyB3aWxsIGJlIHByb3Blcmx5IGV4ZWN1dGVkIGFzIGlmCiMjICAgcGFzc2VkIHRvIGV4ZWN2ZSgzKSAod2l0aCB0aGUgZmlyc3QgYXJnIGFzIHRoZSBjb21tYW5kKS4KIyMgLSBpZiB0aGUgaXRlbSBpcyBhIHN0cmluZywgaXQgd2lsbCBiZSBzaW1wbHkgd3JpdHRlbiB0byB0aGUgZmlsZSBhbmQKIyMgICB3aWxsIGJlIGludGVycHJldGVkIGJ5ICdzaCcKIyMKIyMgTm90ZSwgdGhhdCB0aGUgbGlzdCBoYXMgdG8gYmUgcHJvcGVyIHlhbWwsIHNvIHlvdSBoYXZlIHRvIGVzY2FwZQojIyBhbnkgY2hhcmFjdGVycyB5YW1sIHdvdWxkIGVhdCAoJzonIGNhbiBiZSBwcm9ibGVtYXRpYykKcnVuY21kOgogLSBzZWQgJzIgaSBKQVZBX09QVElPTlM9Ii1YbXM2ZyAtWG14NmcgLVhYOlBlcm1TaXplPTI1Nm0gLVhYOk1heFBlcm1TaXplPTUxMm0iJyAtaSAvZXRjL2luaXQuZC9qZXR0eQogLSBzM2NtZCAtYyAvZXRjL3MzY2ZnIGdldCAiczM6Ly9ucmctY29uZi9ucmctY
require 'rake/clean'
require 'rake/task'
desc 'run install bower'
task :npm_install_bower do
system('npm install bower')
end
desc 'run bower install'
task :bower_install do
==> master: Running provisioner: shell...
master: Running: /var/folders/w8/_qfs4h512y71h6tl2spqmd3m0000gn/T/vagrant-shell20150106-67083-8rg792.sh
==> master: Copied Puppetfile
==> master: Puppetfile: OK
==> master: Skipping librarian-puppet (Puppetfile unchanged)
==> master: Running provisioner: puppet...
==> master: Running Puppet with default.pp...
==> master: Info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
==> master: Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/windows_common_appdata.rb
==> master: Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/last_run.rb
==> master: Running provisioner: shell...
master: Running: /var/folders/w8/_qfs4h512y71h6tl2spqmd3m0000gn/T/vagrant-shell20150105-62375-1ojdp7d.sh
==> master: Copied Puppetfile
==> master: Puppetfile: OK
==> master: Skipping librarian-puppet (Puppetfile unchanged)
==> master: Running provisioner: puppet...
==> master: Running Puppet with default.pp...
==> master: Info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
==> master: Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/windows_common_appdata.rb
==> master: Info: Loading facts in /etc/puppet/modules/puppi/lib/facter/last_run.rb
#!/usr/bin/env bash
BAKDIR=/tmp/backup
prereqs () {
cat << EOF
${0} assumes you have the following components:
* tar
* s3cmd configured (run s3cmd --configure)
#!/usr/bin/env bash
TAR=$(command -v tar)
S3CMD=$(command -v s3cmd)
MONGO=$(command -v mongo)
MDUMP=$(command -v mongodump)
MRESTORE=$(command -v mongorestore)
if [[ -z ${TAR} ]] || [[ -z ${S3CMD} ]] || [[ -z ${MONGO} ]] || [[ -z ${MDUMP} ]] || [[ -z ${MRESTORE} ]]; then
echo "One of the following tools is missing: tar, s3cmd, mongo, mongodump, mongorestore"
@feniix
feniix / gist:2654f2b5f043ad895315
Last active August 29, 2015 14:08
Son, we need to have a chat about Internet Safety
"Son, we need to have a chat about Internet Safety.” I slowly crumpled down onto the floor next to him. His laptop
was open and he was playing Minecraft on a public server. His eyes were locked into the action. Comments scrolled
down the side of the screen in a chat box. “Son, can you stop your game for a minute?”
He exited the world, closed the laptop, and looked up at me. "Dad, is this going to be another cheesy scary story?"
"Whhaaaat?" I faked hurt feelings for a second, and then grinned at him, "I thought you liked my cautionary tales?" He grew up listening to my stories about children who encountered witches, ghosts, werewolves, and trolls. Like many generations of parents,
I used scary stories to reinforce morals and teach lessons about safety. Single dads like me should use all the parenting tools
at their disposal.