Skip to content

Instantly share code, notes, and snippets.

🌐
Kubernetes 🤘

Martín Cigorraga cig0

🌐
Kubernetes 🤘
  • GlobalLogic
  • Mar del Plata
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 / pre-push
Created Sep 10, 2019 — forked from kalpeshsingh/pre-push
A pre-push git hook that notify Amazon Chime group
View pre-push
#!/bin/sh
branch="$(git rev-parse --abbrev-ref HEAD)"
# get computer name to append in Chime message
username=$USER
# a branch name where you want to prevent git push. In this case, it's "master"
if [ "$branch" = "master" ]; then
echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup
@cig0
cig0 / VS Code Remore-Containers Extension Dockerfile
Last active Aug 4, 2019
Hacky but nice way to bypass COPY fail error
View VS Code Remore-Containers Extension Dockerfile
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM python:3
# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive
@cig0
cig0 / gist:449f5be8d4463536d9392a635d5ed940
Created Jul 14, 2019
Verifying my Blockstack ID is secured with the address 1NbURzVnD9piS4n8TGQ55USkrwberR2hgu https://explorer.blockstack.org/address/1NbURzVnD9piS4n8TGQ55USkrwberR2hgu
View gist:449f5be8d4463536d9392a635d5ed940
Verifying my Blockstack ID is secured with the address 1NbURzVnD9piS4n8TGQ55USkrwberR2hgu https://explorer.blockstack.org/address/1NbURzVnD9piS4n8TGQ55USkrwberR2hgu
@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 Sep 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
You can’t perform that action at this time.