Merge branch 'arch' of https://github.com/ItsDrike/dotfiles into arch

This commit is contained in:
ItsDrike 2021-11-14 20:59:22 +01:00
commit 8b4be51ca0
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,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'

View file

@ -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")