Skip to content

Instantly share code, notes, and snippets.

View Bengt's full-sized avatar

Bengt Lüers Bengt

View GitHub Profile
@Bengt
Bengt / macOS-Setup.md
Last active December 19, 2023 14:09
This is how I setup macOS ... More or less.

macOS Setup

I use macOS primarily for work purposes. Those include programming Python, doing machine learning and using corporate apps. This is how to set up a new macOS.

Cleanup Dash

  • Remove everything from the dash.
  • Make the dash hide automatically.

YOLO Update

Update all Linux packages. Don't look back.

Assumptions

  • This assumes you are using the preinstalled Bash shell under Ubuntu.

Usage (without installation)

@Bengt
Bengt / Windows Setup.md
Last active March 15, 2023 14:33
This is how I setup Windows ... More or less.

Operating System

  • Download the media creation tool
  • Use it to downgrade Windows 11 to Windows 10

Note: You do not need an USB drive for this.

Updates

  • Run Check for Updates and install all updates.
@Bengt
Bengt / voronoi_polygons.py
Last active June 9, 2022 22:26 — forked from letmaik/voronoi_polygons.py
Creates a Voronoi diagram with cell polygons using scipy's Delaunay triangulation (scipy >= 0.9)
"""
An adaptation of https://stackoverflow.com/a/15783581/60982
Using ideas from https://stackoverflow.com/a/9471601/60982
"""
import collections
import random
import numpy as np
import matplotlib
SteamVR System Report created Fri Apr 08 15:49:16 2022
<Report>
SteamVR Version: 1.21.12 (1647034158)
SteamVR Date: 2022-03-11
Steam: Public
Steam Branch:
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 5.13.0-39-generic (buildd@lcy02-amd64-080) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022
Fatal Python error: Aborted
Thread 0x00007fcb243ff700 (most recent call first):
<no Python frame>
Thread 0x00007fcec2a94740 (most recent call first):
File "/home/bengt/Downloads/DFKI/gitlab.ni.dfki.de/VR/VR.Backend/.tox/py38/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 443 in _conv_forward
File "/home/bengt/Downloads/DFKI/gitlab.ni.dfki.de/VR/VR.Backend/.tox/py38/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 447 in forward
File "/home/bengt/Downloads/DFKI/gitlab.ni.dfki.de/VR/VR.Backend/.tox/py38/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110 in _call_impl
File "/home/bengt/Downloads/DFKI/gitlab.ni.dfki.de/VR/VR.Backend/.tox/py38/lib/python3.8/site-packages/torch/nn/modules/container.py", line 141 in forward

Benutzt:

  • Eizo Monitortest

BenQ BL2410PT

  • Auflösung
    • FHD
  • Lag
  • Merklich höher
import tensorflow as tf
mnist = tf.keras.datasets.mnist
(x_train, y_train),(x_test, y_test) = mnist.load_data()
x_train, x_test = x_train / 255.0, x_test / 255.0
model = tf.keras.models.Sequential([
tf.keras.layers.Flatten(input_shape=(28, 28)),
tf.keras.layers.Dense(128, activation='relu'),
tf.keras.layers.Dropout(0.2),
import os
import sys
import numpy as np
from skimage.io import imread
from keras.applications.imagenet_utils import decode_predictions
from efficientnet import EfficientNetB0
from efficientnet import center_crop_and_resize, preprocess_input
@Bengt
Bengt / UbuntuSetup.md
Last active March 7, 2024 18:32
This is how I setup Ubuntu ... more or less.

Detect USB

ls /dev/sd  # Press tab

Installation Media

cd ~/Downloads &amp;&amp; \