Skip to content

Instantly share code, notes, and snippets.

View treyharris's full-sized avatar

Trey Harris treyharris

View GitHub Profile

Rescue & Recovery

This is some text to take up space.

This file has been truncated, but you can view the full file.
@font-face {
font-family: "Hasklig";
font-style: normal;
font-weight: 200;
src: url(data:font/otf;charset-utf-8;base64,T1RUTwAOAIAAAwBgQkFTRWUeXb0AAdfYAAAARkNGRiBtgKcLAABQGAABh75HREVG2Q3b8QAB2CAAAAKKR1BPU0hY8fMAAdqsAAAWyEdTVULi6LlvAAHxdAAAOOZPUy8ylXjWswAAAVAAAABgU1ZHIIyVbOIAAipcAAAPO2NtYXBxpCBBAAAZ8AAANgZoZWFkByn2cAAAAOwAAAA2aGhlYQKYAJIAAAEkAAAAJGhtdHjpdvVaAAI5mAAADLxtYXhwBl1QAAAAAUgAAAAGbmFtZZU2BMwAAAGwAAAYPnBvc3T/uAAzAABP+AAAACAAAQAAAAIHroj+IrBfDzz1AAMD6AAAAADUqlXCAAAAANSqVcL7rv46Aw8EJAAAAAMAAgAAAAAAAAABAAAD2P7vAAACWPuu/0kDDwABAAAAAAAAAAAAAAAAAAAAAQAAUAAGXQAAAAMCWAEsAAUAAAKKAlgAAABLAooCWAAAAV4AMgEgAAACCwQJAwQDAgIEIAAC9wIAOAMAAAAAAAAAAEFEQk8AAAAg//8C7v8GAAAD2AERYAABnwAAAAAB4AKUAAAAIAAEAAAAgwYqAAEAAAAAAAAAagAAAAEAAAAAAAEADQBqAAEAAAAAAAIABwB3AAEAAAAAAAMAHgB+AAEAAAAAAAQADQBqAAEAAAAAAAUAOQCcAAEAAAAAAAYADQDVAAEAAAAAAAcAYADiAAEAAAAAAAgAGgFCAAEAAAAAAAkAGgFcAAEAAAAAAAsAGQF2AAEAAAAAAA0BkAGPAAEAAAAAAA4AJAMfAAEAAAAAABAABwNDAAEAAAAAABEABQNKAAEAAAAAAQAACANPAAEAAAAAAQEACANXAAEAAAAAAQIADQNfAAEAAAAAAQMACANsA
@font-face {
font-family: "Monoid";
font-style: normal;
font-weight: 400;
src: url(data:font/ttf;charset-utf-8;base64,AAEAAAAQAQAABAAARkZUTXSGrosAAT/sAAAAHEdERUYDLwYcAAEN9AAAADJHUE9TgaomtAABLTgAABK0R1NVQurYy1sAAQ4oAAAfDk9TLzK4AtnCAAABiAAAAGBjbWFwMoADdgAADLQAAAPuY3Z0IAAzA80AABCkAAAABGdhc3D//wADAAEN7AAAAAhnbHlmGXZ59QAAFtgAANgIaGVhZAVL/y8AAAEMAAAANmhoZWEDUQFDAAABRAAAACRobXR485YXsQAAAegAAArMbG9jYXidQPgAABCoAAAGLm1heHADZwDxAAABaAAAACBuYW1l0cqEOAAA7uAAAASJcG9zdB/bYTYAAPNsAAAafwABAAAAAJ64GgAAU18PPPUCCwYAAAAAANOwjAcAAAAA07CMB/VA/lwHjgcQAAAACAAAAAAAAAAAAAEAAAaA/oAAAAQA9UD8cgeOAAEAAAAAAAAAAAAAAAAAAAJQAAEAAAMWAGoABgBUAAYAAgAAAAEAAQAAAEAALgADAAIABAQAASwABAAAA+YEMwAAANcD5gQzAAAC4QBMAY0AAAIAAwMAAAAAAACAAAL/EARQYwAAAAAAAAAAUGZFZACAACDgswaA/oAAAAaAAYAAAACfAAAAAAQABYAAAAAgAAYCMQAzAAAAAAIAAAAEAAAABAABcAQAAQAEAACABAAAYgQAABQEAAAgBAABwAQAASgEAADGBAAAJgQAAEAEAAGABAAAgAQAAYAEAAA9BAAAvQQAAMAEAADABAAAwAQAAIAEAADABAAAwAQAAIAEAACgBAAAoAQAAYAEAAGABAAAwAQAAMAEAAC8BAAA1gQAAEAEAAAnBAAAgAQAAHAEAACABAAAgAQAAIAEAAAwBAAAgAQAAM
electric-pair-mode-map is a variable defined in ‘elec-pair.el’.
Its value is (keymap
(127 menu-item "" electric-pair-delete-pair :filter
#[257 "`Sf\301f\205\f\302!\211@A@\2055\211\2055\303>\2055\211=\2055\304!\2030 \2021\2055\207"
[electric-pair-delete-adjacent-pairs nil electric-pair-syntax-info
(40 34 36)
functionp]
8 "\n\n(fn CMD)"]))
#!/bin/zsh
# THIS version doesn't work the first time as an autoloaded
# function without the invoking line (as you'd need if this
# were a script--and yes, it does work as a script)
function tmux-keysearch () {
{
tmux list-keys | pcregrep -i 'prefix\s*(C-)?'$@'(?=\s)'
}
}
# Without the following line, the FIRST time this is invoked via
@treyharris
treyharris / xzx
Last active March 28, 2019 00:17
# -*-shell-script-*-
## Convenience function for restarting this shell
if [[ -o login ]]; then
exec zsh -l
else
exec zsh
fi
# (c) Zygmunt Krynicki 2007,
# Licensed under GPL, see COPYING for the whole text
#
# This script will look-up command in the database and suggest
# installation of packages available from the repository
if [[ -x /usr/lib/command-not-found ]] ; then
if (( ! ${+functions[command_not_found_handler]} )) ; then
function command_not_found_handler {
[[ -x /usr/lib/command-not-found ]] || return 1
# -*-shell-script-*-
# Get zshoptions manpage, advanced to definition of the option. This
# is made more interesting because underscores within option names are
# optional. So to be on the safe side, we stick "_?" between each
# character.
#
# The expansion ${(j:_?:)${(s//)1}} works like this, reading
# right-to-left:
#
# 1. We take the arg $1
# bash completion for hugo -*- shell-script -*-
## DEBUG LINES
echoerr "$(date) of hugo-completion"
echo "$(date): beginning sourcing of hugo-completion" >> /tmp/activity_log
## END DEBUG LINES
__hugo_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
@treyharris
treyharris / output.console
Created April 8, 2019 19:38
What is PowerShell doing here?
PS C:\WINDOWS\system32> Get-ItemProperty --path 'HKCU:\Software\Microsoft\Windows\'
Get-ItemProperty : Cannot find path 'C:\WINDOWS\system32\--path' because it does not exist.
At line:1 char:1
+ Get-ItemProperty --path 'HKCU:\Software\Microsoft\Windows\'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\WINDOWS\system32\--path:String) [Get-ItemProperty], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
PS C:\WINDOWS\system32>