Skip to content

Instantly share code, notes, and snippets.

View CesarNog's full-sized avatar
☁️
Developing your Cloud Solution

Cesar Augusto Nogueira CesarNog

☁️
Developing your Cloud Solution
View GitHub Profile
@lgarciasbr
lgarciasbr / latency.txt
Created January 11, 2016 23:56 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
@ankurk91
ankurk91 / npm-commands.md
Last active October 22, 2023 12:16
Useful npm commands and tricks

npm v3.10 - ◾

⚠️ This gist is outdated, but most of the commands are still relevant. ⚠️

Update npm itself

npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
@dimasch
dimasch / redis-clear
Last active April 8, 2025 15:56
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@loiane
loiane / ReceitaBoloMousseMorango.md
Last active August 22, 2018 14:00
ReceitaBoloMousseMorango
@onjin
onjin / docker-compose.yml
Created September 5, 2016 09:17
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
@lichti
lichti / new_relic_alert.sh
Last active May 7, 2019 13:48
Script to enable or disable newrelic alerts
#!/bin/bash
if [ ! -x /usr/bin/curl ]; then
echo "Please install curl"
exit 1
fi
if [ ! -x /usr/bin/jq ]; then
echo "Please install jq"
exit 1
@edgarsandi
edgarsandi / new_relic_alert.sh
Created September 5, 2016 21:59 — forked from lichti/new_relic_alert.sh
Script to enable or disable newrelic alerts
#!/bin/bash
if [ ! -x /usr/bin/curl ]; then
echo "Please install curl"
exit 1
fi
if [ ! -x /usr/bin/jq ]; then
echo "Please install jq"
exit 1
@CesarNog
CesarNog / Android Studio .gitignore
Created February 15, 2017 12:54 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files
[SERVICE]
Flush 5
Daemon Off
Log_Level info
Parsers_File /etc/fluent-bit/parsers.conf
[INPUT]
Name Tail
Path /mnt/data/docker/containers/*/*.log
Path_Key file
Parameter Description
--max-retry-attempts O número máximo de tentativas que um job falho não pode exceder.
--max-retry-duration O tempo máximo para tentar novamente um job falho, contado à partir da primeira execução.
--min-backoff O tempo mínimo a se esperar antes de tentar novamente após uma falha. O padrão é '5s'.
--max-backoff O tempo máximo a se esperar antes de tentar novamente após uma falha. O padrão é '1h'.
--max-doublings O número máximo de tentativas que o intervalo entre jobs falhos será dobrado antes do aumento se tornar constante. O padrão é 16.