Skip to content

Instantly share code, notes, and snippets.

111A5AB1 / gnome-keyring-daemon.adoc
Created Mar 11, 2022
gnome-keyring-daemon SSH issue with resident keys on a YubiKey
View gnome-keyring-daemon.adoc

sign_and_send_pubkey: signing failed for ED25519-SK


When attempting to SSH with a ed25519-sk resident key if you get the following error:

sign_and_send_pubkey: signing failed for ED25519-SK "" from agent: agent refused operation
111A5AB1 /
Last active Dec 2, 2019
One liner to create an AWS CLI "credentials" file from a downloaded accessKeys.csv
while IFS=, read -r id secret; do echo -e "[default]\naws_access_key_id = $id\naws_secret_access_key = $secret" > credentials; done <<< $(tail -n1 accessKeys.csv)
111A5AB1 / github-create-repo
Last active Jul 4, 2019
Create Github repo via command-line
View github-create-repo
#!/usr/bin/env bash
set -e
# Define GitHub repository details
readonly USER="111A5AB1"
readonly REPOSITORY_NAME="terraform-gitlab-repos"
111A5AB1 / i3-trackpad-notes
Created Jun 15, 2019
Macbook Pro trackpad configuration on i3 via xinput/libinput
View i3-trackpad-notes
# List all the input devices
xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Broadcom Corp. Bluetooth USB Host Controller id=11 [slave pointer (2)]
⎜ ↳ bcm5974 id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
111A5AB1 / install_vmware_workstation
Last active Jun 14, 2019
Script for installing VMware Workstation Pro for Linux on Ubuntu 19.04
View install_vmware_workstation
# Download and install VMware Workstation Pro for Linux
set -e
export PATH='/usr/bin'
readonly DOWNLOAD_URL=''
111A5AB1 /
Last active Jun 29, 2019
tmux cheatsheet
111A5AB1 /
Last active Apr 4, 2018
git command-line cheatsheet

View changes between HEAD and previous commit:

git diff HEAD^ HEAD

View changes between HEAD and <commit_id>:

git diff 0232ea938e607942e3e477e4a72e5e7fbf3dc496 HEAD
111A5AB1 /
Last active Feb 3, 2018
Query latest Ubiquiti USG firmware from command-line (depends: curl + jq)
# Will output the latest firmware version and download URL for the Ubuqiti USG
# Depends on curl ( and jq (
curl -s '' -H 'x-requested-with: XMLHttpRequest' | ./jq-osx-amd64 -c '[ .downloads[] | select(.category__slug=="firmware")] | max_by(.version) | {Version: .version, File: @text "\(.file_path)" }'
111A5AB1 / edgeos_cli_mss_wireguard
Last active Dec 2, 2021
EdgeOS CLI: TCP MSS clamping to resolve PMTUD black holes (RFC2923) when using Wireguard
View edgeos_cli_mss_wireguard
set firewall options mss-clamp interface-type all
set firewall options mss-clamp mss 1380
set firewall options mss-clamp6 interface-type all
set firewall options mss-clamp6 mss 1360
111A5AB1 / EdgeOS_node.def
Created Jan 17, 2018
To view what an EdgeOS option does, such as "firewall all-ping enable", cat the coresponding node.def file.
View EdgeOS_node.def
root@ubnt:~# cd /opt/vyatta/share/vyatta-cfg/templates/firewall/all-ping
root@ubnt:/opt/vyatta/share/vyatta-cfg/templates/firewall/all-ping# cat node.def
# icmp_echo_ignore_all
# default value - 0
# If set non-zero, then kernel will ignore all ICMP ECHO requests sent to it
type: txt
help: Policy for handling of all IPv4 ICMP echo requests