Skip to content

Instantly share code, notes, and snippets.

View rowland007's full-sized avatar
🕶️
Working work things

Randy Rowland rowland007

🕶️
Working work things
View GitHub Profile
@rowland007
rowland007 / http.yaml
Created September 8, 2025 17:13 — forked from JigSawFr/http.yaml
Crowdsec Pushover Notification (using API and HTTP notifier)
#########################################################################
# Title: CrowdSec : Pushover Notification (API) #
# Author(s): JigSawFr #
# URL: https://github.com/crowdsecurity/crowdsec #
#########################################################################
# MIT License #
#########################################################################
type: http # Don't change
name: http_default # Must match the registered plugin in the profile
@rowland007
rowland007 / lxc_init.sh
Created September 5, 2025 15:57
Upgrades Proxmox's Debian LXC image to Trixie, updates all packages, and installs Docker and Cloudflared.
#!/bin/bash
# Function to check if the script is running as root
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Please run as root or use sudo."
exit 1
fi
}
@rowland007
rowland007 / create_swap.sh
Last active August 24, 2025 19:10
This script will automate the process of creating a swap file, ensuring that it is run with the necessary permissions and handling user input effectively.
#!/bin/bash
# Ensure the script is run as root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root (use sudo)."
exit 1
fi
# Function to create or resize the swap file
create_swap() {
@rowland007
rowland007 / WinApp_Install.sh
Created August 22, 2025 02:07
This script will setup Docker, download the Windows image, and install the WinApp applications for Ubuntu
#!/bin/bash
# Function to handle errors
handle_error() {
echo "Error: $1"
exit 1
}
# Check if the script is run as root
if [ "$EUID" -ne 0 ]; then
##################################
# WINAPPS CONFIGURATION FILE #
##################################
# INSTRUCTIONS
# - Leading and trailing whitespace are ignored.
# - Empty lines are ignored.
# - Lines starting with '#' are ignored.
# - All characters following a '#' are ignored.
@rowland007
rowland007 / postmortem.md
Created February 9, 2024 01:12 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@rowland007
rowland007 / dvmBrowser.desktop
Created November 11, 2022 00:04
Creates a desktop entry for QubesOS to launch a dvm browser.
[Desktop Entry]
Encoding=UTF-8
Name=BrowserVM
Exec=qvm-open-in-dvm %u
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Network;WebBrowser;
MimeType=x-scheme-handler/unknown;x-scheme-handler/about;text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
@rowland007
rowland007 / mkdocs-install.sh
Created September 13, 2019 06:59
Installs the latest version of python-pip and mkdocs w/ themes
#!/bin/bash -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
# Download the latest version of python-pip
wget https://bootstrap.pypa.io/get-pip.py
# Install pip
@rowland007
rowland007 / .bashrc
Last active July 8, 2025 12:00
Custom bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth
@rowland007
rowland007 / fedora30.conf
Last active July 17, 2019 05:26
Personal initial configuration for Fedora 30
#!/bin/bash -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
cd /home/$USER/
echo "Changing directory to: $(pwd)"
echo "Removing bloatware..."