Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@brayann
brayann / hints.md
Last active Aug 29, 2015
Buenos aires trip
View hints.md

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
kevinelliott / osx-10.10-setup.md
Last active Dec 28, 2020
Mac OS X 10.10 Yosemite Setup
View osx-10.10-setup.md

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!
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.6.3" # parallels/boot2docker recommendation.
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "mitchellh/boot2docker"
config.vm.box_version = "1.2.0"
@mrkrstphr
mrkrstphr / README.md
Last active Feb 5, 2019
Deploying Sculpin Sites to GitHub Pages
View README.md

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 publish.sh:

    #!/bin/bash
@triskell
triskell / cntlm_npm.md
Last active Aug 25, 2020
[Windows 7] CNTLM and NPM behind NTLM proxy
View cntlm_npm.md

CNTLM and NPM behind NTLM proxy on Windows 7

CNTLM

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

  • Open cntlm.ini and fill it :

Username    YOUR_USERNAME
Domain      YOUR_DOMAIN
@rogeriopradoj
rogeriopradoj / Vagrantfile
Last active Aug 29, 2015
phpsp-test-fest-2014 #phpsp #phptestfest
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
else
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
View phpunit-watch-10x3.sh
while true; do clear; date && phpunit; if [ ! $? ]; then sleep 10; else sleep 3;fi; done;
View gist:7697268
<?php
include __DIR__ . '/bootstrap.php';
use DoctrineNaPratica\Model\User;
use DoctrineNaPratica\Model\Course;
use DoctrineNaPratica\Model\Lesson;
use DoctrineNaPratica\Model\Subscription;
// $user = new User;
View scrutinizer.sh
mkdir scrutinizer && cd scrutinizer
# Install tools
# - Scrutinizer and composer
wget http://scrutinizer-ci.com/scrutinizer.phar
curl -sS https://getcomposer.org/installer | 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.