mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
Remove unused distrobox-exported bins
This commit is contained in:
parent
99de7ebe81
commit
464908347d
24
btop
24
btop
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# distrobox_binary
|
|
||||||
# name: default
|
|
||||||
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|
||||||
command="/bin/distrobox-enter -n default -- /bin/btop --utf-force "
|
|
||||||
|
|
||||||
for arg in "$@"; do
|
|
||||||
if echo "${arg}" | grep -Eq "'|\""; then
|
|
||||||
command="${command} \
|
|
||||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
|
||||||
sed 's| |\\ |g' |
|
|
||||||
sed 's|\$|\\\$|g' |
|
|
||||||
sed "s|'|\\\'|g" |
|
|
||||||
sed 's|"|\\\"|g')"
|
|
||||||
elif echo "${arg}" | grep -q "'"; then
|
|
||||||
command="${command} \"${arg}\""
|
|
||||||
else
|
|
||||||
command="${command} '${arg}'"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
eval ${command}
|
|
||||||
else
|
|
||||||
/bin/btop "$@"
|
|
||||||
fi
|
|
24
emacs
24
emacs
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# distrobox_binary
|
|
||||||
# name: default
|
|
||||||
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|
||||||
command="/bin/distrobox-enter -n default -- /bin/emacs "
|
|
||||||
|
|
||||||
for arg in "$@"; do
|
|
||||||
if echo "${arg}" | grep -Eq "'|\""; then
|
|
||||||
command="${command} \
|
|
||||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
|
||||||
sed 's| |\\ |g' |
|
|
||||||
sed 's|\$|\\\$|g' |
|
|
||||||
sed "s|'|\\\'|g" |
|
|
||||||
sed 's|"|\\\"|g')"
|
|
||||||
elif echo "${arg}" | grep -q "'"; then
|
|
||||||
command="${command} \"${arg}\""
|
|
||||||
else
|
|
||||||
command="${command} '${arg}'"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
eval ${command}
|
|
||||||
else
|
|
||||||
/bin/emacs "$@"
|
|
||||||
fi
|
|
24
nmap
24
nmap
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# distrobox_binary
|
|
||||||
# name: default_root
|
|
||||||
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|
||||||
command="/bin/distrobox-enter --root -n default_root -- /bin/nmap "
|
|
||||||
|
|
||||||
for arg in "$@"; do
|
|
||||||
if echo "${arg}" | grep -Eq "'|\""; then
|
|
||||||
command="${command} \
|
|
||||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
|
||||||
sed 's| |\\ |g' |
|
|
||||||
sed 's|\$|\\\$|g' |
|
|
||||||
sed "s|'|\\\'|g" |
|
|
||||||
sed 's|"|\\\"|g')"
|
|
||||||
elif echo "${arg}" | grep -q "'"; then
|
|
||||||
command="${command} \"${arg}\""
|
|
||||||
else
|
|
||||||
command="${command} '${arg}'"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
eval ${command}
|
|
||||||
else
|
|
||||||
/bin/nmap "$@"
|
|
||||||
fi
|
|
16
nmap_ssh
16
nmap_ssh
@ -1,16 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Use nmap from podman to check for open SSH ports on local subnet.
|
|
||||||
if test -x "$(command -v podman)"; then
|
|
||||||
if sudo podman image exists localhost/nmap; then
|
|
||||||
sudo podman run -it --rm \
|
|
||||||
--cap-add=NET_RAW \
|
|
||||||
--cap-add=NET_ADMIN \
|
|
||||||
--network host \
|
|
||||||
--name nmap \
|
|
||||||
nmap -sV -p 22 -open 10.0.0.0/24
|
|
||||||
else
|
|
||||||
echo "localhost/nmap image does not exist"
|
|
||||||
echo "Build it from github.com/hyperreal64/containerfiles"
|
|
||||||
fi
|
|
||||||
fi
|
|
24
notmuch
24
notmuch
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# distrobox_binary
|
|
||||||
# name: default
|
|
||||||
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|
||||||
command="/bin/distrobox-enter -n default -- /bin/notmuch "
|
|
||||||
|
|
||||||
for arg in "$@"; do
|
|
||||||
if echo "${arg}" | grep -Eq "'|\""; then
|
|
||||||
command="${command} \
|
|
||||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
|
||||||
sed 's| |\\ |g' |
|
|
||||||
sed 's|\$|\\\$|g' |
|
|
||||||
sed "s|'|\\\'|g" |
|
|
||||||
sed 's|"|\\\"|g')"
|
|
||||||
elif echo "${arg}" | grep -q "'"; then
|
|
||||||
command="${command} \"${arg}\""
|
|
||||||
else
|
|
||||||
command="${command} '${arg}'"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
eval ${command}
|
|
||||||
else
|
|
||||||
/bin/notmuch "$@"
|
|
||||||
fi
|
|
24
offlineimap
24
offlineimap
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# distrobox_binary
|
|
||||||
# name: default_root
|
|
||||||
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|
||||||
command="/bin/distrobox-enter --root -n default_root -- /bin/offlineimap "
|
|
||||||
|
|
||||||
for arg in "$@"; do
|
|
||||||
if echo "${arg}" | grep -Eq "'|\""; then
|
|
||||||
command="${command} \
|
|
||||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
|
||||||
sed 's| |\\ |g' |
|
|
||||||
sed 's|\$|\\\$|g' |
|
|
||||||
sed "s|'|\\\'|g" |
|
|
||||||
sed 's|"|\\\"|g')"
|
|
||||||
elif echo "${arg}" | grep -q "'"; then
|
|
||||||
command="${command} \"${arg}\""
|
|
||||||
else
|
|
||||||
command="${command} '${arg}'"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
eval ${command}
|
|
||||||
else
|
|
||||||
/bin/offlineimap "$@"
|
|
||||||
fi
|
|
24
wireshark
24
wireshark
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# distrobox_binary
|
|
||||||
# name: default_root
|
|
||||||
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|
||||||
command="/bin/distrobox-enter --root -n default_root -- /bin/wireshark "
|
|
||||||
|
|
||||||
for arg in "$@"; do
|
|
||||||
if echo "${arg}" | grep -Eq "'|\""; then
|
|
||||||
command="${command} \
|
|
||||||
$(echo "${arg}" | sed 's|\\|\\\\|g' |
|
|
||||||
sed 's| |\\ |g' |
|
|
||||||
sed 's|\$|\\\$|g' |
|
|
||||||
sed "s|'|\\\'|g" |
|
|
||||||
sed 's|"|\\\"|g')"
|
|
||||||
elif echo "${arg}" | grep -q "'"; then
|
|
||||||
command="${command} \"${arg}\""
|
|
||||||
else
|
|
||||||
command="${command} '${arg}'"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
eval ${command}
|
|
||||||
else
|
|
||||||
/bin/wireshark "$@"
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user