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

Example tokens:

SyEl0ZUAaDDgFgMI2FEo3aXYC0WaBSczA4BOkRIIQ2UERPORNShWSID MaDhBOSAaxSzlIIDRaSDEgWEU3RCA4OUZIIFo2SFcgNEQ0RyBPWk2Y0 IaUM2gaDIUARDEFzQlaSC0PSxOIgDZyOIRWEAB0NkY24Ech3RoSWFSB D2kWxNUSE4I0MhFRE0RQaAaDOOoyBFSCzSIADIPg2aE3YaUcSIlZWgR NIxyERWaS24FSQISQEoSgDWZcI3U2Aak1BOY0gzEMCRODhFRDaPUIAB

@cig0
cig0 / links.md
Created Apr 25, 2019 — forked from g0t4/links.md
Starting Point Files for Jenkins2 Getting Started course
View links.md
@cig0
cig0 / .gitignore
Created Apr 16, 2019
[ git ] .gitignore
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@cig0
cig0 / Update fork.md
Last active Apr 16, 2019
[ cheatsheet ] Git
View Update fork.md

From: https://gist.github.com/CristinaSolana/1885435

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

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

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
@cig0
cig0 / Cheatsheet.md
Last active Apr 11, 2019
Docker #docker
View Cheatsheet.md

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 SonarQube.md
@cig0
cig0 / benchmark-commands.txt
Created Jan 13, 2019 — forked from zodvik/benchmark-commands.txt
Kafka (1.0.0) Benchmark Commands
View benchmark-commands.txt
Producer
Setup
bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-two --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.tools.ProducerPerformance --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
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
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 {
server 127.0.0.1:3000;
}
upstream app_pcodes{
server 127.0.0.1:3001;
}
@cig0
cig0 / gist:c3bee224160aa5b37ec8939d9326c303
Created May 11, 2018
Rename both local and remote branch
View gist:c3bee224160aa5b37ec8939d9326c303
Source: https://multiplestates.wordpress.com/2015/02/05/rename-a-local-and-remote-branch-in-git/
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.