Skip to content

Instantly share code, notes, and snippets.

View tolbrino's full-sized avatar
💭
on earth

Tino Breddin tolbrino

💭
on earth
View GitHub Profile
@tolbrino
tolbrino / sockd.conf
Created January 22, 2025 12:37
dante SOCKS5 server configuration example
errorlog: sockd.errlog
logoutput: sockd.log
internal: 127.0.0.1 port = 1080
external: en0
user.notprivileged: myuser # CHANGE to your user
srchost: nodnsmismatch nodnsunknown
@tolbrino
tolbrino / llm-on-premise-2024.md
Created November 28, 2024 09:14 — forked from Teebor-Choka/llm-on-premise-2024.md
On-premise LLM deployments and options

On-premise LLM model deployments

Requirements

LLM models used as an external resource offer multiple disadvantages:

  • Privacy - guarantees regarding confidential imformation usage by the models and intellectual property (IP) safety cannot be guaranteed
  • Flexibility - specialization and fine-tuning of more general models offers efficiency gains in terms of resources used and outputs achieved
  • Stability - reducing vendor dependency allows internal system stability through guaranteed availability

An approach, whereby LLM models and deployed, fine-tuned and utilized locally (on-premise) allows:

@tolbrino
tolbrino / YubiKey-GPG-SSH-guide.md
Created October 30, 2024 07:49 — forked from ageis/YubiKey-GPG-SSH-guide.md
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@tolbrino
tolbrino / hoprd-http-api-swagger-schema.diff
Last active February 13, 2024 10:47
Diff or Hoprd HTTP API v3 Swagger Schema between v2.0.8 and v2.1.0
--- hoprd-http-api-v3-schema-2.0.8.json.new 2024-02-13 11:28:06.214324978 +0100
+++ hoprd-http-api-v3-schema-2.1.0.json.new 2024-02-13 11:43:56.434889079 +0100
@@ -1,3369 +1,3055 @@
{
"openapi": "3.0.3",
- "servers": [
- {
- "url": "/api/v3"
- }
- ],
@tolbrino
tolbrino / restart.sh
Created April 28, 2023 06:55 — forked from diegoalzate/restart.sh
restart hoprd nodes on rpch
#!/bin/bash
# Make API request and extract the IP addresses from the "hoprd_api_endpoint" field
ips=( $(curl --silent --request GET --url https://staging.discovery.rpch.tech/api/v1/node?status=READY | jq -r '.[].hoprd_api_endpoint | sub("http://"; "") | sub(":[0-9]*$"; "")') )
# Path to SSH private key for authentication
private_key_path=".ssh/id_rsa"
# Loop through the remote hosts and run the script on each one
for ip in "${ips[@]}"
@tolbrino
tolbrino / check-gnosis-chain-head.sh
Created February 27, 2023 06:56
Helper script to check availability of a set of Gnosis RPC endpoints
#!/usr/bin/env bash
# exit on errors, undefined variables, ensure errors in pipes are not hidden
set -Eeuo pipefail
do_curl() {
local endpoint="${1}"
local start end timing
start="$(date +%s%3N)"
#!/usr/bin/env bash
set -Eeuo pipefail
msg() {
echo >&2 -e "${1-}"
}
usage() {
msg
@tolbrino
tolbrino / measure_ae_sync.sh
Created August 7, 2019 11:35
Testing sync performance of the aeternity node
#!/usr/bin/env bash
set -e
FOLDER="$1"
OUTPUT_FILE="${OUTPUT_FILE:-blocks_synced.csv}"
check() {
if [[ -z "${FOLDER}" ]]; then
echo "ERROR: Specify aeternity node folder as first parameter";
exit 1
@tolbrino
tolbrino / epoch.sh
Last active November 26, 2018 10:33
Files for epoch Windows development setup
# Basic config
export EDITOR=vim
# Msys2 config
export MSYS=winsymlinks:nativestrict
make_winpath()
{
P=$1
if [ "$IN_CYGWIN" = "true" ]; then

Keybase proof

I hereby claim:

  • I am tolbrino on github.
  • I am kolibri (https://keybase.io/kolibri) on keybase.
  • I have a public key whose fingerprint is BBEE 15B6 3060 ABA8 2B9D 0B3C BA14 7AD3 6B43 8CB3

To claim this, I am signing this object: