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 / 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..."

Global configuration

git config --global user.name "Randy Rowland"
git config --global user.email [email protected]
git config --global user.signingkey E80A8931C1245241F2BE03D6F32E17D74D6DE172
git config --global commit.gpgsign true

Git Message Template

@rowland007
rowland007 / UpstreamRepos.md
Created April 19, 2019 09:47
Describes how to add an upstream remote repo to your forked/cloned repo to get the latest updates.

Keep a Downstream git Repository Current with Upstream Repository Changes

A downstream repository (aka a “fork”) maintainer commonly needs to stay current with upstream work (aka "original"). The case is development continues on the upstream repo while you work on your own origin fork. You want to fetch the upstream changes and apply them to your origin so you don't make conflicts.

image cannot be displayed

The following steps allow you to achieve this on the command line in a local git repository.

Add the Remote Upstream Repository

@rowland007
rowland007 / MergeVsRebase.md
Created April 19, 2019 09:45
Describes the differences between git merge and git rebase and when you should use them.

In our project’s Git repository, two branches currently exist: the usual master branch, and a feature branch that we created right after the initial commit. On the master branch, we have italicized the ‘a’, then bolded the ‘a’. On our feature branch, we have italicized the ‘b’, and then bolded the ‘b’.

image

Merge

By merging feature into master, master obtains a new commit — a “merge commit”.

image