From 586a3148b89195c762c5796207631ee20dce9fdf Mon Sep 17 00:00:00 2001 From: merces Date: Wed, 27 Nov 2024 19:48:13 -0300 Subject: [PATCH] Lots of new empty lines --- src/filesystem/bh_sharefile.sh | 2 +- src/math/bh_bin2dec.sh | 2 +- src/math/bh_charcalc.sh | 2 +- src/math/bh_dec2bin.sh | 2 +- src/math/bh_dec2hex.sh | 2 +- src/math/bh_hex2bin.sh | 2 +- src/math/bh_hex2dec.sh | 2 +- src/math/bh_hexcalc.sh | 2 +- src/net/bh_myip.sh | 2 +- src/programming/bh_skel_c.sh | 2 +- src/reversing/bh_zerostring.sh | 2 +- src/strings/bh_asc2dec.sh | 2 +- src/strings/bh_asciitable.sh | 2 +- src/strings/bh_dec2asc.sh | 2 +- src/strings/bh_hex2str.sh | 2 +- src/strings/bh_str2dec.sh | 2 +- src/strings/bh_str2hex.sh | 1 + src/strings/bh_str2hexr.sh | 2 +- 18 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/filesystem/bh_sharefile.sh b/src/filesystem/bh_sharefile.sh index 5b06c98..d651b14 100644 --- a/src/filesystem/bh_sharefile.sh +++ b/src/filesystem/bh_sharefile.sh @@ -2,4 +2,4 @@ bh_sharefile() { (( $# < 1 )) && return 1 curl -sF "file=@$1" https://file.io | grep -o 'https://file\.io/[a-zA-Z0-9]*' -} \ No newline at end of file +} diff --git a/src/math/bh_bin2dec.sh b/src/math/bh_bin2dec.sh index fe3c6cf..1fdb819 100644 --- a/src/math/bh_bin2dec.sh +++ b/src/math/bh_bin2dec.sh @@ -2,4 +2,4 @@ bh_bin2dec() { (( $# < 1 )) && return 1 echo $((2#$1)) -} \ No newline at end of file +} diff --git a/src/math/bh_charcalc.sh b/src/math/bh_charcalc.sh index 2e0c0f0..96e51b8 100644 --- a/src/math/bh_charcalc.sh +++ b/src/math/bh_charcalc.sh @@ -23,4 +23,4 @@ bh_charcalc() { ;; esac -} \ No newline at end of file +} diff --git a/src/math/bh_dec2bin.sh b/src/math/bh_dec2bin.sh index 80db94a..a59abad 100644 --- a/src/math/bh_dec2bin.sh +++ b/src/math/bh_dec2bin.sh @@ -2,4 +2,4 @@ bh_dec2bin() { (( $# < 1 )) && return 1 echo "obase=2;$1" | bc -} \ No newline at end of file +} diff --git a/src/math/bh_dec2hex.sh b/src/math/bh_dec2hex.sh index 3c6589a..d52a82e 100644 --- a/src/math/bh_dec2hex.sh +++ b/src/math/bh_dec2hex.sh @@ -2,4 +2,4 @@ bh_dec2hex() { (( $# < 1 )) && return 1 printf "%x\n" "$1" -} \ No newline at end of file +} diff --git a/src/math/bh_hex2bin.sh b/src/math/bh_hex2bin.sh index 20328c6..ddf176b 100644 --- a/src/math/bh_hex2bin.sh +++ b/src/math/bh_hex2bin.sh @@ -9,4 +9,4 @@ bh_hex2bin() { echo -n "$bin " done echo -} \ No newline at end of file +} diff --git a/src/math/bh_hex2dec.sh b/src/math/bh_hex2dec.sh index 54ab66b..89987a5 100644 --- a/src/math/bh_hex2dec.sh +++ b/src/math/bh_hex2dec.sh @@ -2,4 +2,4 @@ bh_hex2dec() { (( $# < 1 )) && return 1 echo $(( 0x${1#0x} )) -} \ No newline at end of file +} diff --git a/src/math/bh_hexcalc.sh b/src/math/bh_hexcalc.sh index e7d3a8a..e96979e 100644 --- a/src/math/bh_hexcalc.sh +++ b/src/math/bh_hexcalc.sh @@ -3,4 +3,4 @@ bh_hexcalc() { echo -n 0x bh_dec2hex $((0x${1#0x} $2 0x${3#0x})) -} \ No newline at end of file +} diff --git a/src/net/bh_myip.sh b/src/net/bh_myip.sh index 0825ae3..9d29997 100644 --- a/src/net/bh_myip.sh +++ b/src/net/bh_myip.sh @@ -1,4 +1,4 @@ bh_myip() { - local ip=$(bh_cmd_wget -q https://api.ipify.org -O -) + local ip=$(wget -q https://api.ipify.org -O -) [[ $ip =~ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} ]] && echo $ip } \ No newline at end of file diff --git a/src/programming/bh_skel_c.sh b/src/programming/bh_skel_c.sh index e3cdd41..5644fb9 100644 --- a/src/programming/bh_skel_c.sh +++ b/src/programming/bh_skel_c.sh @@ -1,3 +1,3 @@ bh_skel_c() { echo -e "#include \n\nint main(int argc, char *argv[]) {\n\n\n\treturn 0;\n}" -} \ No newline at end of file +} diff --git a/src/reversing/bh_zerostring.sh b/src/reversing/bh_zerostring.sh index 576206f..9bfe68b 100644 --- a/src/reversing/bh_zerostring.sh +++ b/src/reversing/bh_zerostring.sh @@ -13,4 +13,4 @@ bh_zerostring() { [[ $i -gt 0 ]] || continue dd conv=notrunc bs=1 count=$siz seek=$i if=/dev/zero of="$fil" done -} \ No newline at end of file +} diff --git a/src/strings/bh_asc2dec.sh b/src/strings/bh_asc2dec.sh index 3ba36bd..47f398a 100644 --- a/src/strings/bh_asc2dec.sh +++ b/src/strings/bh_asc2dec.sh @@ -2,4 +2,4 @@ bh_asc2dec() { (( $# < 1 )) && return 1 printf "%d\n" "'$1" -} \ No newline at end of file +} diff --git a/src/strings/bh_asciitable.sh b/src/strings/bh_asciitable.sh index d2674a0..85bc99b 100644 --- a/src/strings/bh_asciitable.sh +++ b/src/strings/bh_asciitable.sh @@ -17,4 +17,4 @@ bh_asciitable() { 13 0D CR 29 1D GS 45 2D - 61 3D = 77 4D M 93 5D ] 109 6D m 125 7D }\n\ 14 0E SO 30 1E RS 46 2E . 62 3E > 78 4E N 94 5E ^ 110 6E n 126 7E ~\n\ 15 0F SI 31 1F US 47 2F / 63 3F ? 79 4F O 95 5F _ 111 6F o 127 7F DEL\n" -} \ No newline at end of file +} diff --git a/src/strings/bh_dec2asc.sh b/src/strings/bh_dec2asc.sh index 8ca6cb1..86272f7 100644 --- a/src/strings/bh_dec2asc.sh +++ b/src/strings/bh_dec2asc.sh @@ -2,4 +2,4 @@ bh_dec2asc() { (( $# < 1 )) && return 1 echo -e $(printf "\\\x%x" $1) -} \ No newline at end of file +} diff --git a/src/strings/bh_hex2str.sh b/src/strings/bh_hex2str.sh index 4c1606e..4d1f2de 100644 --- a/src/strings/bh_hex2str.sh +++ b/src/strings/bh_hex2str.sh @@ -14,4 +14,4 @@ bh_hex2str() { echo -ne "\\x$i" done echo -} \ No newline at end of file +} diff --git a/src/strings/bh_str2dec.sh b/src/strings/bh_str2dec.sh index 5faacc8..c4adf61 100644 --- a/src/strings/bh_str2dec.sh +++ b/src/strings/bh_str2dec.sh @@ -3,4 +3,4 @@ bh_str2dec() { echo -n "$1" | hexdump -ve '/1 "%d "' | sed 's/\(.*\) /\1/' echo -} \ No newline at end of file +} diff --git a/src/strings/bh_str2hex.sh b/src/strings/bh_str2hex.sh index 147f847..49ab5dc 100644 --- a/src/strings/bh_str2hex.sh +++ b/src/strings/bh_str2hex.sh @@ -21,3 +21,4 @@ bh_str2hex() { ;; esac } + diff --git a/src/strings/bh_str2hexr.sh b/src/strings/bh_str2hexr.sh index 2424b17..afa38fc 100644 --- a/src/strings/bh_str2hexr.sh +++ b/src/strings/bh_str2hexr.sh @@ -9,4 +9,4 @@ bh_str2hexr() { bh_str2hex "$(echo "$1" | rev)" ;; esac -} \ No newline at end of file +}