Skip to content

Instantly share code, notes, and snippets.

Ryan McQuen ryanpcmcquen

View GitHub Profile
@ryanpcmcquen
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)
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 Feb 21, 2020
Example nmcli commands.
View nmcli_example.md

This will connect to SSID and prompt for the password.

nmcli dev wifi connect SSID --ask
@ryanpcmcquen
ryanpcmcquen / 3.json
Created Oct 7, 2019
Keyboardio Model 01 layers
View 3.json
{
"keymap": [
{
"keyCode": 65535,
"label": "",
"verbose": "Transparent"
},
{
"keyCode": 30,
"label": "1"
View clear_out_firefox_devices.js
window.setInterval(() => {
;[
...document.querySelectorAll(
'button.settings-button.warning-button.client-disconnect'
)
]
.pop()
.click()
window.setTimeout(() => document.querySelector('#submit-btn').click(), 300)
}, 600)
View .gitconfig
[user]
email = rpcm@linux.com
name = Ryan McQuen
[core]
autocrlf = false
eol = lf
@ryanpcmcquen
ryanpcmcquen / config.fish
Last active Apr 8, 2020
The McQuen fish prompt.
View config.fish
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
View UNDO_CTRL_AND_CAPS_LOCK_SWAP.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
@ryanpcmcquen
ryanpcmcquen / McQuen.el
Created May 10, 2019
Emacs Prelude customizations.
View McQuen.el
(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
Disable `smartparens` on Emacs Prelude.
View HOW_DO_I_DO_IT.md

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 May 10, 2019
Old school typing with new school code.
View typewriter.css
.input {
display: none;
}
.output {
display: flex;
align-items: center;
justify-content: center;
color: #000000;
font-family: monospace;
You can’t perform that action at this time.