From c01d292933ca80c319c81fa9ab6d7f24e0419f8a Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 22 Oct 2021 13:19:06 +0200 Subject: [PATCH 1/2] Fix bitcoin price script --- home/.local/bin/scripts/bitcoin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.local/bin/scripts/bitcoin b/home/.local/bin/scripts/bitcoin index 78316b5..c0dfad2 100755 --- a/home/.local/bin/scripts/bitcoin +++ b/home/.local/bin/scripts/bitcoin @@ -1,6 +1,6 @@ #!/bin/sh -BTC_DATA=$(curl https://api.coindesk.com/v1/bpi/currentprice.json 2>/dev/null | echo 'ERR') +BTC_DATA=$(curl https://api.coindesk.com/v1/bpi/currentprice.json 2>/dev/null || echo 'ERR') if [ "$BTC_DATA" != "ERR" ]; then BTC_PRICE=$(echo $BTC_DATA | jq -r ".bpi.USD.rate_float") From 4bc99d46b59a48bc0d90cb0ad3f1453a7f50ed2b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 22 Oct 2021 13:19:20 +0200 Subject: [PATCH 2/2] Fix ip-show alias --- home/.config/shell/aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/shell/aliases b/home/.config/shell/aliases index 02b983c..0b38dca 100755 --- a/home/.config/shell/aliases +++ b/home/.config/shell/aliases @@ -117,7 +117,7 @@ alias grep_mac='grep -E `reg_mac`' alias massgrep='grep -RHIni' # Network -alias ip-show='curl https://api.ipify.org' # Get global IP address +alias ip-show='curl https://ifconfig.co' # Get global IP address alias ips="ifconfig -a | grep -oE \"inet6? (addr:)?s?\`reg_ip\`\" | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'" alias lan-device-scan='nmap -T5 -sP 192.168.0.0-255' alias lan-vuln-scan='nmap -sT -O --script vuln 192.168.0.0-255'