This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to end of /etc/spamassassin/local.cf | |
# | |
# AWS/amazon spoofing - simple check for dot appended on things like "console.aws.amazon.com.spoofdomain.com" (case insensitive) | |
# XXXXXXXXXXXXXXXXXXXXXX^############### | |
rawbody LOCAL_AWS_SPOOF1 /aws\.amazon\.com\./i | |
describe LOCAL_AWS_SPOOF1 Fake AWS URL in body extra dot on domain | |
score LOCAL_AWS_SPOOF1 10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
def_filename="test.eml" | |
tmp1="/tmp/emailresults.txt" | |
tmp2="/tmp/emailresults.log" | |
usage=" | |
$(basename "$0") [-h] [mailmessage] | |
Send email through Spamassassin manually and view output | |
Flags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#testnet=1 | |
datadir=/opt/reddcoin | |
rpcuser=reddcoinrpc | |
# random characters here - running the binary once will show you a generated password you could use. | |
rpcpassword=(random chars here) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run 'reddcoind' on fresh Ubuntu 18.04: | |
Open a SSH command line and install the following: | |
Copy/Paste this and hit enter: | |
sudo apt update && sudo apt install build-essential libboost-system1.65.1 libboost-filesystem1.65.1 libboost-program-options1.65.1 libboost-thread1.65.1 libminiupnpc10 | |
Copy/Paste this and hit enter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SUDO | |
alias sw='sudo -u www-data' | |
alias beroot='sudo su -' | |
# NANO/EDITING | |
alias e='nano -\$wcS' | |
alias se='sudo nano -\$wcS' | |
# FILES-LS | |
alias l='ls -lah' | |
# PS SHOW ALL/TREE FORMAT/WIDE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Brady Shea - 06SEP2019 | |
# | |
# Alternative certbot.service file for use on standalone. | |
# If you use the apache2.service (or another webserver) please adjust. | |
# | |
# This will be run as root from systemd.timer/service. | |
# Verify '/lib/systemd/system/certbot.service' calls this script. | |
# | |
test -x /usr/bin/certbot && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# DSCOVR: Deep Space Climate Observatory : | |
# Earth Polychromatic Imaging Camera | |
# Daily Blue Marble API: | |
# https://epic.gsfc.nasa.gov/about/api | |
# Python Script by: Brady Shea | |
# 27 August 2019 | |
import sys, json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Place this file inside the /conf.d area. | |
; Examples: | |
; /etc/php/7.3/fpm/conf.d/50-custom-wordpress.ini | |
; /etc/php/7.3/apache2/conf.d/50-custom-wordpress.ini | |
; | |
; Since this is a custom file, you can safely let PHP system updates overwrite the main "php.ini" file(s). | |
; This file will remain untouched. | |
; | |
display_errors = Off | |
display_startup_errors = Off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://askubuntu.com/a/924587/169878 | |
echo | |
echo "APT Repositories In Use" | |
echo | |
echo "Please wait while I update apt command.." | |
echo | |
sudo apt update > /dev/null 2>&1 && \ | |
echo "Current repositores:" && \ | |
sudo apt-cache policy | grep http | awk '{print $2 $3}' | sort -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName domain.com | |
ServerAlias *.domain.com *.www.domain.com | |
ErrorLog ${APACHE_LOG_DIR}/domain.com-error.log | |
CustomLog ${APACHE_LOG_DIR}/domain.com-access.log common | |
Redirect 301 / https://www.domain.com/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName www.domain.com | |
ServerAlias *.domain.com *.www.domain.com |