Skip to content

Instantly share code, notes, and snippets.

View joaumg's full-sized avatar

John Gabriel Colombo joaumg

View GitHub Profile
#!/usr/bin/env bash
set -eu
set -o pipefail
# Usage:
# $ crontab -e
# Add the following lines (will run at reboot and at midnight every day):
# @reboot curl -L https://gist.github.com/joaumg/0a66b6329cc5bdd9e02c432e4fe30915/raw | bash
# 0 0 * * * curl -L https://gist.github.com/joaumg/0a66b6329cc5bdd9e02c432e4fe30915/raw | bash
@joaumg
joaumg / snmp_ssh_ro
Last active September 19, 2019 12:01
SSH Key for Git (Read Only)
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAnTYxGpqnoJqgGuXKtZFO0jZAr1KWm2H9u0TU89tASsQzXyso
gL55l2zI5VuCf89NA5O5PBcCYtVmB/1ZyxUjfGukxTxLhIUeruoieXSZVFeZJLj3
Zgqu48TDh4QZ6uOS060GUtjq5tn3sbDpJe8UTv+NAIAXtN86CwJClICCyzlU2aeU
J+qK2luWC3+1/wy+XT9yLVCndPNRw5EgZvn8IcIwZChX6QfPvpVJTHmWgOybG8cX
Rv1pCTO5EcaD62tpdy3XMjm7qbeGfaC0uLNSOsoL1AUJjWbyvyd2IS0Q15zA+pNq
qNcD6ylR3lYZRF6/hC+cE9+1nijgHeZRSh8OmwIDAQABAoIBAQCD08xrPaIwl1iI
FYbcp+NLfHjTS1LFKu9kGDzl20VXLJzTQdJt2ssFAhCX2xtb503yIO5kB/tVOxKa
woSIOcqO64i4Z23/yszG6chMxkxIoEfntj6mT3EFx5oaSdid0YTugRlbYU/gkogU
dX+b8pW6BKqM79xxK/p0/skr03NZywHr8U/OHRrcT90VzKqfmmwd4UadlVXNQJiw
@joaumg
joaumg / whois-dict-based.rb
Created August 14, 2017 16:00
Use the american dictionary to search for available domains.
#!/usr/bin/ruby
require 'whois'
require 'whois-parser'
require 'logger'
#
class WhoisDiscovery
def initialize
$stdout.sync = true

Keybase proof

I hereby claim:

  • I am joaumg on github.
  • I am joaumg (https://keybase.io/joaumg) on keybase.
  • I have a public key whose fingerprint is FC40 5276 64E8 6FB6 2FBB 4E5F 623F 9470 9AC2 4A88

To claim this, I am signing this object:

@joaumg
joaumg / angular2.jade
Created October 13, 2016 13:37
A possible way of using jade with angular 2
doctype html
html(lang='en')
head
title Jade
body
#container.col('[(ngModel)]'='bar')
div('[class.active]'='isActive')
button((click)="toggleImage()")
.link
a('[routerLink]'="['/movies']") Movies
#!/bin/sh
# Usage : fix_vbox_guest_addition VERSION
# Example : fix_vbox_guest_addition 5.0.20
# License: MIT ( https://opensource.org/licenses/MIT )
fix_vbox_guest_addition() {
sudo wget \
-c http://download.virtualbox.org/virtualbox/$1/VBoxGuestAdditions_$1.iso \
-O VBoxGuestAdditions_$1.iso