Skip to content

Instantly share code, notes, and snippets.

View augustohp's full-sized avatar

Augusto Pascutti augustohp

View GitHub Profile
@augustohp
augustohp / vim-para-usuarios-git.md
Last active March 20, 2024 20:09
Post: VIM para usuários Git

VIM para usuários Git

A intenção desse post é melhorar, se possível, seu workflow com o [Git][] se ele atualmente ele consiste de:

  1. Usar o [Git][] através de uma shell de sua escolha.
  2. Usar o [VIM][] como [editor padrão][2] [no Git][1].

Se você usa alguma ferramenta gráfica (tig também conta), eu não quero saber. Se você usa o [Git][] numa shell em conjunto com outro editor, procuro ansiosamente seu comentário me convencendo a trocar. :)

Preparando o VIm

@augustohp
augustohp / README.md
Last active December 31, 2015 00:49
My Manifesto

My Manifesto

  1. You did something stupid, fuck you!
var http = require('http');
var xmld = require('xml2js');
var express = require('express');
var app = express();
// app.use(express.static(__dirname + '/public'));
app.get("/", function (req, res) {
var options = {
@augustohp
augustohp / 1000n100c.jpg
Last active December 18, 2015 23:59
Plotando gráficos do Apache benchmark
1000n100c.jpg
@augustohp
augustohp / to-apple.md
Last active June 5, 2023 18:49
To: Apple

Apple,

You are a company I learned to love and hate. In that same order.

  • I love the way you try to reach excellence in everything you do
  • I hate the way you try to fuck everyone else who tries to do same

Things I (still) love

  • The MacBook (track pad) is a great piece of hardware, sadly it is not one-of-a-kind anymore. Even more sad is that all other (great) options do not try to hold you on all kind of accessories and stuff, although it still bearable for an old time customer.

Factories e Interfaces no Respect\Config

Oi de novo! Dia produtivo. Temos novas funcionalidades no Respect\Config também:

Factories e Builders

O Respect\Config gerencia as configurações de seus objetos, incluindo quem depende de quem.

@augustohp
augustohp / exception_handlers_on_respect_rest.md
Created September 17, 2012 03:01 — forked from alganet/exception_handlers_on_respect_rest.md
Excessões e Erros no Respect\Rest

Lidando com Exceptions no Respect\Rest

Bem vindo! Esse é o primeiro-git-post de uma nova funcionalidade em um componente do Respect:

Suponha que você seja louco o suficiente para arquitetar uma API de Olá Mundo que randomicamente dispare Exceptions. Com o Respect/Rest isso ficaria assim:

<?php
$router = new Respect\Rest\Router;
@augustohp
augustohp / gist:3734944
Created September 17, 2012 00:14 — forked from netojoaobatista/gist:3716209
histórico do chat do Hangout sobre PHP
esse alganet é uma figura ^^ kkkk
Ruan_Aragao: Jamaicaaa kkkk
DavidRamires: Manual fantastico!
danjesus: netojoaobatista, sem d?vida ? o melhor manual
augustohp: +1
Ruan_Aragao: Demais!
danjesus: e os coment?rios s?o foda
poultwo: total
Denise: Manual PHP, Like, +1
Ruan_Aragao: Ele é muito mais vivo que eu :-S
@augustohp
augustohp / install-bananajour-ubuntu-12.04.sh
Created August 31, 2012 17:21
[how-to] Install Bananajour in Ubuntu 12.04
#!/bin/bash
#
# Bananajour: https://github.com/toolmantim/bananajour
sudo apt-get install libavahi-compat-libdnssd-dev libdaemons-ruby1.8 libeventmachine-ruby1.8 libopenssl-ruby1.8 librack-ruby1.8 thin1.8;
sudo gem install dnssd bananajour;
@augustohp
augustohp / runner.php
Created August 25, 2012 03:48
Storing tests in DI container [Work in Progress]
<?php
use Respect\Config\Container;
$config = new Container('config/tests.ini');
$tests = $config->tests; //Respect\Test\Suite
print $tests->description; // INI property
foreach ($tests->find() as $result) { //Respect\Test\Unit
print $result; //Respect\Test\Result