Skip to content

Instantly share code, notes, and snippets.

View feniix's full-sized avatar
🇦🇷

Sebastian B Otaegui feniix

🇦🇷
View GitHub Profile
#!/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.
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:2.0">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
@feniix
feniix / -
Created October 29, 2014 23:12
docker-enter () {
vagrant ssh abed1ef -- '[ -f /var/lib/boot2docker/nsenter ] || docker run --rm -v /var/lib/boot2docker/:/target jpetazzo/nsenter'
vagrant ssh abed1ef -- -t sudo /var/lib/boot2docker/docker-enter "$@"
}
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "g" do |g|
g.vm.provider "docker" do |d|
d.image = "dockerfile/redis"
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash
from contextlib import closing
DATABASE = '/tmp/defects.db'
DEBUG = True
SECRET_KEY = 'development key'
USERNAME = 'admin'
#! /bin/bash
# This if for the mac hipchat client
# To setup, download this file to any folder and save as `hip.sh`
# change the permissions of the file so it is executable using terminal
# You can do this by running `chmod u+x ./hip.sh`
# Now you can run `./hip.sh`
echo 'Hipchat hooray...ho... - Press CTRL+C to stop'
while :
do
@feniix
feniix / keybase.md
Created September 22, 2014 20:06
keybase.md

Keybase proof

I hereby claim:

  • I am feniix on github.
  • I am feniix (https://keybase.io/feniix) on keybase.
  • I have a public key whose fingerprint is 1088 6DFB 2A5F 4C05 DC18 95E3 830E 8A1A 4367 93B2

To claim this, I am signing this object:

@feniix
feniix / -
Created September 5, 2014 16:36
Notice: Preparing to install into /Users/otaeguis/.puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/Users/otaeguis/.puppet/modules
└── gini-archive (v0.2.0)
@feniix
feniix / -
Created September 5, 2014 16:34
Notice: Preparing to install into /Users/otaeguis/.puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Error: No such file or directory @ realpath_rec - /Users/otaeguis/.puppet/var/puppet-module/cache/tmp-unpacker20140905-9303-1xs5ged/gini-archive-0.2.0/files
Error: Try 'puppet help module install' for usage