Skip to content

Instantly share code, notes, and snippets.

Avatar

Renato L. de F. Cunha renatolfc

View GitHub Profile
View keybase.md

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:

@renatolfc
renatolfc / show_agent.py
Created Sep 1, 2018
Code to plot a stack of four RGB frames as used in the Visual Banana navigation challenge
View show_agent.py
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:
@renatolfc
renatolfc / ale-agcd-test-trajectory.py
Created Dec 16, 2017
Test script to check whether data from the Atari Grand Challenge Dataset works with the Atari Learning Environment
View ale-agcd-test-trajectory.py
#!/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 / keybase-proof.md
Created Mar 9, 2017
Yet another keybase proof
View keybase-proof.md

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:

View keybase.md

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 / android-client.ovpn
Created Dec 28, 2014
A sample OpenVPN client configuration file in the unified format
View android-client.ovpn
client
dev tun
remote example.com
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
@renatolfc
renatolfc / ovpn-writer.sh
Created Dec 28, 2014
Script to generate an OpenVPN client configuration file in the unified format
View ovpn-writer.sh
#!/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"}