Skip to content

Instantly share code, notes, and snippets.

View yauh's full-sized avatar

Stephan Hochhaus yauh

View GitHub Profile
version: "3"
services:
uptime-kuma:
image: louislam/uptime-kuma:latest
container_name: uptime-kuma
environment:
- TZ=Europe/Berlin
ports:
- 3001:3001
network_mode: bridge
@yauh
yauh / whisper_vtt2transcript.py
Created January 22, 2023 13:33
This file takes a whisper generated VTT file and makes it compatible with loads of podcasts hosts out there
#!/usr/bin/env python3
import argparse
import re
def correct_timestamp(timestamp): # will return a timestamp with HH:MM:SS.sss
print("subroutine for " + timestamp)
timestamp_split = timestamp.split(":")
if len(timestamp_split) == 2:
timestamp_split.insert(0, "00")
@yauh
yauh / extract_rodecaster_polywav.sh
Created March 22, 2021 09:02
extract_rodecaster_polywav.sh
#!/bin/bash
# Rødecaster Pro Extraction Tool
# This script assumes all recording files for a podcast episode to be in the same directory as the script
# It then extracts all 14 single channels from the wav file and concatenates them
# Regardless of how many (split) recording wav files you have it will always produce 14 flac files
# sox must be available on the system http://sox.sourceforge.net
# Rødecaster Pro channel config
# adjust this if you have a different channel setup for your polywav files
@yauh
yauh / update-commit-setting.sh
Created June 3, 2015 13:42
Update git commit count in settings.json
#!/bin/bash
# update-commit-setting.sh
# Usage: `update-commit-setting.sh [branch] [settings-file]`
BRANCH=${1:-'master'}
SETTINGS=${2:-'app/settings.json'}
BUILDNUMBER=$(expr $(git rev-list $BRANCH --count) - $(git rev-list HEAD..$BRANCH --count))
echo "Updating build number in $SETTINGS to $BUILDNUMBER using branch '$BRANCH'."
sed "s/\"git-commit-count\": [0-9]*/\"git-commit-count\": $BUILDNUMBER/g" $SETTINGS > tmp.json
@yauh
yauh / client.js
Created March 27, 2015 12:14
prev and curr position
Tracker.autorun( function () {
currentPosition = Geolocation.currentLocation();
if (currentPosition === null) {
return;
}
else if (previousPosition === null) { // avoid previousPosition being null
previousPosition = currentPosition;
}
<html>
<head>
<title>My Title</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
#map {
height: 680px;
}
@yauh
yauh / fastcgi_param
Created October 30, 2014 07:59
Piwik HTTPS configuration with nginx
#/etc/nginx/fastcgi_param
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
@yauh
yauh / keybase.md
Created October 29, 2014 11:51
keybase.md

Keybase proof

I hereby claim:

  • I am yauh on github.
  • I am yauh (https://keybase.io/yauh) on keybase.
  • I have a public key whose fingerprint is 41EC 849A 98E1 8CB1 57D7 B447 3B96 0E44 E192 7CFE

To claim this, I am signing this object:

<head>
<title>simple</title>
</head>
<body>
{{> video}}
</body>
<template name="video">
<iframe width="420" height="315" src="//www.youtube.com/embed/y-sBROXalU4" frameborder="0" allowfullscreen></iframe>
@yauh
yauh / meteorlbsite.conf
Last active August 29, 2015 14:04
Nginx site configuration
upstream meteor_servers {
server 192.168.2.221:3000;
server 192.168.2.222:3000;
ip_hash;
}
server {
listen 80;
server_name meteorinaction.com;
return 301 https://www.meteorinaction.com$request_uri;