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 sbt-shared-module-dependencies.scala
trait Modules {
// Database
lazy val postgresql = "org.postgresql" % "postgresql" % "9.4-1201-jdbc41"
lazy val slick = "com.typesafe.slick" %% "slick" % "2.1.0"
lazy val slickCodegen = "com.typesafe.slick" %% "slick-codegen" % "2.1.0"
lazy val playSlick = "com.typesafe.play" %% "play-slick" % "0.8.1"
@rtfpessoa
rtfpessoa / idea.vmoptions
Last active Apr 25, 2017
IntelliJIDEA 14 VM Options
View idea.vmoptions
-ea
-server
-Xms512m
-Xmx2048m
-XX:MaxPermSize=512m
-XX:MaxMetaspaceSize=512m
-XX:ReservedCodeCacheSize=256m
-XX:CMSIncrementalDutyCycleMin=0
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
@rtfpessoa
rtfpessoa / tvi-player-downloader.sh
Last active Apr 15, 2017
TVI Player Downloader
View tvi-player-downloader.sh
#!/usr/bin/env bash
for EPISODE_NUMBER in 1 2 3 4 5; do
EPISODE_URL="http://tviplayer.iol.pt/programa/pesadelo-na-cozinha/58bd77b50cf26a3bdcfca690/episodio/t1e${EPISODE_NUMBER}"
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 &
done
wait
@rtfpessoa
rtfpessoa / docker-api-v2-example.sh
Last active Mar 10, 2017
Simple Docker Registry API v2 Wrapper
View docker-api-v2-example.sh
#!/usr/bin/env bash
#
# Simple Docker Registry API v2 Wrapper
#
REPOSITORY="doplicated/client"
get_from_dh() {
URL="$1"
@rtfpessoa
rtfpessoa / prompt_rtfpessoa_setup
Last active Aug 24, 2016
rtfpessoa's agnoster theme prezto (zsh)
View prompt_rtfpessoa_setup
# vim:ft=zsh ts=2 sw=2 sts=2
#
# rtfpessoa's Theme - https://gist.github.com/rtfpessoa/9737c2d0d3b5fe5aa2e8
# Inspired by the original agnoster from https://github.com/agnoster/agnoster-zsh-theme
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
View play.scala
/**
* Single-file play framework application! Make sure everything
* works, as this is the test case that un-earthed #371
*/
load.ivy("com.typesafe.play" %% "play" % "2.5.0")
load.ivy("com.typesafe.play" %% "play-netty-server" % "2.5.0")
load.ivy("org.scalaj" %% "scalaj-http" % "2.2.1")
@
@rtfpessoa
rtfpessoa / S3Handler.scala
Last active May 25, 2016
S3Handler for Coursier
View S3Handler.scala
package coursier.cache.protocol
import java.io.InputStream
import java.net.{URL, URLConnection, URLStreamHandler}
import awscala.Credentials
import awscala.s3.{Bucket, S3, S3Object}
import com.amazonaws.services.s3.model.GetObjectRequest
/*
@rtfpessoa
rtfpessoa / css_regression_testing.md
Created May 21, 2016 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools
View css_regression_testing.md

Currently considering https://github.com/webdriverio/webdrivercss


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
rtfpessoa / docker-toolbox-init.sh
Last active Apr 28, 2016
Docker Toolbox init script for OS X
View docker-toolbox-init.sh
#!/bin/bash
#
# Docker toolbox init OS X
#
FORCE=${1-true}
USERS="/Users"
VAR="/var/folders"
View keybase.md

Keybase proof

I hereby claim:

  • I am rtfpessoa on github.
  • I am rtfpessoa (https://keybase.io/rtfpessoa) on keybase.
  • I have a public key ASA4htimtW6SmHp6UKNUcAXTZk7TKbvdYhnIBLrL6m1b0Qo

To claim this, I am signing this object:

You can’t perform that action at this time.