remove some unused functions

also move certexpiry to be a sh script
This commit is contained in:
Ben Harris 2022-10-13 12:07:59 -04:00
parent 4815662c48
commit 72493884f0
15 changed files with 13 additions and 75 deletions

4
bin/bin/certexpiry Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
exec openssl s_client -connect "$1" </dev/null 2>/dev/null \
| openssl x509 -noout -dates

View File

@ -1,4 +1,3 @@
# Defined in /tmp/fish.5ZM6aQ/anonradio.fish @ line 1
function anonradio
nvlc http://anonradio.net:8000/anonradio
end

View File

@ -1,4 +1,3 @@
# Defined in /tmp/fish.7MQgge/backupstatus.fish @ line 2
function backupstatus
ssh rsync quota
ssh rsync du -sh "*.borg"

View File

@ -1,8 +0,0 @@
function cat
if type -q bat >/dev/null
bat -p $argv
else
command cat $argv
end
end

View File

@ -1,3 +0,0 @@
function certexpiry
openssl s_client -connect $argv[1] </dev/null 2>/dev/null | openssl x509 -noout -dates
end

View File

@ -1,8 +0,0 @@
# Defined in /tmp/fish.hXQA9y/cp_tilde_index.fish @ line 1
function cp_tilde_index
sudo cp /etc/skel/public_html/index.php /home/$argv[1]/public_html/.
sudo chown $argv[1]:$argv[1] /home/$argv[1]/public_html/index.php
if test -e /home/$argv[1]/public_html/index.html
sudo rm /home/$argv[1]/public_html/index.html
end
end

View File

@ -1,4 +0,0 @@
function e
exa -al --git --group-directories-first $argv
end

View File

@ -1,27 +0,0 @@
function lfcd
set tmp (mktemp)
set fid (mktemp)
lf -command '$printf $id > "'$fid'"' -last-dir-path=$tmp $argv
set id (cat $fid)
set archivemount_dir "/tmp/__lf_archivemount_"$id
if test -f "$archivemount_dir"
for line in (cat $archivemount_dir)
umount "$line"
rm -rf "$line"
end
end
if test -f "$tmp"
set dir (cat $tmp)
rm -f "$tmp"
if test -d "$dir"
if test "$dir" != (pwd)
cd "$dir"
end
end
end
end

View File

@ -1,8 +0,0 @@
function lg
if type -q lazygit > /dev/null
lazygit $argv
else
git status
end
end

View File

@ -1,4 +1,3 @@
# Defined in /tmp/fish.XPcPNS/lynx.fish @ line 2
function lynx
command lynx -vikeys -display_charset=UTF-8 $argv
command lynx -vikeys -display_charset=UTF-8 $argv
end

View File

@ -1,7 +0,0 @@
function mutt
if type -q neomutt >/dev/null
neomutt $argv
else
command mutt $argv
end
end

View File

@ -0,0 +1,5 @@
# Defined in /tmp/fish.Fo1L3P/pubtr.fish @ line 1
function pubtr
mtr -wrc4 $argv[1] > ~/pub/mtr/"$argv[1]".txt
echo https://bhh.sh/pub/mtr/$argv[1].txt
end

View File

@ -1,3 +0,0 @@
function renew_ifd_cert
sudo certbot certonly --agree-tos --renew-by-default --manual --preferred-challenges=dns -d ironfishdistillery.com $argv
end

View File

@ -0,0 +1,3 @@
function ssys
sudo systemctl $args
end

View File

@ -1,3 +0,0 @@
function ttm
curl -F"file=@"$argv[1] https://ttm.sh
end