Skip to content

Instantly share code, notes, and snippets.

View rogeriopradoj's full-sized avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@ivanrosolen
ivanrosolen / gist:9122993
Created February 20, 2014 20:54
cURL commands
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
@rogeriopradoj
rogeriopradoj / Vagrantfile
Last active August 29, 2015 14:02
phpsp-test-fest-2014 #phpsp #phptestfest
# -*- 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."
# -*- 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"
@brayann
brayann / hints.md
Last active August 29, 2015 14:08
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

require "yaml"
# Load up our vagrant config files -- vagrantconfig.yaml first
_config = YAML.load(File.open(File.join(File.dirname(__FILE__),
"vagrantconfig.yaml"), File::RDONLY).read)
# Local-specific/not-git-managed config -- vagrantconfig_local.yaml
begin
_config.merge!(YAML.load(File.open(File.join(File.dirname(__FILE__),
"vagrantconfig_local.yaml"), File::RDONLY).read))
@raulfraile
raulfraile / composer_platform.txt
Created November 9, 2012 22:35
composer show --platform
$ composer show --platform
platform:
ext-apc [3.1.9] : The apc PHP extension
ext-bcmath [0] : The bcmath PHP extension
ext-bz2 [0] : The bz2 PHP extension
ext-ctype [0] : The ctype PHP extension
ext-curl [0] : The curl PHP extension
ext-date [5.3.15] : The date PHP extension
ext-dom [20031129] : The dom PHP extension
ext-ereg [0] : The ereg PHP extension
@igama
igama / Vagrantfile
Created November 14, 2012 09:01
Vagrantfile
Vagrant::Config.run do |config|
# Основа виртуалки
config.vm.box = 'ubuntu12'
config.vm.box_url = 'http://dl.dropbox.com/u/1537815/precise64.box'
# IP виртуалки
config.vm.network :hostonly, '33.33.33.33'
# Исолзвать ли экран виртуалки
@eminetto
eminetto / gist:596cc9fbc6593013590c
Last active October 12, 2015 21:39
Referências
http://blog.hype4.com/2012/05/21/android-screen-resolutions-compared-to-ios/
http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density
http://148apps.biz/app-store-metrics/
http://mashable.com/2012/06/11/wwdc-2012-app-store-stats/
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402529(v=vs.105).aspx
https://dev.windowsphone.com/en-us/develop
http://channel9.msdn.com/Events/Build/2012?sort=sequential&direction=desc&term=&t=windows-phone&t=windows-phone-apps
http://www.mozilla.org/en-US/firefoxos/
https://developer.mozilla.org/pt-BR/docs/Mozilla/Firefox_OS
http://www.gizmodo.com.br/hands-on-firefox-os-na-vivo/
@scalopus
scalopus / common-config.sh
Created February 27, 2015 09:00
php-build-common-config
#!/bin/bash
# Copy this file to ./php-build/share/php-build/after-install.d
# This file is to keep all minors version use the same configuration file.
# This will required you to install the base version.
# Ex.
# 5.4.10 use 5.4.0 as configuration
# you have to install 5.4.0 at first.
@alganet
alganet / hercules.sql
Created February 11, 2013 18:47
This herculous, monstruous SQL script imported, in a single shot, incrementally if stoped, a legacy database into a clean new one normalized. Some names were changed.
/*********************************************
*
* Importação de dados Acme-Acme
*
* Autores: Alexandre Gomes Gaigalas
* Atilio Serafim
* Criação: 01/12/2008
* Alteração: 04/12/2008
*
*********************************************/