Skip to content

Instantly share code, notes, and snippets.

View rimenes's full-sized avatar

Rimenes Ribeiro rimenes

View GitHub Profile
@cassioeskelsen
cassioeskelsen / RegulamentarTIEhAtraso
Created October 20, 2012 20:01
Os porquês de eu ser contra a regulamentação da profissão de TI, bem como contra o CONFEI
DISCLAIMER: pessoalmente não serei atingido pela criação do conselho,
minha opinião não é em "defesa de meus interesses""
1. "TI" se faz principalmente nos países do chamado "Primeiro Mundo": Inglaterra, EUA, Japão,
China(ok, esse não é bem 1o. Mundo), Coréia do Sul, Finlândia, etc. Nesses países não existe
"Regulamentação da Profissão" que impeça profissionais de outras áreas atuar na TI.
Vamos nos mirar nesse exemplo ou na Nigéria? (que tem a atividade regulamentada).
1.1 Aliás, de forma geral, regulamentação de profissão é mais uma das exclusividades do Brasil,
junto da Jabuticaba, da Duplicata e do novo padrão de tomadas
@caike
caike / spec_helper.rb
Created October 25, 2012 15:09
missing translations
##
# Raises error if missing translation key
##
config.before(:all, type: :controller) do
@_i18n_exception_handler = I18n.exception_handler
I18n.exception_handler = lambda { |*args| raise args.first.to_s }
end
config.after(:all, type: :controller) do
I18n.exception_handler = @_i18n_exception_handler
@felipernb
felipernb / gist:4130285
Created November 22, 2012 09:48
Extracts unique uris from nginx access log
cat access.log | awk -F'"' '{print $2}'| cut -d ' ' -f2 | uniq > uris.log
@jed
jed / how-to-set-up-stress-free-ssl-on-os-x.md
Last active February 24, 2026 02:07
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@vitorbritto
vitorbritto / responsive-test.md
Last active December 20, 2015 17:39
Teste para projetos responsivos - Método para capturar telas utilizando o PhantomJS.

Teste para projetos responsivos

Problema

Testar/verificar a disposição dos elementos de uma determinada página em determinadas resoluções de tela.

Solução

Executar captura de telas de acordo com os viewports definidos em um script, com a ajuda do PhantomJS.

Necessário ter o NodeJS instalado.

# coding=UTF-8
from __future__ import division
import nltk
from collections import Counter
# This is a simple tool for adding automatic hashtags into an article title
# Created by Shlomi Babluki
# Sep, 2013
@jbenet
jbenet / simple-git-branching-model.md
Last active April 15, 2026 22:32
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@arthurgouveia
arthurgouveia / mixins.scss
Created October 29, 2013 00:50
Simple mixin to return the property with REM units along with PX fallback.
$font-size: 16;
@function strip-unit($num) {
@return $num / ($num * 0 + 1);
}
@mixin rem($property, $values...) {
$max: length($values);
$pxValues: '';
$remValues: '';
@staltz
staltz / introrx.md
Last active May 16, 2026 20:29
The introduction to Reactive Programming you've been missing
@gbuesing
gbuesing / ml-ruby.md
Last active December 10, 2025 03:21
Resources for Machine Learning in Ruby

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems