Skip to content

Instantly share code, notes, and snippets.

View mrysav's full-sized avatar

Mitchell Rysavy mrysav

View GitHub Profile
flowchart LR
    A([fa:fa-user Lab Administrator])
    B([fa:fa-user Lab Technician])
    C([fa:fa-user Lab Administrator])
    D([fa:fa-user Lab Technician])
    E[(BLIS @ Remote Lab)]
    I[(BLIS @ Remote Lab)]
    F[(BLIS @ Cloud)]
 A--Uses-->E
sudo apt install cabal-install
cabal update
git clone https://github.com/Zigazou/NecControl
cd NecControl/
cabal build --allow-newer
ln -s "$(find . -type f -name 'neccontrol')" neccontrol
./neccontrol
@mrysav
mrysav / profile.ps1
Created September 11, 2024 21:16
PowerShell profile
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/material.omp.json" | Invoke-Expression
Register-ArgumentCompleter -Native -CommandName az -ScriptBlock {
param($commandName, $wordToComplete, $cursorPosition)
$completion_file = New-TemporaryFile
$env:ARGCOMPLETE_USE_TEMPFILES = 1
$env:_ARGCOMPLETE_STDOUT_FILENAME = $completion_file
$env:COMP_LINE = $wordToComplete
$env:COMP_POINT = $cursorPosition
$env:_ARGCOMPLETE = 1
@mrysav
mrysav / keybase.md
Last active November 30, 2025 14:48

Keybase proof

I hereby claim:

  • I am mrysav on github.
  • I am mrysav (https://keybase.io/mrysav) on keybase.
  • I have a public key whose fingerprint is 3B4D 0CC1 8CEC 4A17 523E DD46 619D A262 4ED7 F150

To claim this, I am signing this object:

@mrysav
mrysav / restic-backup.sh
Created February 11, 2020 14:27
Restic Backup Script
#!/bin/bash
# not needed if using packaged version
restic self-update
# Assumes you have RESTIC_REPOSITORY and RESTIC_PASSWORD_COMMAND set
# Refresh credentials here, if applicable
# Bail if restic is already running, maybe previous run didn't finish
@mrysav
mrysav / init_sys_v1.sh
Created June 13, 2019 14:37
init_sys_v1.sh
#!/usr/bin/env bash
# Colors
GRN='\033[1;32m'
NC='\033[0m'
echo -e "${GRN}Installing prerequisites...${NC}"
echo "rbenv: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment"
@mrysav
mrysav / speak.rb
Last active March 2, 2019 05:59
Generating Markov sentences from character dialog
# frozen_string_literal: true
require 'rubygems'
require 'bundler/setup'
require 'markovite'
# from_book: the filename (ending in .txt) of the Freddy book to read in
# character: the character's name to find dialog for (ie. Charles or Freddy)
def get_dialog(from_book, character)
# read the entire contents of the given file (book) into memory
@mrysav
mrysav / practice.js
Created May 1, 2018 20:44
Practice with random numbers
'use strict';
// This practice exercise will cover:
// - For loops: For loops are useful when you know you want to run through a bit of code a fixed number of times.
// There are three parts to declare: the variable, the conditional, and the incrementer.
// They look like this:
// for (let i = 0; i < 5; i = i + 1) {
// ...your code here...
// }
//
@mrysav
mrysav / openrct2-macos-quick.md
Last active December 29, 2017 00:28
OpenRCT2 macOS Quick Installation Guide

Who is this guide for?

This guide is for people who have a Mac and just want a quick way to get the game files for OpenRCT2 and play the game.

If you compiled the game yourself, have Linux, or you know your way around a terminal and just want to know what to do, take a look at the Installation on Linux and macOS guide.

Downloading OpenRCT2

  1. Download OpenRCT2 from the main Downloads page.
  2. Unzip the downloaded file and drag OpenRCT2.app to your Applications folder.
@mrysav
mrysav / appmanifest_285310.acf
Last active December 19, 2017 01:53
RCT1+2 App Manifest for Steam
"AppState"
{
"AppID" "285310"
"Universe" "1"
"installdir" "RCT1"
"StateFlags" "1026"
}