Skip to content

Instantly share code, notes, and snippets.

View oscar230's full-sized avatar

Oscar Andersson oscar230

View GitHub Profile
@felixwetell
felixwetell / Turning Laravel into a progressive web app - Laravel 8.X.md
Last active May 15, 2023 05:52
Turning Laravel into a progressive web app - Laravel 8.X

Turning Laravel into a progressive web app - Laravel 8.x

Using Laravel 8.x and Mix. Simple guide to make your Laravel app to a progressive web app fast.

Prerequisites

This guide requires that you already have a working Laravel application and have some familiarity working in Laravel applications.

Installation guide

@HCanber
HCanber / README.md
Last active August 21, 2024 16:32
How to run Watchtower on Home Assistant

Background

In November/December 2020 Home Assistant went into a unhealthy state if Watchtower was found on the host.

It doesn't have to be a running container. It's enough to have a docker image on the host with a tag that starts with (or after the last slash, starts with) watchtower.

Supervisor searches for images that matches a few patterns, and if an image matches, the system is marked as unhealthy and you cannot perform any upgrades.

To fix an unhealthy Home Assistant

If the Supervisor logs (Frontend > Supervisor > System) reports that you have containers that are not supported, you need to remove the images from the host.

@mullnerz
mullnerz / archive-website.md
Last active September 23, 2024 10:53
Archiving a website with wget

The command I use to archive a single website

wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P . www.foo.com

Explanation of the parameters used

  • -m (Mirror) Turns on mirror-friendly settings like infinite recursion depth, timestamps, etc.
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active August 5, 2024 13:01
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap