rclone config
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import httpx | |
target_host = "localhost" | |
socket_path = "/var/lib/incus/unix.socket" | |
transport = httpx.HTTPTransport(uds=socket_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lock | |
import ( | |
"context" | |
"errors" | |
"strings" | |
"sync" | |
"time" | |
"testapp/logger" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# curl -fsSL https://gist.githubusercontent.com/kmpm/a83912c95009561ff6c6dcc9a2373751/raw/nats-setup-linux.sh | bash | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get install -y unzip curl | |
echo "Downloading nsc install script" | |
curl -fsSL https://raw.githubusercontent.com/nats-io/nsc/master/install.sh -o /tmp/nsc-install.sh | |
echo "Running nsc install script" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)] | |
[String]$Destination, | |
[Parameter(ValueFromPipelineByPropertyName)] | |
[Switch]$WithServer, | |
[Switch]$WithNsc | |
) | |
$ErrorActionPreference = 'Stop' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <std/mem.pat> | |
#include <std/io.pat> | |
#include <std/math.pat> | |
#pragma endian little | |
#define MAX_RECORDS 1024 | |
#define POLAR_EARTH_RADIUS 6356752.3142 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SPDX-FileCopyrightText: 2022 Peter Magnusson <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
# | |
# This file installs weasyprint and creates a script that | |
# tries to proxy calls from bookstack to what it believe is | |
# wkhtmltopdf. | |
# | |
# put this file in /custom-cont-init.d and restart the container |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
"os" | |
_ "github.com/denisenkom/go-mssqldb" | |
"github.com/uptrace/bun" |
This document is my personal notes from getting back into SuSE again from years using debian and ubuntu.
- https://stackoverflow.com/questions/37477290/build-essential-for-opensuse
- https://randomgeekery.org/post/2014/06/what-is-build-essentials-for-opensuse/
SuSE/Zypper uses something called patterns to group packages together.
The deb equivalent to patters would be meta-packages I guess.
There is a pattern called devel_basis
that sort of matches build-essential.
Attached to this will be a pcap with 2 different request/response sequences. The first is the one that Caddy does and the second comes from dig.
NewerOlder