Skip to content

Instantly share code, notes, and snippets.

Martín Cigorraga cig0

Block or report user

Report or block cig0

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
cig0 /
Created Apr 27, 2019
Example tokens

Example tokens:


cig0 /
Created Apr 25, 2019 — forked from g0t4/
Starting Point Files for Jenkins2 Getting Started course
cig0 / .gitignore
Created Apr 16, 2019
[ git ] .gitignore
View .gitignore
# Compiled source #
# Packages #
cig0 / Update
Last active Apr 16, 2019
[ cheatsheet ] Git
View Update


1. Clone your fork:

git clone

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
cig0 /
Last active Apr 11, 2019
Docker #docker

Docker cheatsheet

Command Description
Ctrl-p + Ctrl-q Disconnects from current interactive container
docker ps Lists the current running containers
docker images Lists available containers
docker stop Stops the specified container
docker port Lists the ports exposed on the specified container
docker network inspect Displays the net information for the specified container
View Install & Configure
cig0 / benchmark-commands.txt
Created Jan 13, 2019 — forked from zodvik/benchmark-commands.txt
Kafka (1.0.0) Benchmark Commands
View benchmark-commands.txt
bin/ --zookeeper localhost:2181/kafka-local --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/ --zookeeper localhost:2181/kafka-local --create --topic test-rep-two --partitions 6 --replication-factor 3
Single thread, no replication
bin/ --print-metrics --topic test-rep-one --num-records 6000000 --throughput 100000 --record-size 100 --producer-props bootstrap.servers=kafka_host:9092 buffer.memory=67108864 batch.size=8196
Single-thread, async 3x replication
cig0 / virtualenv
Created Sep 2, 2018 — forked from maemual/virtualenv
golang virtualenv
View virtualenv
export GOPATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
export OLDPS1=$PS1
export PS1="[go:$(basename $GOPATH)] $PS1"
alias gcd="cd $GOPATH"
deactivate() {
export PS1=$OLDPS1
unset GOPATH
unset OLDPS1
unalias gcd
unset deactivate
cig0 / nginx-ssl-config
Created Jul 30, 2018 — forked from apollolm/nginx-ssl-config
Nginx Configuration with multiple port apps on same domain, with SSL.
View nginx-ssl-config
# the IP(s) on which your node server is running. I chose port 3000.
upstream app_geoforce {
upstream app_pcodes{
cig0 / gist:c3bee224160aa5b37ec8939d9326c303
Created May 11, 2018
Rename both local and remote branch
View gist:c3bee224160aa5b37ec8939d9326c303
1. Rename your local branch:
If you are on the branch you want to rename:
git branch -m new-name
If you are on a different branch:
git branch -m old-name new-name
2. Delete the old-name remote branch and push the new-name local branch.
You can’t perform that action at this time.