Commits vergleichen
2 Commits
c1300f968d
...
4f80ad381a
Autor | SHA1 | Datum | |
---|---|---|---|
4f80ad381a | |||
16051c01c2 |
14
2021-11-09-wireguard-config-renamer/run.sh
Normale Datei
14
2021-11-09-wireguard-config-renamer/run.sh
Normale Datei
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
SERVERS="$(curl -sS https://api.mullvad.net/www/relays/all/ |
|
||||
jq -jr '.[] | .hostname, ",", .city_code, ",", .type, ",", .provider, "\n"' |
|
||||
grep wireguard)"
|
||||
|
||||
for LINE in $SERVERS ; do
|
||||
hostname="$(echo $LINE | awk -F, '{print $1}')"
|
||||
city="$(echo $LINE | awk -F, '{print $2}')"
|
||||
provider="$(echo $LINE | awk -F, '{print $4}')"
|
||||
short="$(echo $hostname | awk -F'-' '{print $1}')"
|
||||
echo mv mullvad-$short.conf $short-$city-$provider.conf
|
||||
done
|
7
bin/ubtc
Ausführbare Datei
7
bin/ubtc
Ausführbare Datei
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
UBTC="$1"
|
||||
BTC="$(echo "scale=6 ; $UBTC / 1000000" | bc)"
|
||||
BTCUSD="$(curl -sS https://blockchain.info/ticker | jq -r '.USD.last')"
|
||||
echo \$$(echo "scale=2 ; ( $BTC * $BTCUSD ) /1.00" | bc) USD
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren