Skip to content

Instantly share code, notes, and snippets.

// from https://maltechx.de/en/2020/06/host-static-page-on-backblaze-with-cloudflare-workers/
// Backblaze Url
const baseURL = "https://f000.backblazeb2.com/file/skywirex"
addEventListener('fetch', event => {
event.respondWith(handleRequest(event))
})
async function handleRequest(event) {
name: Build & Deploy Hugo Static Site to Backblaze B2
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
@magicstone1412
magicstone1412 / format.hdd
Created October 4, 2021 10:12
Format new HDD drive using command line
# fdisk /dev/sda
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
The size of this disk is 3.7 TiB (4000787030016 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).
Created a new DOS disklabel with disk identifier 0x5644fbf2.
@magicstone1412
magicstone1412 / prometheus.yml
Created April 26, 2024 02:54
1st prometheus configuration file
# Global
# # The first block, global, contains global settings for controlling the Prometheus
# # server’s behavior
global:
scrape_interval: 15s
evaluation_interval: 15s
# Alerting
# # The second block, alerting, configures Prometheus’ alerting.
# # Alerting is provided by a standalone tool called Alertmanager