Skip to content

Instantly share code, notes, and snippets.


Rodrigo Fernandes rtfpessoa

View GitHub Profile
rtfpessoa /
Last active Oct 25, 2019
OpenVPN Client Key Generator
# OpenVPN Client Key Generation Script
# Author: rtfpessoa
# Date: 03-09-2016
# Based on the guide:
# *
rtfpessoa /
Created Aug 26, 2016
NVM lazy loading script
# NVM lazy loading script
# NVM takes on average half of a second to load, which is more than whole prezto takes to load.
# This can be noticed when you open a new shell.
# To avoid this, we are creating placeholder function
# for nvm, node, and all the node packages previously installed in the system
# to only load nvm when it is needed.
View play.scala
* Single-file play framework application! Make sure everything
* works, as this is the test case that un-earthed #371
load.ivy("" %% "play" % "2.5.0")
load.ivy("" %% "play-netty-server" % "2.5.0")
load.ivy("org.scalaj" %% "scalaj-http" % "2.2.1")
rtfpessoa / S3Handler.scala
Last active May 25, 2016
S3Handler for Coursier
View S3Handler.scala
package coursier.cache.protocol
import{URL, URLConnection, URLStreamHandler}
import awscala.Credentials
import awscala.s3.{Bucket, S3, S3Object}
rtfpessoa /
Created May 21, 2016 — forked from cvrebert/
Survey of screenshot-based CSS testing tools

Currently considering

Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
rtfpessoa / .config
Last active Aug 11, 2019 — forked from sit/gitproxy-socat
Wrappers around socat and netcat to use git behind a proxy
View .config
# Use netcat to proxy git ssh through a proxy.
# Useful if you are trying to clone ssh:// from inside a company.
# Save this file as `~/.ssh/config`
# See for Emil Sit's original HTTP proxy script.
# See for updated SOCKS version.
ProxyCommand nc -x %h %p

Keybase proof

I hereby claim:

  • I am rtfpessoa on github.
  • I am rtfpessoa ( on keybase.
  • I have a public key ASA4htimtW6SmHp6UKNUcAXTZk7TKbvdYhnIBLrL6m1b0Qo

To claim this, I am signing this object:

rtfpessoa / AppDelegate.m
Last active Mar 19, 2016
React native automatic server ip generation
View AppDelegate.m
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
#import "AppDelegate.h"
rtfpessoa /
Created Mar 19, 2016
Handle CTRL+C in Python
#!/usr/bin/env python
import signal
import sys
def signal_handler(signal, frame):
signal.signal(signal.SIGINT, signal_handler)
rtfpessoa / private.xml
Last active Mar 19, 2016
Karabiner Keybins
View private.xml
<?xml version="1.0"?>
<name>Media Keys Always</name>
<!-- Volume Up -->
KeyCode::PAGEUP, ModifierFlag::FN, ConsumerKeyCode::VOLUME_UP