Skip to content

Commit

Permalink
Lots of new empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
merces committed Nov 27, 2024
1 parent 8326146 commit 586a314
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/filesystem/bh_sharefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]*'
}
}
2 changes: 1 addition & 1 deletion src/math/bh_bin2dec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bh_bin2dec() {
(( $# < 1 )) && return 1

echo $((2#$1))
}
}
2 changes: 1 addition & 1 deletion src/math/bh_charcalc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ bh_charcalc() {
;;
esac

}
}
2 changes: 1 addition & 1 deletion src/math/bh_dec2bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bh_dec2bin() {
(( $# < 1 )) && return 1

echo "obase=2;$1" | bc
}
}
2 changes: 1 addition & 1 deletion src/math/bh_dec2hex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bh_dec2hex() {
(( $# < 1 )) && return 1

printf "%x\n" "$1"
}
}
2 changes: 1 addition & 1 deletion src/math/bh_hex2bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ bh_hex2bin() {
echo -n "$bin "
done
echo
}
}
2 changes: 1 addition & 1 deletion src/math/bh_hex2dec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bh_hex2dec() {
(( $# < 1 )) && return 1

echo $(( 0x${1#0x} ))
}
}
2 changes: 1 addition & 1 deletion src/math/bh_hexcalc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ bh_hexcalc() {

echo -n 0x
bh_dec2hex $((0x${1#0x} $2 0x${3#0x}))
}
}
2 changes: 1 addition & 1 deletion src/net/bh_myip.sh
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion src/programming/bh_skel_c.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bh_skel_c() {
echo -e "#include <stdio.h>\n\nint main(int argc, char *argv[]) {\n\n\n\treturn 0;\n}"
}
}
2 changes: 1 addition & 1 deletion src/reversing/bh_zerostring.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion src/strings/bh_asc2dec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bh_asc2dec() {
(( $# < 1 )) && return 1

printf "%d\n" "'$1"
}
}
2 changes: 1 addition & 1 deletion src/strings/bh_asciitable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/strings/bh_dec2asc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bh_dec2asc() {
(( $# < 1 )) && return 1

echo -e $(printf "\\\x%x" $1)
}
}
2 changes: 1 addition & 1 deletion src/strings/bh_hex2str.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ bh_hex2str() {
echo -ne "\\x$i"
done
echo
}
}
2 changes: 1 addition & 1 deletion src/strings/bh_str2dec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ bh_str2dec() {

echo -n "$1" | hexdump -ve '/1 "%d "' | sed 's/\(.*\) /\1/'
echo
}
}
1 change: 1 addition & 0 deletions src/strings/bh_str2hex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ bh_str2hex() {
;;
esac
}

2 changes: 1 addition & 1 deletion src/strings/bh_str2hexr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ bh_str2hexr() {
bh_str2hex "$(echo "$1" | rev)"
;;
esac
}
}

0 comments on commit 586a314

Please sign in to comment.