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
yarnlinks() { | |
bold() { | |
echo -e "\033[1m$1\033[0m" | |
} | |
italic() { | |
echo -e "\033[3m$1\033[0m" | |
} | |
italic "looking for links in ~/.config/yarn/link ..." | |
LINKS=$(find ~/.config/yarn/link -type l -ls | awk '{print $11 "," $13}') |
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 HN accessibility patch | |
// @version 1.0.0 | |
// @namespace https://gist.github.com/chadlavi/38caf8b4ed7dcae3c4b5d5caff2ff3e7 | |
// @author Chad Lavimoniere | |
// @grant none | |
// @include https://news.ycombinator.com/* | |
// @downloadURL https://gist.github.com/chadlavi/38caf8b4ed7dcae3c4b5d5caff2ff3e7/raw/hn.user.js | |
// @updateURL https://gist.github.com/chadlavi/38caf8b4ed7dcae3c4b5d5caff2ff3e7/raw/hn.user.js | |
// ==/UserScript== |
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
#!/bin/bash | |
# In this script, the library I maintain for work, "@casecommons/cbp-undercase" | |
# is used. I'll abstract it out in a future version of this so that the syntax | |
# is more like "combine-imports.sh [file] [library name] | |
imports=$(cat $1 | grep '@casecommons/cbp-undercase' | wc -l) | |
if [[ $imports -le 1 ]]; then | |
# next line commented out for scripted use | |
# echo "$1: no imports to combine." |
This is a running list of the use cases that come up in my everyday life that I wish Google Assistant (either on my phone or on a Google Home device) could handle.
"Hey Google, run routine Cleaning Time every Sunday at 11am"
"Hey Google, run routine [something] every time I get home"
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 6dot accessibility patch | |
// @version 4.0.6 | |
// @namespace https://gist.github.com/chadlavi/1c57c8568a0ff295668b80a366f10a0d | |
// @author Chad Lavimoniere | |
// @grant none | |
// @include http*://6.*.org/* | |
// @downloadURL https://gist.github.com/chadlavi/1c57c8568a0ff295668b80a366f10a0d/raw/fp6.user.js | |
// @updateURL https://gist.github.com/chadlavi/1c57c8568a0ff295668b80a366f10a0d/raw/fp6.user.js | |
// ==/UserScript== |
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
Show hidden characters
{ | |
"color_scheme": "Packages/Monokai Dark/Monokai Dark.tmTheme", | |
"drag_text": false, | |
"font_size": 12, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": |
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 spotify embedder | |
// @version 1 | |
// @namespace https://gist.github.com/chadlavi/eba2e3420fb9c1a6a891f8ed2c29e2ae | |
// @downloadURL https://gist.github.com/chadlavi/eba2e3420fb9c1a6a891f8ed2c29e2ae/raw/spotify-embed.user.js | |
// @updateURL https://gist.github.com/chadlavi/eba2e3420fb9c1a6a891f8ed2c29e2ae/raw/spotify-embed.user.js | |
// @description embed spotify player when a url is present | |
// @author Chad Lavimoniere | |
// @exclude http*://*youtube.com* | |
// @exclude http*://*facebook.com* |
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
#!/bin/sh | |
mkdir -p example_images/landscape | |
mkdir -p example_images/portrait | |
loop=0 | |
iterations=50 | |
while [ $loop -lt $iterations ]; do | |
x=$(( $RANDOM % 950 + 50 )) |
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
note () { | |
local note="$HOME/notes.md" | |
if [ ! -z "$1" ] | |
then | |
gdate +###\ %Y-%m-%d\ %H:%M >> $note | |
echo "$@" >> $note | |
echo "" >> $note | |
else | |
vim + -c ':r! gdate +\#\#\#\ \%Y-\%m-\%d\ \%H:\%M && echo' +star $note | |
fi |