Skip to content

Instantly share code, notes, and snippets.

@0x1d
0x1d / gist:41dfadfc34ce2a99ce781fa4dfe12c5a
Created March 23, 2023 10:33
postgres-restore-error
2023-03-23 10:32:49,394 INFO: Running custom bootstrap script: envdir "/run/etc/wal-e.d/env-clone-graph-engine-db" python3 /scripts/clone_with_wale.py --recovery-target-time="2023-03-23T08:00:00+01:00"
2023-03-23 10:32:49,515 INFO: Trying gs://gcp-project/spilo/graph-engine-db/a728d3bc-0b15-4436-8733-4cbc00d1258c/wal/13/ for clone
wal_e.main INFO MSG: starting WAL-E
DETAIL: The subcommand is "backup-list".
STRUCTURED: time=2023-03-23T10:32:49.715539-00 pid=129
2023-03-23 10:32:50,152 ERROR: Clone failed
Traceback (most recent call last):
File "/scripts/clone_with_wale.py", line 185, in main
run_clone_from_s3(options)
File "/scripts/clone_with_wale.py", line 166, in run_clone_from_s3
{"address":"54c3fdde97edc0bb6f82a49be7bab165e0b61d5d","pub_key":"0283caf26157246503a21bd5cdff6c4f5b1af9415cf871af2e69e493935e7f2155","signature":"63dc0168b8331c67b8da35336add5a8fe2db905b63a455fc7a9f619364eea4e57c093a44fe592d0239ca09811875d2ba5023d1997cd9b53e19f10f5284a82da9","value":"7b226163636f756e745f6e756d626572223a22222c22636861696e5f6964223a226465736d6f732d6d61696e6e6574222c22666565223a7b22616d6f756e74223a5b7b22616d6f756e74223a2230222c2264656e6f6d223a22227d5d2c22676173223a2231227d2c226d656d6f223a22222c226d736773223a5b5d2c2273657175656e6365223a2230227d"}
@0x1d
0x1d / sh
Created August 22, 2021 15:54
rancher
#!/bin/bash -x
export curl
export jq
export RANCHER_IP=192.168.2.63:30444
export CLUSTER_NAME=k3ssy
export OUTPUT_DIR=/var/lib/rancher/k3s/server/manifests
while true; do
curl -sLk https://${RANCHER_IP}/ping && break
sleep 5
{"nodes":[{"id":"5c76254b-193f-4766-b0e7-d538b6f56ef9","label":"action"},{"id":"e20a760f-3719-49c4-8b62-1b98504562f8","label":"actor"},{"id":"40f941e1-fcc9-48b0-a12e-f8c04df82816","label":"affective"},{"id":"980b4a20-38e6-4157-8bf1-30fbf7e2ccd7","label":"affectivity"},{"id":"5ae2f0ff-2610-420a-8eae-f09d17842fec","label":"algorithm"},{"id":"a40ea6c3-fd55-4969-9a73-4c0b7483ff5f","label":"analysis"},{"id":"a7040991-e56a-4494-b869-a8c193a7241d","label":"analytics"},{"id":"acea8901-fb46-4bbc-8007-857495071e6a","label":"application"},{"id":"82e6115e-79ae-4192-a71f-c0bde6667791","label":"approach"},{"id":"44fe0313-7636-4455-b8a5-6e51c6ba5fec","label":"assist"},{"id":"1313a2d1-db1a-445e-a778-68e6cc4ce475","label":"auto"},{"id":"c6a31a4a-a6a7-42d9-bf72-1e8534349503","label":"automatically"},{"id":"5e5e4340-d514-48ee-8484-9c5411d21b4c","label":"base"},{"id":"6d6e5db5-5e73-453b-8e03-bdff7f574102","label":"bias"},{"id":"3a3b0247-0f08-40f0-ad29-08a89d4809b8","label":"biomedical"},{"id":"548c4e6a-6490-4bbf-ad0a-2ea53c86395
---
# Homepage configuration
# See https://fontawesome.com/icons for icons options
title: "Ruediboard"
subtitle: "Homer"
logo: "logo.png"
# icon: "fas fa-skull-crossbones" # Optional icon
header: true
@0x1d
0x1d / README.md
Created May 2, 2019 15:12 — forked from DeanCording/README.md
ESP8266 OTA Firmware Upgrade Manager

This flow provides a tool for managing Over The Air firmware updates for ESP8266 Wifi SoC modules running the Arduino ESP8266 environment. It also supports Sonoff devices running the Tasmota firmware.

The ESP8266 is a very small, cheap, and reasonably powerful microcontroller with integrated WiFi. The OTA firmware upgrade process allows you to install these modules in location and have them automatically upgrade their firmware over WiFi.

The OTA upgrade library contacts a specified URL and passes the name and MD5 hash of the module's current firmware. This server implemented in this flow will compare the supplied MD5 hash against the one for the latest firmware and, if different, send the new firmware to the module. The server will uses either the module's MAC address or firmware name to identify the correct firmware file to send. The firmware can be specified in either the request URL or in the x-esp8266-version property in the

@0x1d
0x1d / Template_ESP8266.ino
Created May 2, 2019 15:10 — forked from DeanCording/Template_ESP8266.ino
ESP8266 Arduino project template with optional OTA firmware update
/**
* ESP8266 project template with optional:
* - WiFi config portal - auto or manual trigger
* - OTA update - Arduino or web server
* - Deep sleep
* - Process timeout watchdog
*
* Copyright (c) 2016 Dean Cording <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy