Skip to content

Instantly share code, notes, and snippets.

View unRob's full-sized avatar
🙃

Roberto Hidalgo unRob

🙃
View GitHub Profile
@unRob
unRob / gcy-cookbook.md
Created May 29, 2020 04:17
gcy + jq + bash cookbook Raw

gcy, bash and jq Cookbook

Terraform

# ./config.yml
nodes:
  zero:
    neither: {}
  one:
@unRob
unRob / index.html
Last active March 31, 2020 21:20
Safari vs `video.source = Blob`
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>Safari VS `video.source = Blob`</title>
</head>
<body>
<button id="button">Select a video file</button>
@unRob
unRob / oaxaca-en-chinga.md
Created April 27, 2018 05:03
Oaxashinton de Juárez

Oaxaca de Juárez

Sure, I could talk a bit about this city's history and their lovely people, but let's face it. If you're going to Oaxaca there should be only three things you have to focus on:

  1. Its sublime food,
  2. the availablity of extraordinary mezcal for way less than 7usd, and
  3. how marvelously easy it becomes to take in the true beauty of this place when you've had enough of both.

arriving

@unRob
unRob / version.rb
Created November 1, 2017 02:02
♥ << ruby
#!/usr/bin/env ruby
# git tag -l => 0.0.0
# version.rb patch => 0.0.1
# version.rb minor => 0.1.0
# version.rb major => 1.0.0
increments = [:major, :minor, :patch]
increment = ARGV[0].to_sym
raise ArgumentError.new(increments.join(' ')) unless increments.include? increment
@unRob
unRob / amex-vs-uber.rb
Last active October 20, 2017 04:27
AMEX vs Uber
require 'csv'
require 'json'
if ARGV.count == 0
puts <<-USAGE
Finds uber phantom charges on amex CSV's by comparing them to your manually-scraped uber trips
\e[1mUsage\e[0m:
ruby #{$0} CSV TXT
### Keybase proof
I hereby claim:
* I am unrob on github.
* I am robertohidalgo (https://keybase.io/robertohidalgo) on keybase.
* I have a public key ASCjWSrIWpW3v55p-zKG0UZFs7p86P-gYG9heaH1CweV7go
To claim this, I am signing this object:
@unRob
unRob / README.md
Last active June 19, 2017 08:06
LetsEncrypt + nginx

Renew LetsEncrypt certificates monthly on Ubuntu 14.04

Let's install the command line client somewhere useful and setup some directories

git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
mkdir /etc/letsencrypt/configs
touch /var/log/letsencrypt.log
@unRob
unRob / codem.sh
Created September 5, 2012 17:23
Codem-transcoder init.d
#!/bin/bash
### BEGIN INIT INFO
# Provides: codem-transcode
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts codem-transcode
# Description: Starts Codem Transcode Daemon
### END INIT INFO
@unRob
unRob / install-hooks.sh
Last active September 7, 2016 05:23
pre-commit do something on patterns
#!/bin/bash
# mkdir -p bin/hooks
# curl -v -L https://gist.github.com/unRob/f74e6f0bd224d30033370854b515ddef/raw/install-hooks.sh > bin/install-hooks
# chmod +x bin/install-hooks
# curl -v -L https://gist.github.com/unRob/f74e6f0bd224d30033370854b515ddef/raw/pre-commit.sh > bin/hooks/pre-commit
# chmod +x bin/hooks
# bin/install-hooks
# echo "Remember to delete unused hooks (or to suggest a good way to do so automatically)"
# exit on error
@unRob
unRob / polygon.geojson
Last active July 5, 2016 03:33
Bushwick
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.