Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
if [ -z "$2" ]; then
echo usage: $0 cam pres
exit 2
fi
ffmpeg -y -loglevel verbose \
-i "$1" -map '0:v0' \
-i "$2" -map '0:v1' \
diff --git a/instructions/sources/FOSDEM_AV_manual.tex b/instructions/sources/FOSDEM_AV_manual.tex
index e91d52d..d83adc3 100644
--- a/instructions/sources/FOSDEM_AV_manual.tex
+++ b/instructions/sources/FOSDEM_AV_manual.tex
@@ -142,13 +142,13 @@ If you are volunteering for video inside a devroom, please:
Please do \emph{NOT} disconnect or turn off any equipment yourself. That is the task of the per building team only.
\section{Rooms}
-We have 24 rooms: 12 small, 6 large and 6 extra large rooms. Each type of room has a different audio/video setup.
+We have 27 rooms: 12 small, 6 large and 6 extra large rooms. Each type of room has a different audio/video setup.
@krokodilerian
krokodilerian / cqsched.py
Created April 3, 2018 13:50
influx cq scheduler
#!/usr/bin/python
from glob import glob
from os import rename, unlink, getpid
from os.path import basename
from hashlib import md5
from time import sleep, time
from multiprocessing import Pool
import json
#!/bin/sh
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
. $confdir/config.sh
fi
# should come from config
URL=udp://227.0.0.2:9000
volatile int die=0;
void thread_func() {
while (42) {
do_something();
do_anotherthing();
if (die) {
close(fd);
return;
@krokodilerian
krokodilerian / workshop.md
Last active February 26, 2016 12:24
bgp workhshop

BGP workshop

Целта на workshop-а е хората да се научат да подкарват BGP и основни неща около него. Ще научим:

  • Как се пуска bgp с upstream, peer и exchange;
  • Как и защо се филтрират пътища
  • Как правилно да си анонсираме собствените мрежи към света.

Setup

@krokodilerian
krokodilerian / lamps.php
Created January 27, 2016 21:42
lamps.php
<?php
$offafter=15*60;
$loop=60;
$lightstatus = array();
$lightstatus[0]='off';
$lightstatus[1]='on';
#!/usr/bin/python
from __future__ import absolute_import, division, print_function, unicode_literals
""" Simple textruring of Sphere objects against a plane. The atmosphere has
blend set to True and so has to be drawn after object behind it to allow them
to show through. Normal map used for moon is just a 'normal' pictures so normals
are calculated strangely and create odd shadows.
Uses the import pi3d method to load *everything*
"""
from math import sin, cos
import demo
@krokodilerian
krokodilerian / scroll.php
Last active September 6, 2015 18:36
simple json scroller
<?php
$betweenletters=0;
$firstline=2000000;
$betweentalks=10000000;
function spline($line) {
global $betweenletters;
for ($i=0;$i<strlen($line);$i++) {
echo $line[$i];
@krokodilerian
krokodilerian / do_checks.sh
Created August 5, 2015 10:04
do_checks.sh
#!/bin/bash
# Do local checks and send output to nagios
# by maniax
nagioshost=nagios.ludost.net
hst=`hostname`
cd `dirname $0` || exit 3