Skip to content

Instantly share code, notes, and snippets.

View bastibeckr's full-sized avatar

Basti Becker bastibeckr

  • studio2010 GmbH
  • Munich, Germany
View GitHub Profile
@bastibeckr
bastibeckr / wp-backup.sh
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
bastibeckr / split_by_silence.sh
Created July 14, 2020 13:11 — forked from vi/split_by_silence.sh
Using FFmpeg to split multimedia file into parts based on audio volume level
#!/bin/bash
IN=$1
OUT=$2
true ${SD_PARAMS:="-55dB:d=0.3"};
true ${MIN_FRAGMENT_DURATION:="20"};
export MIN_FRAGMENT_DURATION
if [ -z "$OUT" ]; then
@bastibeckr
bastibeckr / yt-playlist.lua
Created March 4, 2021 12:38
Youtube-Playlist LUA VLC (fixed)
--[[
Youtube playlist importer for VLC media player 1.1 and 2.0
Copyright 2012 Guillaume Le Maout - Updated by bastibeckr
Authors: Guillaume Le Maout
Contact: http://addons.videolan.org/messages/?action=newmessage&username=exebetche
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
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.')
readJsonLines()
})