Skip to content

Instantly share code, notes, and snippets.

View natterstefan's full-sized avatar
🟨
getting things done 💪🏻

Stefan Natter natterstefan

🟨
getting things done 💪🏻
View GitHub Profile
@natterstefan
natterstefan / asdf-version.sh
Created March 7, 2021 06:59
asdf | Install version
# 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>
@natterstefan
natterstefan / asdf-plugin.sh
Last active March 7, 2021 06:58
asdf | Install Plugin
# 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>
@natterstefan
natterstefan / asdf-install.sh
Created March 7, 2021 06:56
asdf | How to install
# 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
@natterstefan
natterstefan / Dockerfile
Last active February 3, 2021 12:38
Docker | Simple NodeJS Dockerfile
# 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
@natterstefan
natterstefan / README.md
Last active May 7, 2021 07:23
Visual Studio Code Setting | Semantic Token Color Customisation

Visual Studio Code Setting | Semantic Token Color Customisation

visitors

Example

image

Related Tweets

@natterstefan
natterstefan / add_favicons.js
Created December 8, 2020 17:48 — forked from ottsch/add_favicons.js
Add favicon to links
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`;
// 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)
@natterstefan
natterstefan / README.md
Last active December 13, 2023 08:06
NODE | macOS fix node-gyp

Research | macOS fix node-gyp

visitors

Node

Update asdf

asdf plugin-update --all
@natterstefan
natterstefan / README.md
Created October 2, 2020 17:33
Automatically resize apps for Streaming

Automatically resize apps for Streaming

Automatically resizes Chrome and VS Studio code to 1920x1080 for my 49-inch (5120 x 1440) monitor.