Skip to content

Instantly share code, notes, and snippets.

View michael1011's full-sized avatar
👨‍💻

michael1011 michael1011

👨‍💻
View GitHub Profile
# Quiz
# Globale Einstellung
def quizfrage():
global punkte
antwort = input(frage)
if antwort == loesung:
print("Richtig")
punkte = punkte + 1
else:
# definierte Variablen
guess = 0
secret = 15 #<--- diese Zahl veränden um die Geheimzahl zu ändern
i = 0
# Wilkommensnachricht
print("Wilkommen zu meinem Ratespiel (bitte nur Zahlen eingeben)")
print("Eine Zahl zwischen 0 und 20 wird gesucht:")
print("")
@michael1011
michael1011 / sha256.c
Last active January 4, 2021 20:47
SHA256 benchmark for x86 with Intel SHA extensions
/* sha256-x86.c - Intel SHA extensions using C intrinsics */
/* Written and place in public domain by Jeffrey Walton */
/* Based on code from Intel, and by Sean Gulley for */
/* the miTLS project. */
/* gcc -pthread -msse4.1 -msha sha265.c -O3 -o sha256 */
/* Include the GCC super header */
#if defined(__GNUC__)
#!/usr/bin/env sh
set -x #echo on
BOR_DIR=${BOR_DIR:-~/.bor}
DATA_DIR=$BOR_DIR/data
bor --datadir $DATA_DIR \
--port 30303 \
--http --http.addr '0.0.0.0' \
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFqdS8wBEAC5QzhAhXb0yeDLKrH8XLtSIxsc3f/ydC29uxQKowhVL1hrgCQO
fNAhms3l5l13wqLav4eEeKhte8Fqd7kBk5Aw0dGsuEsMhpCCkh1hu7AY17xouzYH
hoUf5EsFrEilpqoNHAcShDahnXYqZtIn8n8IVX/C9ihpQu56AsuLtKfWcohoP4+c
/fcSryiDQtF/gy6QigfLA0YkViK34hDctmNpsnLN3Xw/2VHCcxx+QJ1f636FIH8C
9/Jkzc2VsI+ju3i4PtW/LpPNbkdxr4NCuqiPjBC+5zckq3bU0ZQHn6jMOpasNGzs
t8JQmDteHSaPpwqdroZS/t9kACh83LLFj1aUn+A7kX/vKu3ZSOFO/P/Y7j1VYeAb
mYToeYeI63Rp4wM/dUKlp3p+c1QxdDPYFsaHHCTB/4WwvKOdtE8vZQUug8pPcc/b
6xTIMn/El3GIaGYZpQbQZ+3rV8EwYkDoOU5vG8pQyvNlOqcBbSQkVE927UNpRFpM
@michael1011
michael1011 / cmds.go
Created July 11, 2023 09:10
LND Compactor
package main
import (
"encoding/binary"
"errors"
"fmt"
"github.com/urfave/cli/v2"
"os"
"strconv"
"time"