Skip to content

Instantly share code, notes, and snippets.

View ryanpcmcquen's full-sized avatar

Ryan McQuen ryanpcmcquen

View GitHub Profile
@ryanpcmcquen
ryanpcmcquen / bwpass
Created March 10, 2020 23:32
Get passwords using the Bitwarden CLI.
#!/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)
else
PASS=$(bw get item "${1}" | jq --join-output --raw-output .login.password)
fi
echo ${PASS}
echo ${PASS} | pbcopy
@ryanpcmcquen
ryanpcmcquen / nmcli_example.md
Created February 21, 2020 21:31
Example nmcli commands.

This will connect to SSID and prompt for the password.

nmcli dev wifi connect SSID --ask
@ryanpcmcquen
ryanpcmcquen / 3.json
Last active September 22, 2021 16:35
Keyboardio Model 01 layers
{
"keymap": [
{
"keyCode": 65535,
"label": "",
"verbose": "Transparent"
},
{
"keyCode": 30,
"label": "1"
window.setInterval(() => {
;[
...document.querySelectorAll(
'button.settings-button.warning-button.client-disconnect'
)
]
.pop()
.click()
window.setTimeout(() => document.querySelector('#submit-btn').click(), 300)
}, 600)
@ryanpcmcquen
ryanpcmcquen / .gitconfig
Last active December 3, 2023 09:44
McWidnwos
[user]
email = rpcm@linux.com
name = Ryan McQuen
[core]
autocrlf = false
eol = lf
editor = subl -w
[pull]
rebase = false
@ryanpcmcquen
ryanpcmcquen / config.fish
Last active July 24, 2020 00:09
The McQuen fish prompt.
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
set -gx NODE_EXTRA_CA_CERTS '/usr/local/etc/openssl/cert.pem'
set -U EDITOR subl -w
set -U VISUAL subl -w
source "$HOME/.config/fish/secrets.fish"
set -gx ENGAGE_IMGATCH_SERVICE false
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
@ryanpcmcquen
ryanpcmcquen / McQuen.el
Last active July 23, 2020 16:29
Emacs Prelude customizations.
;; (add-hook 'prelude-prog-mode-hook (lambda () (smartparens-mode -1)) t)
(set-face-attribute 'default nil :height 150)
@ryanpcmcquen
ryanpcmcquen / HOW_DO_I_DO_IT.md
Created May 10, 2019 23:13
Disable `smartparens` on Emacs Prelude.

Add this to ~/.emacs.d/personal/custom.el (or some other file in ~/.emacs.d/personal/):

(add-hook 'prelude-prog-mode-hook (lambda () (smartparens-mode -1)) t)
@ryanpcmcquen
ryanpcmcquen / typewriter.css
Last active October 4, 2023 18:57
Old school typing with new school code.
.input {
display: none;
}
.output {
display: flex;
align-items: center;
justify-content: center;
color: #000000;
font-family: monospace;