Compare commits
3 commits
6aa44ea7e8
...
3b7e6434b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b7e6434b9 | ||
|
|
005a042263 | ||
|
|
0290749cee |
3 changed files with 58 additions and 0 deletions
5
letsencrypt-renewal-hooks/10-restart-services.sh
Normal file
5
letsencrypt-renewal-hooks/10-restart-services.sh
Normal file
|
|
@ -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
|
||||||
41
solus_utility/get_thunderbird_cve_nums.pl
Normal file
41
solus_utility/get_thunderbird_cve_nums.pl
Normal file
|
|
@ -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
|
||||||
|
# <h4 id="CVE-2024-1546" class="level-heading">
|
||||||
|
# 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
|
||||||
12
solus_utility/setup_solus_vm.sh
Normal file
12
solus_utility/setup_solus_vm.sh
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue