Skip to content

Instantly share code, notes, and snippets.

View karlredman's full-sized avatar

Karl N. Redman karlredman

View GitHub Profile
@karlredman
karlredman / surfingkeys.js
Last active February 6, 2020 09:15
my surfingkeys.js (google chrome surfingkeys extension configuration)
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
// map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
@karlredman
karlredman / dot.gitattributes
Last active July 16, 2022 21:09
Generic .gitattributes for github linguistics
## nuklear option
#* linguist-vendored
## languag usage
*.c linguist-language=c
*.cc linguist-language=cpp
*.C linguist-language=cpp
## Standard documentation
AUTHORS linguist-documentation
COPYING linguist-documentation
ChangeLog linguist-documentation
@karlredman
karlredman / my_autotools_init.sh
Last active January 2, 2020 22:42
quicky script so I can remember the autotools support file regen
#this is a convenience script
#execute this from the project root directory
#
aclocal -I ./
autoconf
autoheader
automake -a --include-deps
touch NEWS README AUTHORS ChangeLog
automake -a --include-deps
@karlredman
karlredman / minio-through-caddy.md
Last active January 26, 2024 15:11
# Serve static pages from minio through caddy
@karlredman
karlredman / joplin-keymap.json
Last active September 2, 2023 04:51
vim-sh keymap.json for Joplin Terminal Application (CLI)
[
{ "keys": [":"], "type": "function", "command": "enter_command_line_mode" },
{ "keys": ["q"], "type": "prompt", "command": "exit", "cursorPosition": -1 },
{ "keys": ["/"], "type": "prompt", "command": "search \"\"", "cursorPosition": -2 },
{ "keys": ["TAB","l"], "type": "function", "command": "focus_next" },
{ "keys": ["SHIFT_TAB","h"], "type": "function", "command": "focus_previous" },
{ "keys": ["UP","k"], "type": "function", "command": "move_up" },
{ "keys": ["DOWN","j"], "type": "function", "command": "move_down" },
{ "keys": ["PAGE_UP","K","u"], "type": "function", "command": "page_up" },