Skip to content

Instantly share code, notes, and snippets.

View Morgbn's full-sized avatar
🏠
Working from home

Morgän Morgbn

🏠
Working from home
View GitHub Profile
@Morgbn
Morgbn / #semantic-release-github-workflow.md
Last active February 17, 2023 10:42
Auto npm release with semantic-release & github workflow
@Morgbn
Morgbn / steps.sh
Last active May 11, 2022 17:05
Install the last version of OctoPrint on Onion Omega2 (Openwrt) 🏗️
# 1) Expand Omega storage with SD card
# see: https://docs.onion.io/omega2-docs/boot-from-external-storage.html
# 2) Extend the Omega’s Available Memory (swap)
dd if=/dev/zero of=/swap.page bs=1M count=512
chmod 0600 /swap.page
mkswap /swap.page
swapon /swap.page
# check that the Swap row is populated:
free
@Morgbn
Morgbn / Dockerfile
Last active September 23, 2021 10:08
Fast (leverages the build cache) Nuxt.js Dockerfile with timezone + .dockerignore
FROM node:12.18.3-alpine
ARG TZ='Europe/Paris'
ENV TZ ${TZ}
# Installs
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk upgrade -U -a \
&& apk add \