Skip to content

Instantly share code, notes, and snippets.

View ut's full-sized avatar
🌂

Ulf Treger ut

🌂
View GitHub Profile
@ut
ut / sentence_transcribe.py
Last active November 28, 2025 18:53
Python script to get a list of sentences (with German punctation) out an audio file, by using Stable-TS
#!/usr/bin/env python3
# sentence_transcribe.py
import sys
import stable_whisper
import json
from pathlib import Path
class bcolors:
HEADER = '\033[95m'
@ut
ut / readme.md
Last active June 13, 2025 12:02
Howto to create a simple map with OpenStreetMap (OSM) and QGIS

Howto to create a simple map with OpenStreetMap (OSM) and QGIS

image

Ulf Treger ulf.treger@dekoder.de 2025.

For creating your own simple map, you'd need

  • Desktop-Software QGIS, latest version https://qgis.org/ (it's Free Software :)
  • Plugin QuickOSM for QGIS
@ut
ut / gist:174a37492bb6f65f5c77247ff5248065
Last active June 13, 2025 09:35
Freifunk Router einrichten (GL-AR300M16-Ext)
# Freifunk Router einrichten...
... mit Glinet GL-AR300M16-Ext (mit externen Antennen)
Vorab: Die Einstellungen des Routers mit der Original Firmware sind via LAN mit der 192.168.8.1 aufrufbar, beim Freifunk-Router -- erst nach einem Reboot im Wartungsmodus! -- unter 192.68.1.1.
Wartungsmodus: Router vom Strom nehmen, beim Wiederdranklemmen die Taste an der Geräteseite gedrückt halten, bis ein blinkendes Signal gibt.
Installation
@ut
ut / pre-commit.rb
Last active March 29, 2023 17:34 — forked from andrewpage/pre-commit.rb
Rubocop pre-commit hook (Slight variation from andrewpage/pre-commit.rb)
#!/usr/bin/env ruby
require 'colorize'
# Grab a list of staged changed files
changed_files = `git diff --name-only HEAD`.split("\n")
should_fail, broken_files = false, []
changed_files.each do |file|
@ut
ut / Git: Switch from m* to main
Last active March 15, 2024 12:36
How to get rid the old git default 'master' branch.
# how to get rid the old git default 'master' branch
# this is a variation from https://www.jumpingrivers.com/blog/git-moving-master-to-main/
# use this locally
git fetch --all # update all remotes
git checkout -b main # create new local branch main
git push --set-upstream origin main # push new branch to remote
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main # set remote main as HEAD
git branch -d master # delete local master
git branch -rd origin/master # delete remote master ref
@ut
ut / README.md
Created September 9, 2021 14:52
Markers grouped by a geodesic form in Leaflet 1
@ut
ut / .block
Last active September 9, 2021 14:42
Markers with curved paths in Leaflet 1
license: cc-sa

Keybase proof

I hereby claim:

  • I am ut on github.
  • I am ulf_t (https://keybase.io/ulf_t) on keybase.
  • I have a public key ASASWQGXFDj5AqVhr2HMfmoBp5FfYlh6wv8snhq-d8f_QAo

To claim this, I am signing this object:

@ut
ut / gist:70c3665c1a63935e64a77e85e7f9103a
Created February 24, 2018 15:43
quickly get all values of input fields
var v = '';
$('input.class').each(function() {
if ( $(this).val() !== '' ) {
v = v + $(this).val()+ ", ";
}
});
console.log(v);
@ut
ut / index.html
Created February 16, 2018 21:17 — forked from anonymous/index.html
Faint Color
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Faint Color Preview</title>
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.css" />
<script src="https://api.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.js"></script>
<style>