Skip to content

Instantly share code, notes, and snippets.

View edbizarro's full-sized avatar
🎲
Crunching data

Eduardo Bizarro edbizarro

🎲
Crunching data
View GitHub Profile
@edbizarro
edbizarro / docker.zsh
Created April 10, 2020 16:48
docker.zsh
A_BASE=$HOME/.cache/gitlab-ci-pipeline-php
# define specific cache directories
A_CONFIG=$A_BASE/.config
A_CACHE=$A_BASE/.cache
A_LOCAL=$A_BASE/.local
A_SSH=$HOME/.ssh
A_COMPOSER=$A_BASE/.composer
A_YARN=$A_BASE/.yarn
@edbizarro
edbizarro / compact.json
Last active July 7, 2019 11:53
[DRUID] Compact task example
{
"type": "compact",
"dataSource": "dl_sbi_grp",
"interval": "2016-01-01/2019-07-01",
"tuningConfig" : {
"type" : "index",
"maxRowsInMemory": "200000",
"maxRowsPerSegment": "5000000",
"maxTotalRows": "20000000",
"forceExtendableShardSpecs" : true
@edbizarro
edbizarro / .php_cs
Last active April 13, 2019 22:02
PHP CS FIXER for Laravel projects (inspired by https://gist.github.com/joaorobertopb/a979f2f970e0ccbef6a2ab1a47a71fff)
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' =>
[
'align_equals' => true,
apt-get update
apt-get upgrade -y
sudo apt-get install build-essential tcl -y
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make
sudo make install
@edbizarro
edbizarro / link.md
Created February 18, 2018 18:35
Estudos Kubernetes
@edbizarro
edbizarro / 00-info.md
Last active March 3, 2019 13:46
CRYPTO!

Olá pra você que está chegando agora.

Meu objetivo com esse gist é compartilhar informações úteis sobre o mundo das criptomoedas conforme for aprendendo mais sobre elas.

@edbizarro
edbizarro / medium-gitlab-ci-1.yml
Last active February 22, 2017 17:53
medium-gitlab-ci-1.yml
# Select image from https://hub.docker.com/_/php/
image: php:7.1
before_script:
# Install project dependencies
- apt-get update
- apt-get install git libmcrypt-dev libxml2-dev libcurl4-gnutls-dev -yqq
- docker-php-ext-install -j$(nproc) curl mcrypt mbstring zip xml json
# Install composer