Skip to content

Instantly share code, notes, and snippets.

View renatolfc's full-sized avatar

Renato L. de F. Cunha renatolfc

View GitHub Profile
@renatolfc
renatolfc / ovpn-writer.sh
Created December 28, 2014 18:50
Script to generate an OpenVPN client configuration file in the unified format
#!/bin/sh
##
## Usage: ./ovpn-writer.sh SERVER CA_CERT CLIENT_CERT CLIENT_KEY SHARED_SECRET > client.ovpn
##
server=${1?"The server address is required"}
cacert=${2?"The path to the ca certificate file is required"}
client_cert=${3?"The path to the client certificate file is required"}
client_key=${4?"The path to the client private key file is required"}
@renatolfc
renatolfc / android-client.ovpn
Created December 28, 2014 18:59
A sample OpenVPN client configuration file in the unified format
client
dev tun
remote example.com
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]

Keybase proof

I hereby claim:

  • I am trovao on github.
  • I am renatoc (https://keybase.io/renatoc) on keybase.
  • I have a public key whose fingerprint is 8BD5 0F59 C629 ABC0 231A DC72 0528 134D BB7A 5D06

To claim this, I am signing this object:

@renatolfc
renatolfc / keybase-proof.md
Created March 9, 2017 17:31
Yet another keybase proof

Keybase proof

I hereby claim:

  • I am renatolfc on github.
  • I am renatoc (https://keybase.io/renatoc) on keybase.
  • I have a public key whose fingerprint is 8BD5 0F59 C629 ABC0 231A DC72 0528 134D BB7A 5D06

To claim this, I am signing this object:

@renatolfc
renatolfc / ale-agcd-test-trajectory.py
Created December 16, 2017 17:04
Test script to check whether data from the Atari Grand Challenge Dataset works with the Atari Learning Environment
#!/usr/bin/env python
# This assumes the ALE python libraries are in the path
# and that the dataset is in the current working directory
from __future__ import print_function
import sys
sys.path.insert(0, 'Arcade-Learning-Environment-0.5.0')
import csv
@renatolfc
renatolfc / show_agent.py
Created September 1, 2018 19:16
Code to plot a stack of four RGB frames as used in the Visual Banana navigation challenge
import matplotlib
matplotlib.use('Agg')
from matplotlib import pylab as plt
import matplotlib.gridspec as gridspec
import matplotlib.backends.backend_agg as agg
from matplotlib.ticker import FuncFormatter, MaxNLocator
# You need pygame and matplotlib: !pip install pygame matplotlib
# You need to create a pygame screen as well
# Something like this:

Keybase proof

I hereby claim:

  • I am renatolfc on github.
  • I am renatoc (https://keybase.io/renatoc) on keybase.
  • I have a public key whose fingerprint is DB2F B3B5 0463 7AEA 7103 CFBB 21B7 3512 82B0 614F

To claim this, I am signing this object: