- Get root:
ssh pi-k3s-master.local -t sudo su - Find your disk via
fdisk -l(e.g. /dev/sda1) - Erase drive by repartitioning:
mkfs.ext4 /dev/sda1 - Mount drive:
mkdir /mnt/pi-k3s-storage chown -R ericboehs:ericboehs /mnt/pi-k3s-storage mount /dev/sda1 /mnt/pi-k3s-storage
| #!/bin/bash | |
| # Script to update a firewall rule in a Hetzner Firewall with your current IP address. | |
| # Good if you would like to restrict SSH access only for your current IP address (secure). | |
| ################# | |
| # WARNING: This script will overwrite all rules in the firewall rules, so make sure you | |
| # added all the required rules. | |
| # I use a separate firewall rule just for SSH access. | |
| ################# |
This simple playground.yml creates a comment that opens a WordPress Playground and installs the plugin from the
current repository. The current iteration only works with plugins that do not require a build step.
Because GitHub doesn't send the right CORS headers for zip files to be able to install them in a Playground, you need
a reverse proxy to bypass the CORS restrictions. The Worker below in worker.js can be used as a Cloudflare worker that
This is an up-to-date guide on running Chromium in Vercel serverless functions in 2022. What you will read below is the result of two days of research, debugging, 100+ failed deployments, and a little bit of stress.
Use chrome-aws-lambda that comes with Chromium pre-configured to run in serverless, and puppeteer-core due to the smaller size of Chromium distributive.
| version: '3.2' | |
| services: | |
| changedetection: | |
| image: ghcr.io/dgtlmoon/changedetection.io:latest | |
| container_name: changedetection | |
| hostname: changedetection | |
| volumes: | |
| - changedetection-data:/datastore | |
| environment: |
| [ | |
| { | |
| "class": "label_control", | |
| "color": [255, 255, 255], | |
| "shadow_color": [24, 24, 24], | |
| "shadow_offset": [0, -1] | |
| }, | |
| { | |
| "class": "button_control", | |
| "content_margin": [6, 5, 6, 6], |
| <?php | |
| /* | |
| A simple PHP class to perform basic operations against Amazon S3 and compatible | |
| services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules. | |
| Copyright 2022 Marco Arment. Released under the MIT license: | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby -
Edit the configuration file:
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Support\Facades\Vite; | |
| use Illuminate\Support\Str; | |
| /** | |
| * Simple Content Security Policy middleware. |
