Skip to content

Instantly share code, notes, and snippets.


Rogerio Prado de Jesus rogeriopradoj

View GitHub Profile
brayann /
Last active Aug 29, 2015
Buenos aires trip

Dicas úteis

  • Não confie em taxistas (cuidado com eles trocando notas por notas falsas, e não faça cambio com eles)
  • Nao troque real por peso no aeroporto, tem o real blue (paralelo) que vale mais que um real a mais por peso (troquei hoje o real por 4,70 pesos. No aeroporto está 3,50)
  • Traga grana suficiente pra nao ter que usar cartão, pois não compensa.
  • Se sobrar pesos, gaste no free shop :) pois ao pegar do paralelo valerá bem mais.
  • Prepare-se para não comer tão bem igual no Brasil hehe :(
  • Acho que é obvio, mas traga blusas
  • Busão só se paga com moedas, caso for andar

Places to go

kevinelliott /
Last active Dec 28, 2020
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.require_version ">= 1.6.3" # parallels/boot2docker recommendation.
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "mitchellh/boot2docker"
config.vm.box_version = "1.2.0"
mrkrstphr /
Last active Feb 5, 2019
Deploying Sculpin Sites to GitHub Pages

Deploying Sculpin Sites to GitHub Pages

I wanted to be able to use Sculpin to generate GitHub pages. Here's what I did...

  1. Created a super awesome Sculpin site from the Sculpin Blog Skeleton

  2. Make sure everything is under version control in my master branch (except things that shouldn't be. see the .gitignore)

  3. Updated

triskell /
Last active Aug 25, 2020
[Windows 7] CNTLM and NPM behind NTLM proxy

CNTLM and NPM behind NTLM proxy on Windows 7


  • Install CNTLM in a folder where you have full rights to run it as administrator.

  • Open cntlm.ini and fill it :

Domain      YOUR_DOMAIN
rogeriopradoj / Vagrantfile
Last active Aug 29, 2015
phpsp-test-fest-2014 #phpsp #phptestfest
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
puts "_Info_: Plugin '''vagrant-cachier''' is not installed."
View gist:9122993
curl_setopt($ch, CURLOPT_COOKIE, ...); // -b
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT'); // -X
curl_setopt($ch, CURLOPT_BINARYTRANSFER, TRUE); // --data-binary
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: image/png']); // -H
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); // -0
while true; do clear; date && phpunit; if [ ! $? ]; then sleep 10; else sleep 3;fi; done;
View gist:7697268
include __DIR__ . '/bootstrap.php';
use DoctrineNaPratica\Model\User;
use DoctrineNaPratica\Model\Course;
use DoctrineNaPratica\Model\Lesson;
use DoctrineNaPratica\Model\Subscription;
// $user = new User;
mkdir scrutinizer && cd scrutinizer
# Install tools
# - Scrutinizer and composer
curl -sS | php
# - All needed CI tools
php composer.phar require h4cc/phpqatools:~1.2
cp -p composer.phar vendor/bin/composer
You can’t perform that action at this time.