Slack, please for the love of God stop ingesting my gists as snippets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// my-module.js | |
function privateFunc () { | |
console.log("Some convoluted logic.") | |
return 1 + 2 | |
} | |
export default function () { | |
console.log("Hey! I'm the public interface for this module") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"file_exclude_patterns": [ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", | |
"*.o", | |
"*.a", | |
"*.lib", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.unstage 'reset HEAD --' | |
git config --global alias.last 'log -1 HEAD' | |
git config --global push.default current |
Markdown processing using MarkdownIt
- relative image URLs get prepended with CDN domain
- other relative URLs get prepended with domain
- non-relative URLs have
target
attr set to_blank
Nice-to-have: set non-relative URLs rel
attribute noopener
const md = MarkdownIt({
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kmonad config for Das Mac keyboard - https://www.daskeyboard.com/daskeyboard-4-professional-for-mac/ | |
INPUT = LINUX_DEVICE L64 /dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd | |
OUTPUT = UINPUT_SINK | |
// Source codes | |
SRC | |
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 | |
grv 1 2 3 4 5 6 7 8 9 0 - = bspc home pgup numlock kpslash kpasterisk kpminus | |
tab q w e r t y u i o p [ ] \ del end pgdn kp7 kp8 kp9 kpplus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const got = require('got') | |
main() | |
async function main() { | |
const url = 'https://read.audioarchitect.co/feed/podcast' | |
try { | |
console.log('getting: ', url) | |
const res = await got(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import re | |
# | |
# Allows user to approve sudo commands with TouchID and Apple Watch. | |
# This script adds the following line to /etc/pam.d/sudo: | |
# | |
# auth sufficient pam_tid.so | |
# |
OlderNewer