This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging: { | |
// Only console logging is currently supported | |
console: { | |
level: "trace", | |
metrics: false, | |
audit: false | |
}, | |
loki: { | |
level:'trace', | |
metrics:false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Nginx | |
# ------ | |
tail -n 10000 access.log | awk '{print $1}'| sort| uniq -c| sort -nr| head -n 10 # Get IP from logs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install --yes curl vim htop xclip ranger neofetch git net-tools | |
# hstr | |
# https://github.com/dvorka/hstr | |
mkdir -p source | |
cd ~/source | |
git clone https://github.com/dvorka/hstr.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decompress xz sql file | |
xz -d -v FILENAME | |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password="root" DATABASE | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;For Arduino UNO | |
[env:uno] | |
platform = atmelavr | |
board = uno | |
framework = arduino | |
upload_protocol = usbtiny | |
upload_flags = -e | |
;For Esp32 | |
[env:esp32doit-devkit-v1] |