Skip to content

Instantly share code, notes, and snippets.

>>>>>>>>> ⚠️ 💥 ☠️

Sergio Rubio rubiojr

>>>>>>>>> ⚠️ 💥 ☠️
Block or report user

Report or block rubiojr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View encrypt.diff
diff --git a/cfg/config.go b/cfg/config.go
index e4fc20d..c278b9b 100644
--- a/cfg/config.go
+++ b/cfg/config.go
@@ -1,11 +1,14 @@
package cfg
import (
+ "bytes"

Keybase proof

I hereby claim:

  • I am rubiojr on github.
  • I am rubiojr ( on keybase.
  • I have a public key ASATFcCv4GiT5Lh_vwL85enlQm_V4oY0oBXjANWTKF-T5wo

To claim this, I am signing this object:


Keybase proof

I hereby claim:

  • I am rubiojr on github.
  • I am sergiorubio ( on keybase.
  • I have a public key ASBAMHqNzhinmUUsX-7JdZTnJy5VXmEt-B4TGc55FymXOwo

To claim this, I am signing this object:

View proxy.rb
#!/usr/bin/env ruby
# A quick and dirty implementation of an HTTP proxy server in Ruby
# because I did not want to install anything.
# Copyright (C) 2009-2014 Torsten Becker <>
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
rubiojr / gnome-keyring-query.c
Last active Aug 29, 2015
View gnome-keyring-query.c
// gcc gnome-keyring-query.c `pkg-config --cflags --libs gnome-keyring-1 glib-2.0` -o gnome-keyring-query
// also apt-get install libsecret-tools && secret-tool
#include <stdlib.h>
#include <stdio.h>
#include <glib.h>
#include "gnome-keyring.h"
rubiojr / gnome_keyring.rb
Last active Aug 29, 2015
Read-only access to the GNOME keyring
View gnome_keyring.rb
#!/usr/bin/env ruby
require 'gir_ffi-gnome_keyring'
class Keyring
# Return all the keyring items
# returns: An Array of Hashes
def self.items
View chef-hog.rb
#!/usr/bin/env ruby
require 'time'
require 'pp'
RED = "\e[31m"
GREEN = "\e[32m"
YELLOW = "\e[33m"
CLEAR = "\e[0m"
BOLD = "\e[1m"
rubiojr /
Last active Dec 23, 2015
One Tip a Day

VMware tools can't find Linux headers path in Saucy (13.10)

tags: vmware ubuntu saucy

apt-get install linux-headers
ln -s /usr/src/linux-headers-`uname -r`/include/generated/uapi/linux/version.h /usr/src/linux-headers-`uname -r`/include/linux/version.h

Then re-run the VMware tools installer

rubiojr /
Last active Dec 20, 2015
#ruby #python #raspberrypi #devops
# Needs wget and wkpdf
# Python Weekly News
mkdir pwn
rubiojr / s3put
Created May 31, 2013 — forked from mattbillenstein/s3put
s3put #s3 #python
View s3put
#!/usr/bin/env python
import gevent.monkey
import boto
import config
import gevent
import gevent.pool
import os
You can’t perform that action at this time.