mirror of https://tildegit.org/ben/dotfiles
parent
4815662c48
commit
72493884f0
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec openssl s_client -connect "$1" </dev/null 2>/dev/null \
|
||||
| openssl x509 -noout -dates
|
|
@ -1,4 +1,3 @@
|
|||
# Defined in /tmp/fish.5ZM6aQ/anonradio.fish @ line 1
|
||||
function anonradio
|
||||
nvlc http://anonradio.net:8000/anonradio
|
||||
end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# Defined in /tmp/fish.7MQgge/backupstatus.fish @ line 2
|
||||
function backupstatus
|
||||
ssh rsync quota
|
||||
ssh rsync du -sh "*.borg"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
function cat
|
||||
if type -q bat >/dev/null
|
||||
bat -p $argv
|
||||
else
|
||||
command cat $argv
|
||||
end
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
function certexpiry
|
||||
openssl s_client -connect $argv[1] </dev/null 2>/dev/null | openssl x509 -noout -dates
|
||||
end
|
|
@ -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
|
|
@ -1,4 +0,0 @@
|
|||
function e
|
||||
exa -al --git --group-directories-first $argv
|
||||
end
|
||||
|
|
@ -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
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
function lg
|
||||
if type -q lazygit > /dev/null
|
||||
lazygit $argv
|
||||
else
|
||||
git status
|
||||
end
|
||||
end
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
# Defined in /tmp/fish.XPcPNS/lynx.fish @ line 2
|
||||
function lynx
|
||||
command lynx -vikeys -display_charset=UTF-8 $argv
|
||||
end
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
function mutt
|
||||
if type -q neomutt >/dev/null
|
||||
neomutt $argv
|
||||
else
|
||||
command mutt $argv
|
||||
end
|
||||
end
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
function ssys
|
||||
sudo systemctl $args
|
||||
end
|
|
@ -1,3 +0,0 @@
|
|||
function ttm
|
||||
curl -F"file=@"$argv[1] https://ttm.sh
|
||||
end
|
Loading…
Reference in New Issue