This file contains hidden or 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
| #!/usr/bin/env zsh | |
| function md-to-pdf() { | |
| -md-to "$1" pdf | |
| } | |
| function md-to-html() { | |
| -md-to "$1" html | |
| } |
This file contains hidden or 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
| version: "3" | |
| set: [ pipefail ] | |
| tasks: | |
| connect-smartphone: | |
| interactive: true | |
| silent: true | |
| preconditions: | |
| - command -v sudo | |
| - command -v gum |
This file contains hidden or 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
| :root { | |
| font-family: sans-serif; | |
| line-height: 1; | |
| font-weight: 400; | |
| overflow-wrap: break-word; | |
| word-break: break-word; | |
| font-synthesis: none; | |
| text-rendering: geometricPrecision; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; |
This file contains hidden or 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
| function rgo() { | |
| local input="rg --column --line-number --no-heading --color=always --smart-case --" | |
| : | fzf --ansi --disabled --query "${*:-}" \ | |
| --bind "start:reload:$input {q}" \ | |
| --bind "change:reload:sleep 0.1; $input {q} || true" \ | |
| --delimiter : \ | |
| --preview 'bat --color=always {1} --highlight-line {2}' \ | |
| --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' \ | |
| --bind "enter:become($VISUAL {1})" | |
| } |
This file contains hidden or 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
| function kill-port() { | |
| ss --numeric --tcp --listening --processes --resolve --no-header --no-queues --oneline \ | |
| | grep "pid=" \ | |
| | sd '^\w+ +(?P<HOST>[^:]+):(?P<PORT>\d+) [^"]+"(?P<NAME>[^"]+)",pid=(?P<PID>\d+).*\n?' '$NAME: $HOST:$PORT [$PID]\n' \ | |
| | fzf --prompt="Select to kill: " \ | |
| | sd '[^\[]+\[(\d+)\]' '$1 ' \ | |
| | xargs --no-run-if-empty kill -15 | |
| } |
This file contains hidden or 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
| // ==UserScript== | |
| // @name JIRA Board Epic Filter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Helper functions to only see one epic at a time on the board | |
| // @author cartok | |
| // @match https://*.atlassian.net/*/boards/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net | |
| // @grant none | |
| // @license MIT |