Skip to content

Instantly share code, notes, and snippets.

View hmeine's full-sized avatar

Hans Meine hmeine

  • Bremen, Germany
View GitHub Profile
@hmeine
hmeine / blocklist.txt
Last active September 17, 2023 11:21
YouTube and TikTok domain blocking list (for distraction-free internet)
0.0.0.0 youtu.be
0.0.0.0 youtube-nocookie.com
0.0.0.0 youtube.be
0.0.0.0 youtube.co.uk
0.0.0.0 youtube.com
0.0.0.0 youtube.de
0.0.0.0 youtube.fr
0.0.0.0 youtube.nl
0.0.0.0 youtube.pl
0.0.0.0 youtubeeducation.com
@hmeine
hmeine / Cargo.toml
Last active December 27, 2022 16:16
Minimal example reproducing axum compilation problem
[package]
name = "minimal_axum"
version = "0.1.0"
edition = "2021"
[dependencies]
axum = { version = "0.6.1" }
tokio = { version = "1", features = ["full"] }
@hmeine
hmeine / uncertainty_vs_error.ipynb
Created July 5, 2022 16:41
comparison of entropy-based uncertainty measure and expected error of perfectly calibrated model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
import argparse, subprocess, sys, re
def resolve_glob_filename(filename):
resolve_glob_filename = subprocess.check_output(
'git log -n1 --name-only --format=oneline --'.split() + [filename], text = True).split('\n')
commit = resolve_glob_filename[0].split()[0]
full_path = resolve_glob_filename[1]
@hmeine
hmeine / Dockerfile
Created September 2, 2019 19:31
Dockerfile for tilemill
FROM node:8.11
COPY tilemill /usr/src/tilemill
RUN cd /usr/src/tilemill && npm install
ENTRYPOINT cd /usr/src/tilemill && npm start
EXPOSE 20008
EXPOSE 20009
@hmeine
hmeine / compare_gan_model_fn_problem.ipynb
Created February 18, 2019 22:23
compare_gan_model_fn_problem.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"basic": {
"license key": "***REMOVED SENSITIVE VALUE***",
"date": "Thu, 20 Sep 2018 10:56:33 +0000",
"ownCloud version": "10.0.9.5",
"ownCloud version string": "10.0.9",
"ownCloud edition": "Community",
"server OS": "Linux",
"server OS version": "Linux sh16-61 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64",
"server SAPI": "cgi-fcgi",
@hmeine
hmeine / keybase.md
Created October 12, 2017 20:41
Keybase proof

Keybase proof

I hereby claim:

  • I am hmeine on github.
  • I am hans_meine (https://keybase.io/hans_meine) on keybase.
  • I have a public key ASBQn2zRo9w7a9-V9Ws5p696eznCZmCxyQWowkwsyLDjlAo

To claim this, I am signing this object:

pewter scooter