Skip to content

Instantly share code, notes, and snippets.

@thiagoeh
thiagoeh / clean_file.sh
Created May 14, 2020 21:21
Removing commented and blank lines from file
grep -v '^#' /etc/squid/squid.conf | grep -v '^$'
@thiagoeh
thiagoeh / cce_sp_v1-13_storage_classes.txt
Last active May 19, 2020 21:10
Working with PersistentVolume and PersistentVolumeClaim in Kubernetes
kubectl get storageclass
NAME PROVISIONER AGE
efs-performance flexvolume-huawei.com/fuxiefs 102m
efs-standard flexvolume-huawei.com/fuxiefs 102m
nfs-rw flexvolume-huawei.com/fuxinfs 102m
obs-standard flexvolume-huawei.com/fuxiobs 102m
obs-standard-ia flexvolume-huawei.com/fuxiobs 102m
sas flexvolume-huawei.com/fuxivol 102m
sata flexvolume-huawei.com/fuxivol 102m
ssd flexvolume-huawei.com/fuxivol 102m
@thiagoeh
thiagoeh / youtube-dl_audio.sh
Created May 28, 2020 22:19
Getting audio from an youtube video
# https://askubuntu.com/questions/634584/how-to-download-youtube-videos-as-a-best-quality-audio-mp3-using-youtube-dl
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 5 <URL>
kubectl run -i --tty --rm --image ubuntu test-shell bash
@thiagoeh
thiagoeh / postman_dl.sh
Last active June 19, 2020 13:19
Downloading an specific release of postman
wget https://dl.pstmn.io/download/version/7.25.3/win64
wget https://dl.pstmn.io/download/channel/canary/windows_64
@thiagoeh
thiagoeh / iperf3_tests.md
Last active July 14, 2020 22:11
Iperf3 Tests

Server side

iperf3 -s

Client Side

SERVER_IP=159.138.214.0 # SP
SERVER_IP=119.8.155.113 # Chile
iperf3 \
@thiagoeh
thiagoeh / cloud-init.txt
Last active August 10, 2020 17:20
Cloud Init - arquivo de exemplo
#cloud-config
timezone: "America/Sao_Paulo"
packages:
- htop
- nginx
216.239.38.120 www.google.com
216.239.38.120 www.google.com.br
216.239.38.120 google.com
216.239.38.120 google.com.br
@thiagoeh
thiagoeh / aws_cli_cheatsheet.md
Last active October 28, 2020 12:50
Some useful AWS CLI commands