Skip to content

Instantly share code, notes, and snippets.

View hussani's full-sized avatar

Hussani Oliveira hussani

View GitHub Profile
@veselosky
veselosky / s3gzip.py
Last active August 29, 2024 11:32
How to store and retrieve gzip-compressed objects in AWS S3
# vim: set fileencoding=utf-8 :
#
# How to store and retrieve gzip-compressed objects in AWS S3
###########################################################################
#
# Copyright 2015 Vince Veselosky and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@rogeriopradoj
rogeriopradoj / 1.md
Last active November 20, 2017 14:53
compilar manual php
@gullitmiranda
gullitmiranda / Azkfile.js
Created April 23, 2015 16:22
Azkfile.js to configure `public` folder in nginx of `php-fpm`
systems({
"my-app": {
image: {"docker": "azukiapp/php-fpm"},
provision: [
// "composer install",
],
workdir: "/azk/#{manifest.dir}",
mounts: {
'/azk/#{manifest.dir}': path("."),
'/etc/nginx/sites-enabled/nginx_public.conf': path("./nginx_public.conf")
@xshifty
xshifty / AsyncClosure.php
Last active August 29, 2015 14:11
AsyncClosure.php
<?php
// TODO: Redirect stdin/stdout streams to local unix socket
class AsyncClosure
{
private static $shutdownFunctionSet = false;
public static function create(callable $closure, $callback = null)
{
if (!self::$shutdownFunctionSet) {
@soarez
soarez / ca.md
Last active July 27, 2025 23:20
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@vibegui
vibegui / front-end-brasil.md
Last active July 15, 2017 12:20
O estado da comunidade brasileira de front end

Para onde caminha a comunidade brasileira de front end?

Hoje algo cômico e surreal aconteceu na comunidade FrontEnd Brasil. Algo chocante a ponto de desanimar o mais engajado dos participantes.

Após postar um Gist sobre moment com um código bastante didático, Berger foi rechaçado pelo moderador da comunidade, Jean Carlo Nascimento. Ao notar que o gist era escrito em CoffeeScript, o moderador comentou uma piadinha:

Prefiro usar moment a coffee.

A comunidade não gostou e reagiu, criticando o comentário infeliz e prezando o autor por compartilhar um código útil. Não satisfeito, as agressões sobre o uso de CoffeeScript continuaram.

@alganet
alganet / index.php
Created December 12, 2013 03:24
Smallest HATEOAS sample in the world [citation needed]. Work in Progress!
<?php
use Respect\Rest\Router;
$r3 = new Router();
$routes = [];
$routes['singleAuthor'] = $r3->any('/authors/*', 'MySingleAuthorClass');
$routes['singlePost'] = $r3->any('/posts/*', 'MySinglePostClass');
$routes['postsList'] = $r3->any('/posts', 'MyPostsListClass');
@sloria
sloria / bobp-python.md
Last active August 6, 2025 16:28
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@pzurek
pzurek / Twelve_Go_Best_Practices.md
Last active February 22, 2025 14:29
Twelve Go Best Practices
@rogeriopradoj
rogeriopradoj / map.geojson
Created August 13, 2013 23:29
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.