I hereby claim:
- I am roc on github.
- I am roc (https://keybase.io/roc) on keybase.
- I have a public key ASCkyrSbv1rqF_YJnNrhTdjroclEjMsNS6lbe8ifCPPE3go
To claim this, I am signing this object:
# print the current version of deno in prompt | |
function prompt_my_deno_version() { | |
local vers=`deno -V` | |
p10k segment -b '#0F467A' -f 'white' -i '🦕' -t ${vers//"deno "/""} | |
} | |
# ... | |
# Customise the Powerlevel9k prompts | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( |
# GLOBAL CONFIGURATIONS | |
# ------------------------------------------------------------------- | |
# See https://github.com/jigish/slate/wiki/Global-Configs | |
config defaultToCurrentScreen true | |
config secondsBeforeRepeat 0.4 | |
config secondsBetweenRepeat 0.1 | |
config keyboardLayout "qwerty" | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize |
// async fs directory listing | |
// https://nodejs.org/api/fs.html#fs_fs_promises_api | |
const fs = require('fs').promises; | |
const bytes = require('bytes'); | |
const relativeDate = require('tiny-relative-date'); | |
const getHumanReadable = stats => { | |
// filesize | |
// date modified |
// mercilessly culled from npm-promisify | |
const alreadyAPromise = o => o && typeof o.then === "function" && typeof o.catch === "function"; | |
// As simple as I can get it: | |
// wrap a function, apply a callback | |
// return the callback response in Promise.resolve | |
// | |
// NB. This doesn't handle node style err first | |
// callbacks with a rejection, but you could... |
I hereby claim:
To claim this, I am signing this object:
cal | GREP_COLOR='1;32' grep -w -A4 -B6 --color "$(date +%e)"
Alias with
alias today="cal | GREP_COLOR='1;32' grep -w -A4 -B6 --color "$(date +%e)"
# or add to .aliases file
(echo ""; echo alias cal | GREP_COLOR='1;32' grep -w -A4 -B6 --color "$(date +%e)"') >> ~/.aliases
RIP Onload - Finding a better measurement yardstick | |
--------------------------------------------------- | |
(Soasta) | |
- Buddy Brewer | |
- Philip Tellis | |
# GLOBAL CONFIGURATIONS | |
# ------------------------------------------------------------------- | |
# See https://github.com/jigish/slate/wiki/Global-Configs | |
config defaultToCurrentScreen true | |
config secondsBeforeRepeat 0.4 | |
config secondsBetweenRepeat 0.1 | |
config keyboardLayout "qwerty" | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize |
:w !sudo tee % |