Skip to content

Instantly share code, notes, and snippets.

View sebastian-meier's full-sized avatar
🤖
Wrestling Robots

Sebastian Meier sebastian-meier

🤖
Wrestling Robots
View GitHub Profile
@sebastian-meier
sebastian-meier / convert.md
Created October 22, 2023 08:33
ffmpeg audio conversion mp3<>wav

for f in ./**/*.wav; do ffmpeg -y -i "$f" -c:a libmp3lame -ac 1 -q:a 2 -b:a 96k "${f/%wav/mp3}"; done

for f in ./**/*.mp3; do ffmpeg -y -i "$f" -acodec pcm_u8 -ar 22050 "${f/%.mp3/-1.WAV}"; done

unzip /*.zip
rm *.zip
./citygml-tools *.gml --tojson
rm *.gml
pip install 'cjio[export]'
for f in *.json; do cjio "$f" export gml "$f.json"; done
rm *.json
@sebastian-meier
sebastian-meier / README.md
Created April 11, 2022 19:00
NextCloud batch share link create and collect script

I use our university's NextCloud instance to host my remote teaching videos. But manually generating all those share links that I need is no fun.

Open the folder with all the videos you want to generate share links for. And execute the script. The script will go through the list and click the share button, then click the generate share link button, the resulting share link is than stored in an array and returned in the end.

The script has a filter to check for specifc extensions only.

NextCloud can be a bit slow at times (at least out instance, so you might need to modify the timeout variable.

You need to scroll once to the end of the page, to load all the data.

@sebastian-meier
sebastian-meier / branches.txt
Last active March 22, 2024 02:36
QGIS Geometry Generators - CartoHack #9
collect_geometries(
array_foreach(
generate_series(1, to_int("count"), 1),
translate(
geom_from_wkt(
concat(
'LINESTRING(0 50,',
to_string(rand(-25, 25, concat("fid", '_x', @element))),
' ',
to_string(rand(-5, 5, concat("fid", '_y', @element))),
@sebastian-meier
sebastian-meier / index.js
Created August 21, 2020 09:28
batch ogr2ogr downloader for Berlin's fisbroker
let fs = require('fs')
const { exec } = require('child_process')
let minx = 369095.687897,
miny = 5799302.08121,
maxx = 416868.309276,
maxy = 5838240.33418
//ogr2ogr flurstuecke.sqlite -f SQLite flurstuecke.vrt
sudo apt-get update
sudo apt-get install -y git
git clone https://github.com/adafruit/pi_video_looper.git
cd pi_video_looper
sudo ./install.sh
sudo reboot
@sebastian-meier
sebastian-meier / twitter-fonts.css
Created May 10, 2019 08:39
Change Twitter Fonts
/* OLD TWITTER UI */
.tweet-text {
font-family:"BLOKK Neue" !important;
}
.tweet-text a,
.tweet-text a *{
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif !important;
}

Keybase proof

I hereby claim:

  • I am sebastian-meier on github.
  • I am seb_meier (https://keybase.io/seb_meier) on keybase.
  • I have a public key ASClVDVe2T3A8YUGfjNcDmim39dtJ4cNnsRQ9Mhzi5_Idwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sebastian-meier on github.
  • I am seb_meier (https://keybase.io/seb_meier) on keybase.
  • I have a public key ASClVDVe2T3A8YUGfjNcDmim39dtJ4cNnsRQ9Mhzi5_Idwo

To claim this, I am signing this object:

@sebastian-meier
sebastian-meier / Readme.md
Last active June 8, 2016 08:16
Scatterplots with Blur

Scatterplots with Blur

The slider is taken from http://bl.ocks.org/shancarter/5979700

Inspired by "Enhancing Scatterplots with Multi-Dimensional Focal Blur", Joachim Staib, Sebastian Grottel, Stefan Gumhold - EuroVis 2016