Skip to content

Instantly share code, notes, and snippets.


Basti Becker bastibeckr

  • studio2010 GmbH
  • Munich, Germany
View GitHub Profile
View index-elastic-dump.js
const schema = require('./schema')
const db = require('./connection')
const fileName = './elastic-dump-jsonlines.txt'
const readJson = require('./read-json')
db.once('open', function () {
console.log('Connected to DB.')
bastibeckr / yt-playlist.lua
Created March 4, 2021 12:38
Youtube-Playlist LUA VLC (fixed)
View yt-playlist.lua
Youtube playlist importer for VLC media player 1.1 and 2.0
Copyright 2012 Guillaume Le Maout - Updated by bastibeckr
Authors: Guillaume Le Maout
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
bastibeckr /
Created July 14, 2020 13:11 — forked from vi/
Using FFmpeg to split multimedia file into parts based on audio volume level
true ${SD_PARAMS:="-55dB:d=0.3"};
if [ -z "$OUT" ]; then
bastibeckr /
Last active August 29, 2018 09:56
WordPress Backup via wp-cli & rsync
#!/usr/bin/env bash
# Will output a list of commands to backup WordPress web-root + Database:
# This script won't execute the commands, so you can review them before executing.
# Requirements: wp-cli, rsync
# 1. create backup folder based on date
# 2. backup WordPress DB via wp-cli
# 3. backup WordPress web-root via rsync
bastibeckr / bmdtools.rb
Last active February 17, 2018 19:32
bmdtools homebrew formula
View bmdtools.rb
# based on
require 'formula'
class Bmdtools < Formula
homepage ''
head ''
env :std
bastibeckr /
Last active December 22, 2017 16:27
Dashing-Widget that displays a list of tweets



Shows a list of tweets, basically it can show any list of comments. We use it to display our Twitter account's latest "saved search" - results.


bastibeckr /
Created September 20, 2017 10:53
gifsicle resize
#! /bin/zsh
sizes=( "100x56" "1024x576" "150x150" "150x80" "200x125" "250x140" "256x144" "300x169" "320x180" "400x225" "600x338" "768x432" "800x450" )
echo "Filename: ${filename:r:t}"
# Dirname without trailing slash
View gist:6ceb19423b422786139de7042b7c3baf
### Keybase proof
I hereby claim:
* I am bastibeckr on github.
* I am bastibeckr ( on keybase.
* I have a public key ASB9dQmh0GnqfPjKvbky_FnBjwQXGaqD14XDaEPpmBXCHwo
To claim this, I am signing this object:
bastibeckr / check_chronosync_scheduler
Last active March 14, 2017 09:06
Basic nagios-check for ChronoSync Scheduler (Mac OSX)
View check_chronosync_scheduler
#!/usr/bin/env osascript -l JavaScript
console.log = function() {
for (argument of arguments) {
$.NSFileHandle.fileHandleWithStandardOutput.writeData($.NSString.alloc.initWithString(String(argument) + "\n").dataUsingEncoding($.NSNEXTSTEPStringEncoding));
bastibeckr /
Last active September 5, 2016 18:12
Capture on Mac OSX from Blackmagic Ultrastudio to FFMPEG. Generate multiple HLS streams
bmdcapture -m 8 -C 0 -A 2 -V 4 -F nut -f pipe:1 | \
ffmpeg -y -i - \
-c:a libfaac -ac 2 -b:a 96k -ar 44100 -c:v libx264 -pix_fmt yuv420p -profile:v main -level 32 -b:v 1000K -f hls -hls_time 10 -hls_list_size 999 -vf "scale=1280:-1" -segment_list_flags +live 1280x720.m3u8 \
-c:a libfaac -ac 2 -b:a 96k -ar 44100 -c:v libx264 -pix_fmt yuv420p -profile:v main -level 32 -b:v 600K -f hls -hls_time 10 -hls_list_size 999 -vf "scale=720:-1" -segment_list_flags +live 720x405.m3u8