Skip to content

Instantly share code, notes, and snippets.

@d-a-n
d-a-n / EuropeaniOSDevConferences2018.md
Last active October 8, 2018 11:45
European iOS Dev Conferences for 2018

European iOS Dev Conferences for 2018

Dates Conference Location
Jan 29. dotSwift Paris
March 15. - 16. appdevcon Amsterdam
March 22. - 23. iOSCon London
April 16. - 17. Appbuilders Lugano
May 08. - 11. Craft-Conf Budapest
May 13. - 16. UIKonf Berlin
@d-a-n
d-a-n / vagrant.py
Last active June 12, 2019 08:39
dynamic ansible vagrant inventory file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
### A simple helper script for using ansible and vagrant together.
# Usually you don't need an inventory file for vagrant, since one is created
# automatically. But if you want to give your vagrant host a special group
# or assign some variables, this script becomes handy.
#
# Use it like this:
# 1) create a file e.g ansible/inventories/vagrant.py and paste the content of this gist
@d-a-n
d-a-n / observium_agent_setup.sh
Last active March 25, 2023 06:42
Observium Agent Setup Guide
# CONFIG
SNMP_COMMUNITY=public
SYSCONTACT=dan
SYSLOCATION=Berlin
# get packages
apt-get install snmpd xinetd vim
mkdir -p /opt/observium && cd /opt
# join/combine HLS segments to one file and convert it to mp3
cd /dir/with/segments
cat `ls -1v *.ts` > stream.m4a
ffmpeg -i stream.m4a -ab `ffmpeg -i stream.m4a 2>&1 | grep Audio | awk -F', ' '{print $5}' | cut -d' ' -f1`k stream.mp3