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
## File location: /etc/unbound/unbound.conf.d/99-unbound-custom.conf (new file) | |
## I DO NOT USE UNBOUND.CONF - it can get overwritten. | |
# Logrotate needs this when using 'sharedscripts' command. You also need it to view stats afaik. Uses localhost only. | |
remote-control: | |
control-enable: yes | |
server: | |
access-control: 127.0.0.0/8 allow | |
access-control: 10.0.0.0/8 allow |
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 | |
# Save this script as: | |
# `/etc/cron.daily/pflogsumm` | |
# It should be owned by root. | |
# Then set permissions: `sudo chmod 755 /etc/cron.daily/pflogsumm` | |
# the script will also run directly if you wish to test it. | |
# Brady Shea 31Jul2023 | |
test -x /usr/sbin/pflogsumm || exit 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 | |
tempfile1=/tmp/temp.mp3 | |
# Baremetal/Realtek analog etc | |
AUDIODEV=hw:0,0 | |
# Pi USB mic (usually): | |
# AUDIODEV=hw:1,0 | |
set_filenames () { | |
NAME=`date +%Y-%m-%d_%H-%M-%S` |
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 | |
# By B Shea Dec2018 & Mar2020 | |
# https://www.holylinux.net | |
# Test for OpenSSL - if not installed stop here. | |
if ! [[ -x $(which openssl) ]]; then | |
printf "\nOpenSSL not found or not executable.\nPlease install OpenSSL before proceeding.\n\n" | |
exit 1 | |
fi |
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
### "get-product-key.ps1": | |
### (updated from https://superuser.com/a/1367165) | |
### | |
### To allow this script to run, execute one of these in admin PS: | |
### | |
### Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
### or | |
### Set-ExecutionPolicy RemoteSigned | |
### | |
### And then execute the following: |
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
<# | |
Script: "check-restart-windows-service.ps1" | |
Query and restart service as needed. | |
Use task scheduler with this script. | |
Brady M. Shea - 16 Sep 2022 | |
.Setting $ServiceName | |
.Find the service name to monitor by opening a PS command prompt and entering "GET-SERVICE" |
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 | |
## Script to start a cardano "block producing"/"pool" node | |
## https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/start_your_nodes.html | |
## Change "USER" to username needed below | |
# config area: | |
ada_bin_path=/home/USER/.local/bin | |
ada_config_path=/home/USER/.local/etc/cardano-node | |
ada_chain_path=/home/USER/cardano-blocks | |
ada_key_path=${ada_config_path}/keys |
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
#!/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
#!/usr/bin/python | |
# | |
# Collatz Conjecture: | |
# x → x/2 (if x is even) | |
# x → 3x + 1 (if x is odd) | |
import sys, time | |
# Default seed if no arguments given | |
seed = 27 |