Skip to content

Instantly share code, notes, and snippets.


Ryan McQuen ryanpcmcquen

View GitHub Profile
ryanpcmcquen / DEFAULT__state.xml
Last active Feb 20, 2022
Audient EVO 8 state
View DEFAULT__state.xml
<?xml version="1.0" encoding="UTF-8"?>
<preset company="audient ltd" product="evo 8" schema-version="0.1.0"
<mixer artistMixEnabled="0">
<input channel="0" mode="0" name="MIC 1" cut="0">
<mix index="0" volume="-128.00" pan="0.50"/>
<mix index="1" volume="-128.00" pan="0.50"/>
ryanpcmcquen / index.html
Created Jun 11, 2021
Get all CSS colors as a HashMap directly from W3.
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="script.js"></script>
ryanpcmcquen / config
Created May 12, 2021
Obsidian config
View config
View .jsbeautifyrc
"end_with_newline": true,
"eol": "\n",
"indent_size": 2,
"indent_with_tabs": false
ryanpcmcquen / # emscripten - 2020-10-16_16-33-47.txt
Created Oct 20, 2020
emscripten on macOS 10.15.7 - Homebrew build logs
View # emscripten - 2020-10-16_16-33-47.txt
Homebrew build logs for emscripten on macOS 10.15.7
Build date: 2020-10-16 16:33:47
ryanpcmcquen / init.lua
Last active Dec 28, 2021
Hammerspoon config!
View init.lua
-- Globals
-- This controls all window animations.
hs.window.animationDuration = 0
-- Window Layouts
// In this module, you'll learn some of unique advantages that iterators can offer.
// Step 1. Complete the `capitalize_first` function to pass the first two cases.
// Step 2. Apply the `capitalize_first` function to a vector of strings.
// Ensure that it returns a vector of strings as well.
// Step 3. Apply the `capitalize_first` function again to a list.
// Try to ensure it returns a single string.
// As always, there are hints if you execute `rustlings hint iterators2`!
ryanpcmcquen /
Created Jul 17, 2020
Create an array with sequentially incremented items.
let mut a = [0; 900];
for (index, element) in a.iter_mut().enumerate() {
*element = index;
println!("{} {} {}", a[23], a[700], a[1]);
ryanpcmcquen / bwpass
Created Mar 10, 2020
Get passwords using the Bitwarden CLI.
View bwpass
#!/usr/bin/env bash
if [ "`echo ${1} | grep -i mongo`" ]; then
PASS=$(bw get item "${1}" | jq --join-output --raw-output .login.password | jq --slurp --raw-input '@uri' --raw-output)
PASS=$(bw get item "${1}" | jq --join-output --raw-output .login.password)
echo ${PASS}
echo ${PASS} | pbcopy
ryanpcmcquen /
Created Feb 21, 2020
Example nmcli commands.

This will connect to SSID and prompt for the password.

nmcli dev wifi connect SSID --ask