Skip to content

Instantly share code, notes, and snippets.

Rodrigo Fernandes rtfpessoa

Block or report user

Report or block rtfpessoa

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 bulma-example.html
<!DOCTYPE html>
<html lang="en" class="js">
<meta charset="utf-8" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
View CryptoAESGCM.scala
import cats.Monad
import cats.effect.IO
import tsec.cipher.symmetric.jca._
import tsec.cipher.symmetric.{AAD, _}
import tsec.common._
import scala.util.Random
rtfpessoa /
Last active Apr 15, 2017
TVI Player Downloader
#!/usr/bin/env bash
for EPISODE_NUMBER in 1 2 3 4 5; do
PLAYLISTS_BY_QUALITY_URLS=$(curl $EPISODE_URL 2>/dev/null | grep 'vod/_definst_' | sed -E 's/[ ]+videoUrl: '"'"'(.*)'"'"',/\1/')
youtube-dl -f best --audio-quality 0 -o pesadelo-na-cozinha-S01E0${EPISODE_NUMBER}.ts --prefer-ffmpeg $PLAYLISTS_BY_QUALITY_URLS &
rtfpessoa /
Last active Mar 10, 2017
Simple Docker Registry API v2 Wrapper
#!/usr/bin/env bash
# Simple Docker Registry API v2 Wrapper
get_from_dh() {
rtfpessoa /
Created Jan 21, 2017
getopts_long -- POSIX shell getopts with GNU-style long option support
#!/usr/bin/env bash
# getopts_long -- POSIX shell getopts with GNU-style long option support
# Copyright 2005-2009 Stephane Chazelas <>
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that the above copyright notice appear in all copies and that both that
rtfpessoa /
Created Sep 24, 2016 — forked from c00kiemon5ter/
a portable shell script to upgrade cask packages
usage() {
cat <<-EOF
${0##*/} [options]
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}
You can’t perform that action at this time.