diff --git a/letsencrypt-renewal-hooks/10-restart-services.sh b/letsencrypt-renewal-hooks/10-restart-services.sh new file mode 100644 index 0000000..a970d32 --- /dev/null +++ b/letsencrypt-renewal-hooks/10-restart-services.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +postmap -F hash:/etc/postfix/sni +postmap -F hash:/etc/postfix/vmail_ssl.map +systemctl restart nginx && systemctl restart dovecot && systemctl restart postfix \ No newline at end of file diff --git a/solus_utility/get_thunderbird_cve_nums.pl b/solus_utility/get_thunderbird_cve_nums.pl new file mode 100644 index 0000000..f6e6c65 --- /dev/null +++ b/solus_utility/get_thunderbird_cve_nums.pl @@ -0,0 +1,41 @@ +#!/usr/bin/env perl + +use Modern::Perl; + +use FindBin; +use lib "$FindBin::RealBin/lib"; + +use Getopt::Long; +use Pod::Usage; +use WWW::Mechanize; +use Data::Dumper; + +my $successful_parse = GetOptions( + 'help|?' => \ my $help, + man => \ my $man, + 'url=s' => \ my $url + ) + or pod2usage(2); + +if ( !$successful_parse || ( @ARGV > 1 ) ) { + die qq{Usage: $0 [ --url]\n}; +} + +if ( !defined $url ) { + die qq{Usage: $0 [ --url]\n}; +} + +# Get url from input param +# https://www.mozilla.org/en-US/security/advisories/mfsa2024-07/ + +my $mechanize = WWW::Mechanize->new(autocheck => 1); +$mechanize->get($url); +my $page = $mechanize->content; + +# Get text from each level-heading class +# ex +#

+# And then Metacpan had a 502 so I couldn't find docs on how to get this X| + + +# Get CVEs in form of CVE-2024-1546 \ No newline at end of file diff --git a/solus_utility/setup_solus_vm.sh b/solus_utility/setup_solus_vm.sh new file mode 100644 index 0000000..d8514e1 --- /dev/null +++ b/solus_utility/setup_solus_vm.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +sudo eopkg it -y rsync zsh neovim ripgrep git powerline-fonts simple-scan +chsh -s $(which zsh) + +cp /mnt/vmshare/.aliases ~/ +cp /mnt/vmshare/.bashrc ~/ +cp /mnt/vmshare/.bash_profile ~/ +cp /mnt/vmshare/.zshrc ~/ +cp /mnt/vmshare/.zsh_tlc ~/ + +# Add zsh prompt setup \ No newline at end of file