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
# install version for package | |
asdf install <name> <version> | |
# asdf install nodejs 14.15.4 | |
# list installed versions | |
asdf list <name> | |
# list all versions | |
asdf list all <name> |
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
# install the package | |
asdf plugin add <name> | |
# asdf plugin add nodejs | |
# asdf plugin add nodejs | |
# get a list of installed plugins | |
asdf plugin list | |
# update plugin(s) | |
asdf plugin update <name> |
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
# install required dependencies | |
brew install coreutils curl git | |
# install asdf | |
brew install asdf | |
# add it to your shell | |
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.bash_profile | |
# set up bash completions |
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
# We use the latest nodejs@14 image as our base image | |
FROM node:14-alpine | |
# set the default NODE_NEV to production | |
ENV NODE ENV=production | |
# make sure everything happens inside the /app folder | |
WORKDIR/app | |
# now we cache the node_modules layer |
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
const addFavicons = () => { | |
let filtered = Array.prototype.filter.call(document.querySelectorAll('.roam-body a'), a => { | |
return a.hostname && a.hostname !== document.location.hostname; | |
}); | |
Array.prototype.forEach.call(filtered, a => { | |
if (a.text == "*") { | |
a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) right center no-repeat`; | |
a.style.paddingRight = "18px"; | |
} else { | |
a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) left center no-repeat`; |
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
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e | |
// by @levelsio | |
// HOW TO | |
// 1) Make a Google Sheet, we'll pull the first cell e.g. A1 | |
// 2) Publish your Google Sheet, File -> Publish To Web | |
// 3) Copy the SHEET_ID in the URL, put it in here below: | |
const endpoint = "https://spreadsheets.google.com/feeds/cells/SHEET_ID/1/public/full?alt=json" | |
// 4) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188 | |
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc) |
See PR for more detials: meSingh/alfred-makerlog#3