Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Igor Elias igoreliasm

🎯
Focusing
Block or report user

Report or block igoreliasm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@igoreliasm
igoreliasm / XGH - en.txt
Created Jun 6, 2019 — forked from banaslee/XGH - en.txt
eXtreme Go-Horse Process
View XGH - en.txt
eXtreme Go Horse (XGH) Process
Source: http://gohorseprocess.wordpress.com
1. I think therefore it's not XGH.
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster.
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster.
XGH is faster than any development process you know (see Axiom 14).
@igoreliasm
igoreliasm / modelo_importacao.json
Last active Jul 6, 2018
Arquivo Modelo de Importação
View modelo_importacao.json
// ===================================== EXEMPLO MODELO DE IMPORTAÇÃO =====================================
// "cod_barras" - varchar(20) - NÃO OBRIGATÓRIO (PREFERENCIALMENTE NÃO VAZIO)
// "nome_produto" - varchar(255) - OBRIGATÓRIO
// "preco_venda" - decimal(11,2) - OBRIGATÓRIO
// "preco_custo" - decimal(11,2) - NÃO OBRIGATÓRIO
// "preco_oferta" - double(10,2) - NÃO OBRIGATÓRIO
// "estoque" - integer - OBRIGATÓRIO
// "codigo_interno" - varchar(20) - OBRIGATÓRIO E ÚNICO (ID)
// ATENÇÃO: PARA UMA CORRETA IMPORTAÇÃO DOS DADOS, OS REQUERIMENTOS DEVEM SER SEGUIDOS À RISCA!
@igoreliasm
igoreliasm / install-mongodb.md
Created Mar 4, 2017 — forked from adamgibbons/install-mongodb.md
Install MongoDB on Mac OS X 10.9
View install-mongodb.md

Install MongoDB with Homebrew

brew install mongodb
mkdir -p /data/db

Set permissions for the data directory

Ensure that user account running mongod has correct permissions for the directory:

View elasticsearch pt-br analyzer
//Cria o índice especificando quais os analyzer ele tem
//Além disso especifica que o campo "titulo" do tipo "seu_tipo" utiliza o analyzer recem criado
curl -XPUT "http://localhost:9200/my_index" -d'
{
"settings": {
"analysis": {
"analyzer": {
"analyzer_customizado": {
"tokenizer": "standard",
@igoreliasm
igoreliasm / movie-titles.rb
Created Jan 25, 2017 — forked from karmi/movie-titles.rb
Multiple analyzers and query fields in Elasticsearch for auto-completion
View movie-titles.rb
require 'tire'
# Tire.configure { logger STDERR, level: 'debug' }
Tire.index('movie-titles') do
delete
create \
settings: {
index: {
analysis: {
View docker-command.md

docker rmi the_image

Remove all images

docker rmi $(docker images -qf "dangling=true")

Kill containers and remove them:

docker rm $(docker kill $(docker ps -aq))

View gist:47fbb423ed21a13b455782041e00a6ef
[
{
"class": "sidebar_container",
"layer0.tint": [60, 60, 60],
"layer0.opacity": 1.0,
"layer0.draw_center": false,
"layer0.inner_margin": [0, 0, 1, 0],
"content_margin": [0, 0, 1, 0]
},
{
@igoreliasm
igoreliasm / A.markdown
Created May 9, 2016 — forked from umpirsky/A.markdown
Sublime Text Monokai Sidebar Theme.
View A.markdown
@igoreliasm
igoreliasm / primos.py
Last active Apr 4, 2016
100 primeiros numeros primos
View primos.py
#!/usr/bin/env python
#-*- coding: utf8-*-
not_p = []
e = []
lim = 100
def primo(num):
if num != 1:
t = True
for i in range(2,num):
View gist:e49a1d13e76f97e7aa93
http_port 3128
visible_hostname proxy_name
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
You can’t perform that action at this time.