- 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
| function gas() { | |
| local repo_dir branch owner repo api_url gh_status conclusion color | |
| # Ensure GITHUB_TOKEN is set | |
| if [[ -z "$GITHUB_TOKEN" ]]; then | |
| echo "❌ GITHUB_TOKEN is not set. Export it in your shell environment." | |
| return 1 | |
| fi | |
| # Find the Git repo root |
| { | |
| // Disable telemetry | |
| "telemetry.telemetryLevel": "off", | |
| // Zen mode | |
| "zenMode.fullScreen": false, | |
| "zenMode.hideTabs": true, | |
| "zenMode.centerLayout": false, | |
| // Theming | |
| "workbench.iconTheme": "city-lights-icons-vsc", | |
| "editor.fontFamily": "Dank Mono", |
| #!/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 |
