Skip to content

Instantly share code, notes, and snippets.

View fachinformatiker's full-sized avatar
:octocat:
Focusing

Patrick Szalewicz fachinformatiker

:octocat:
Focusing
View GitHub Profile
@fachinformatiker
fachinformatiker / batch_reconstruct.bat
Created August 15, 2025 11:55 — forked from polyfjord/batch_reconstruct.bat
Batch script for automated photogrammetry tracking workflow
:: ================================================================
:: BATCH SCRIPT FOR AUTOMATED PHOTOGRAMMETRY TRACKING WORKFLOW
:: By polyfjord - https://youtube.com/polyfjord
:: ================================================================
:: USAGE
:: • Double-click this .bat or run it from a command prompt.
:: • Frames are extracted, features matched, and a sparse
:: reconstruction is produced automatically.
:: • Videos that have already been processed are skipped on
:: subsequent runs.
@fachinformatiker
fachinformatiker / 0-startup-overview.md
Created June 21, 2025 20:30 — forked from dideler/0-startup-overview.md
Startup Engineering notes
@fachinformatiker
fachinformatiker / get_gists.py
Created June 21, 2025 10:59 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
# first: mkdir user && cd user && cp /path/to/get_gists.py .
# python3 get_gists.py user
import requests
import sys
from subprocess import call
user = sys.argv[1]
r = requests.get('https://api.github.com/users/{0}/gists'.format(user))
@fachinformatiker
fachinformatiker / xhain_generate.py
Created May 12, 2024 20:43
generate xHain Status Image for OpenEPaperLink Display
from PIL import Image, ImageDraw, ImageFont
import urllib.request, json, os, sys
width = 296
height = 128
color = "#ffffff"
logo = "https://raw.githubusercontent.com/xHain-hackspace/xHainCI/master/logo/xHain_logo-rev3.png"
tmp_file = "tmp.png"
fnt1 = ImageFont.truetype("Arial.ttf", 40)
fnt2 = ImageFont.truetype("Arial.ttf", 18)
@fachinformatiker
fachinformatiker / crack-keepass.sh
Created October 13, 2022 07:55 — forked from kiyui/crack-keepass.sh
Brute force a Keepass database file with a dictionary attack
#!/bin/sh
# Usage: ./crack-keepass.sh passwords.kdbx dict.txt
#
# The dictionary file can be generated with:
# https://github.com/TimurKiyivinski/permutatify
while read i
do
echo "Using password: \"$i\""

How to setup a practically free CDN

I've been using [Backblaze][bbz] for a while now as my online backup service. I have used a few others in the past. None were particularly satisfactory until Backblaze came along.

It was - still is - keenly priced at a flat $5 (£4) per month for unlimited backup (I've currently got just under half a terabyte backed-up). It has a fast, reliable client. The company itself is [transparent about their operations][trans] and [generous with their knowledge sharing][blog]. To me, this says they understand their customers well. I've never had reliability problems and everything about the outfit exudes a sense of simple, quick, solid quality. The service has even saved the day on a couple of occasions where I've lost files.

Safe to say, I'm a happy customer. If you're not already using Backblaze, [I highly recommend you do][recommend].

Taking on the big boys with B2

@fachinformatiker
fachinformatiker / KiCAD_CopperSpiral_v2.py
Created April 9, 2021 13:43 — forked from JoanTheSpark/KiCAD_CopperSpiral_v2.py
v2 with spin direction and increasing amount of segments per turn for smoother result in outer circles
import sys, os
import shutil
import math
import itertools
from copy import deepcopy
# 0 1 2 3 4 5 6
LIST_elmt = [" ("," (start ",") (end ",") "," (layer ",") ","))"]
#LIST_elmt = [" (gr_line (start 131.571908 182.314571) (end 112.874456 120.68499) (angle 90) (layer Dwgs.User) (width 0.1))"]
#LIST_elmt = [" (segment (start 118.7 106.7) (end 119.4 106.7) (width 0.25) (layer B.Cu) (net 0))"]
@fachinformatiker
fachinformatiker / 404.html
Last active June 9, 2020 08:24
animated 404 page
<html>
<head>
<title>
404 - page not found
</title>
<style>
body {
background-color: #242424;
font-family: 'Roboto', sans-serif;
color: #00468c; }
@fachinformatiker
fachinformatiker / doorbell.yaml
Created June 9, 2020 07:49 — forked from frenck/doorbell.yaml
Blog: For just $2, convert any existing wired doorbell into a smart doorbell; using ESPHome and Home Assistant: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
---
esphome:
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret wifi_ssid
@fachinformatiker
fachinformatiker / GsonTest.java
Created May 1, 2019 18:43 — forked from julianbonilla/GsonTest.java
Read json from file into Gson
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import com.google.gson.Gson;
public class GsonTest {
public static void main(String[] args) throws FileNotFoundException {