Skip to content

Instantly share code, notes, and snippets.

View fronbasal's full-sized avatar
👨‍💻

Daniel Malik fronbasal

👨‍💻
View GitHub Profile
@fronbasal
fronbasal / comparison.md
Created November 7, 2025 00:56
NVMe Performance / Hoster Comparison / Netcup vs. Hetzner Cloud vs. IONOS
Metric IONOS 1&1 (beta.txt) Hetzner (pretix.txt) Netcup (detroit.txt)
Read IOPS 5010 (+99.3% vs Netcup, +17.5% vs Hetzner) 4264 (+69.6% vs Netcup) 2514 (baseline)
Write IOPS 2150 (+99.1% vs Netcup, +17.5% vs Hetzner) 1830 (+69.4% vs Netcup) 1080 (baseline)
Read Bandwidth (MB/s) 20.5 (+99.0% vs Netcup, +17.1% vs Hetzner) 17.5 (+69.9% vs Netcup) 10.3 (baseline)
Write Bandwidth (MB/s) 8.8 (+104.7% vs Netcup, +20.5% vs Hetzner) 7.3 (+69.8% vs Netcup) 4.3 (baseline)
Avg Latency Read (us) 167 (-27.4% vs Netcup, -1.2% vs Hetzner) 169 (-26.5% vs Netcup) 230 (baseline)
Avg Latency Write (us) 73 (-80.9% vs Netcup, -50.7% vs Hetzner) 148 (-61.3% vs Netcup) 382 (baseline)
  • IONOS 1&1 has the best SSD performance overall, about
@fronbasal
fronbasal / com.1password.1password.json
Created September 28, 2025 23:05
1Password Ungoogled Chromium macOS Fix
{
"name": "com.1password.1password",
"description": "1Password BrowserSupport",
"path": "/Applications/1Password.app/Contents/Library/LoginItems/1Password Browser Helper.app/Contents/MacOS/1Password-BrowserSupport",
"type": "stdio",
"allowed_origins": [
"chrome-extension://hjlinigoblmkhjejkmbegnoaljkphmgo/",
"chrome-extension://gejiddohjgogedgjnonbofjigllpkmbf/",
"chrome-extension://khgocmkkpikpnmmkgmdnfckapcdkgfaf/",
"chrome-extension://aeblfdkhhhdcdjpifhhbdiojplfjncoa/",
@fronbasal
fronbasal / update.md
Last active February 6, 2025 19:50
Pretix update guideline (S3)

Update steps to prevent OfflineGenerationError

  • Assumes custom env (i.e. custom Django settings module) at .env
  • You need to run compress (django-compressor) to it syncs the new assets to S3
sudo -u pretix -i 
source venv/bin/activate
export $(cat .env)
pip3 install -U --upgrade-strategy eager pretix gunicorn
@fronbasal
fronbasal / crawler.py
Created July 6, 2024 19:28
SciHub downloader
from pathlib import Path
import requests
from bs4 import BeautifulSoup
# Inspired by https://github.com/stormsuresh92/Bulk-download-Sci-Hub-papers
class SciHub:
def __init__(self, doi: str, path: Path, url='https://sci-hub.se/', timeout=60):
self.url = url
self.timeout = timeout
@fronbasal
fronbasal / pretix-django-storages-writeup.md
Last active February 6, 2025 19:50
Pretix django-storages (S3) configuration for staticfiles & media

Pretix django-storages (S3) configuration

This is a quick write-up on how to configure Pretix (based on the Small-scale manual deployment documentation by Pretix) to use S3 (or another supported django-storages backend) to speed up page hits.

The process of this and additional steps to undertake are underlined in Pretix' scaling guide.

I wrote this to make it easier for myself and you to do this again ;)

  1. Create a new directory in /var/pretix, i.e. settings, include this directory in your PYTHONPATH.
  2. Add a custom settings.py by overwriting DJANGO_SETTINGS_MODULE as outlined in the scaling guide
@fronbasal
fronbasal / traktor_3.9.0_mac_arm_fix.md
Last active February 28, 2024 21:41
Fxing Traktor >= 3.9.0 on Apple M (Arm) chips

Traktor >= 3.9.0 Mac M1/M2/M3 Fix

Instructions on fixing Traktor >= 3.9.0 on MacOS with M1/M2/M3 chips:

  1. Open Terminal
  2. cd /Applications/Native\ Instruments/Traktor\ Pro\ 3/Traktor.app/Contents/MacOS
  3. cp Traktor Traktor.bak
  4. sudo lipo -thin x86_64 Traktor.bak -output Traktor

This will extract the x86_64 binary from the universal binary with 2 architectures.

@fronbasal
fronbasal / github_gc.py
Created February 13, 2024 15:59
Clean up github repository (set public repositories private, delete forks)
import github3
import click
@click.command()
@click.argument('access_token', required=True, type=str)
def main(access_token):
gh = github3.login(token=access_token)
username = gh.me().login
operator operator_owned_restaurants
McDonald's Deutschland LLC 118
Autobahn Tank & Rast QSR GmbH 31
Willy Dany Restaurantbetriebsgesellschaft mbH & Co. Service KG 29
Systemgastronomie Christian Eckstein GmbH & Co. KG 28
Heinritzi GmbH & Co. Restaurant KG 28
Mike Kraft Systemgastronomie e. K. 15
Hubertus Elster e.K. Systemgastronomie 15
Frank Mosher Restaurants e.K.

Keybase proof

I hereby claim:

  • I am fronbasal on github.
  • I am fronbasal (https://keybase.io/fronbasal) on keybase.
  • I have a public key whose fingerprint is 0CD0 E229 DA22 4C4A 7560 4E6F A9F6 A553 F4CC F339

To claim this, I am signing this object: