I hereby claim:
- I am alvaromuir on github.
- I am alvaromuir (https://keybase.io/alvaromuir) on keybase.
- I have a public key whose fingerprint is B755 99EB 1371 531F 4C4F 815D 8134 38A3 DCE5 8212
To claim this, I am signing this object:
class Config < Thor | |
desc "heroku", "setup heroku from .heroku_config" | |
def heroku | |
puts "running Heroku config . . ." | |
config = ".heroku_config" | |
if File.exists?(config) | |
settings = File.open(config).read | |
settings.gsub!(/\r\n?/, "\n") | |
settings.each_line do |line| |
I hereby claim:
To claim this, I am signing this object:
# base data-science vagrant linux build | |
# last update, 9.28.14 | |
# @alvaromuir | |
## Base installs ## | |
sudo yum -y update | |
sudo yum -y upgrade | |
sudo yum clean all |
#!/bin/bash | |
# Script to download videos from UC's replay system | |
# requires curl | |
# usage example ./getreplay.sh <some replay url.hmtl> <file_outputname> | |
# will add ".mp4" to file, warning will overwrite existing. | |
set -e | |
link=$1 | |
file=./$2.mp4 | |
base=${link%'.html'} |
#!/usr/bin/python | |
# This script takes a 'fields' row from a Google DFA report file | |
# and makes it db import friendly for all of ya big data needs | |
# @alvaromuir, updated: 11/2014 | |
import sys | |
if(len(sys.argv) < 2): | |
print "Error - Requires an input file" |
#!/bin/bash | |
# Script to create passwordless ssh on remote machine from current host | |
# requires ssh, naturally | |
# example usage: ssh-auth foreign.host.com id_dsa.pub myUserName | |
# @alvaromuir, 6.19.15 | |
set -e | |
USAGECMD="Usage: $0 <hostname> <public-key.pub> [opt: username]" | |
SSHHOME=~/.ssh/ | |
if [ "$3" ] |
#!/bin/bash | |
# Script to prep a downloaded dfa file for transfer and ETL to warehouse | |
# or Hadoop cluster | |
# takes a sample via subsample for python | |
# https://pypi.python.org/pypi/subsample/0.0.6 | |
# and gzips for export | |
# | |
# ex: | |
# $ ./prep_dfa_import.sh <1234_downladed_dfa.csv> <new_file.csv> <sample.csv> | |
# @alvaromuir, 04.19.2015 |
{ | |
"configurations": [ | |
{ | |
"nagios-env": { | |
"nagios_contact": "alvaromuir@gmail.com" | |
} | |
} | |
], | |
"host_groups": [ | |
{ |
// helper function | |
function parseVideoId(link) { | |
// parses youtube or vimeo links.. but not vimeo shar | |
var urlComesAfter = { | |
'\\.be/': function() { return link.split('.be/')[1].replace('/','')}, | |
'v=': function() { return link.split('v=')[1].replace('/','')}, | |
'vimeo.com/': function() { | |
if (isNaN(parseInt(link.split('/').slice(-1)[0]))) { | |
var rawLink = link.split('/'); | |
return [rawLink[3],rawLink[4]]; |
!!! 5 | |
//[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif] | |
//[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif] | |
//[if IE 8]> <html class="no-js lt-ie9"> <![endif] | |
//[if gt IE 8]><!--> <html class="no-js"> <!--<![endif] | |
html.no-js | |
head | |
meta(charset='utf-8') | |
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') | |
title |