This file contains 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 | |
# Outpul file (Default: proxy.txt) | |
out="proxy.txt" | |
# Sources | |
source=("https://api.proxyscrape.com/?request=displayproxies&proxytype=http" "https://www.proxy-list.download/api/v1/get?type=http" "https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/http.txt" "https://api.openproxylist.xyz/http.txt") | |
getprox(){ |
This file contains 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
-----BEGIN RSA PRIVATE KEY----- | |
MIIEowIBAAKCAQEAlwDg646IaTR2L22uslj1JH5Dos70ClCbOQE5vVxkF2w5olkn | |
rCI7UNGlwT/5snKgeUlGkBqpRr0wYSL2IjKGfpEBhbCPnyamEvb79m2WnhvTZ8Gr | |
ArfraMTuOJ+/fU4+Oe8HNFCBuzVKbfEHC89jKiR9zRsTjYLww8d2Qy22lXGUU6+X | |
0lrzANLNL7ofDPrW9OJNhIV7j6H8lCUU4h91kyUepFTgvBpPTzyj7hbctfHwmIRN | |
5be6xP9vUdIIYUfXgMlqHC5ELBQnHUL1qQg6+wFjC5q0W/8924FxCs5tNKDHa0B8 | |
StnwQtsJirzmh3jpKi4JfcGtcKdNpf0mGAqq4QIDAQABAoIBADcvdAPCWGoSaSrW | |
K+U0C4sltfQ3LArlAIVpxD9HF7FTtRB3Ar+u1vynUat5hPjJWYpZ1Dbv93NJyveE | |
/mzrCCoTNno0V5izWDhQGS8rR8NKqg0eQzBAJQFqDyGUiDf0M1ua1ogw7+iKBkR9 | |
tLSFO1l4cp1VyuSJuRHjwH22pCajBvrlC1acs5RwK6FrIDhbQwjgVrMZVCyG3Kg6 |
This file contains 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 | |
function Centered(){ | |
echo "$1" | sed -e :a -e "s/^.\{1,$(tput cols)\}$/ & /;ta" | tr '\n' '\r' | |
} | |
# Using Pipe | |
function CenteredPipe(){ | |
sed -e :a -e "s/^.\{1,$(tput cols)\}$/ & /;ta" /dev/stdin | tr '\n' '\r' | |
} |
This file contains 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/sh | |
unit_conversion(){ | |
B="${1}" | |
KB="$(awk -v "p=${B}" 'BEGIN{ p=p / 1024; printf "%0.2f", p}')" | |
MB="$(awk -v "p=${KB}" 'BEGIN{ p=p / 1024; printf "%0.2f", p}')" | |
GB="$(awk -v "p=${MB}" 'BEGIN{ p=p / 1024; printf "%0.2f", p}')" | |
TB="$(awk -v "p=${GB}" 'BEGIN{ p=p / 1024; printf "%0.2f", p}')" | |
[ "${TB%%.*}" -gt "0" ] && printf '%s %s\n' "${TB}" "TB" && return 0 | |
[ "${GB%%.*}" -gt "0" ] && printf '%s %s\n' "${GB}" "GB" && return 0 |