Skip to content

Instantly share code, notes, and snippets.

@reavon
reavon / rpi-installation-01-osx.md
Created November 24, 2023 17:03 — forked from tomysmile/rpi-installation-01-osx.md
Raspberry Pi Installation using Mac OSX

Raspberry Pi Installation using Mac OSX

Installing Raspbian

First we need to download raspbian, you can grab the latest version at https://www.raspberrypi.org/downloads/

Direct url: http://downloads.raspberrypi.org/raspbian_latest

Now we need unzip the file: 2016-02-06-raspbian-jessie.zip: unzip 2016-02-06-raspbian-jessie.zip

@reavon
reavon / README.md
Last active October 6, 2023 15:24 — forked from SimonSimCity/brew-update-notifier.sh
homebrew update notifier

launchd

First, open a Mac Terminal window, then cd to this directory:

$HOME/Library/LaunchAgents

When I dug around in the Apple documentation, I found there are three main directories you can use with launchd, and that's how I learned about this directory. Here are your three options:

@reavon
reavon / README.md
Created October 3, 2023 18:48 — forked from gitjonez/README.md
Function to set AWS_ temporary token variables with MFA code

awsmfa

A [ba|z]sh function to fetch temporary access credentials for awscli

Inspired by this 'ogavrisevs' gist

Requires

  • awscli (and configured config, credentials files)
  • Working AWS account MFA and the device ARN
  • awk
@reavon
reavon / 01-generate-ed25519-ssh-key.sh
Created October 1, 2023 21:27 — forked from grenade/01-generate-ed25519-ssh-key.sh
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
eval "$(ssh-agent -s)"
@reavon
reavon / git-branching-diagram.md
Last active September 24, 2023 15:38 — forked from bryanbraun/git-branching-diagram.md
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/reavon/04b3c5abe018e2442818821011a05b2f/raw/4dffd45073292403459091fb4390286f2a25f4b0/template-data.xml
  4. Customize as needed for your team.

@reavon
reavon / install.sh
Created March 10, 2022 14:21 — forked from PAGuardado/install.sh
Hyper-V Enhanced Session Mode for Pop!_OS 20.04LTS
#!/bin/bash
#
# This script is for Pop!_OS 20.04LTS to download and install XRDP+XORGXRDP via source.
#
# based on the following scripts:
# https://github.com/microsoft/linux-vm-tools/tree/master/ubuntu/18.04
# https://github.com/microsoft/linux-vm-tools/pull/106
# https://gist.github.com/phillipsj/a4b6e4a1070b4320ed19e061fe2dd83d
# https://gist.github.com/kaitwalla/9fbcef47c5ff2b58cd353ba3744be4e5
@reavon
reavon / GitHub Flavored Asciidoc (GFA).adoc
Created March 9, 2022 20:03 — forked from dcode/GitHub Flavored Asciidoc (GFA).adoc
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

#!/usr/bin/env bash
set -eu
for file in "$@"; do
failed=0
dir=$(dirname ${file})
if ! cmp -s <(terraform-docs md ${dir}) "${dir}/README.md"; then
echo "Need to update Terraform docs for: "
echo "${dir}"
echo "Run: terraform-docs md ${dir} > ${dir}/README.md"
@reavon
reavon / user-data.yml
Last active April 10, 2023 04:27 — forked from tlhakhan/user-data.yml
Ubuntu 20.04 example autoinstall user-data file
#cloud-config
autoinstall:
version: 1
early-commands:
- systemctl stop ssh # otherwise packer tries to connect and exceed max attempts
network:
network:
version: 2
ethernets:
eth0:
/*
Adapted from https://github.com/sindresorhus/github-markdown-css
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights