Skip to content

Instantly share code, notes, and snippets.

View rowland007's full-sized avatar
📚
Working on school work

Randy Rowland rowland007

📚
Working on school work
View GitHub Profile
@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
Created August 3, 2019 00:16
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 randy.rowland@disroot.org
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

@rowland007
rowland007 / GitFlow.md
Created April 19, 2019 09:43
Describes how you should use git flow and branching to manage repositories

Git Flow & Branching

The Main Branches

At the core, the development model is greatly inspired by existing models out there. The central repo holds two main branches with an infinite lifetime:

  • master
  • develop
@rowland007
rowland007 / syncthing.desktop
Created February 3, 2019 00:51
Start Syncthing automatically upon login
[Desktop Entry]
Type=Application
Exec=/usr/bin/syncthing -no-browser
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Syncthing
Name=Syncthing
# Place this file in ~/.config/autostart/ to have syncthing begin as soon as $USER logs in