Skip to content

Instantly share code, notes, and snippets.

View eimink's full-sized avatar

Tea Kauppinen eimink

View GitHub Profile
#!/bin/bash
TARGET=$1
PROCESSED=$1normalized/
inotifywait -m -e create -e moved_to --format "%f" $TARGET \
| while read FILENAME
do
echo Detected $FILENAME
ffmpeg-normalize "$1$FILENAME" -of $PROCESSED -ofmt mp4 -c:a aac -b:a 192k -ar 44100 -nt ebu -t -16 -ext mp4
"Observer All Players v.1"
{
"uri" "http://localhost:3000"
"timeout" "5.0"
"buffer" "0.1"
"throttle" "0.1"
"heartbeat" "30.0"
"auth"
{
"token" "Q79v5tcxVQ8u"
@eimink
eimink / ks_bracket_challonge.html
Last active January 5, 2018 11:20
Challonge thingie for OBS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="main">
<iframe id="challonge" src="http://challonge.com/TheKaupunkisota_2/module?theme=2&multiplier=1.6" width="2010" height="1200" frameborder="0" scrolling="auto" allowtransparency="true"></iframe>
</div>

Keybase proof

I hereby claim:

  • I am eimink on github.
  • I am eimink (https://keybase.io/eimink) on keybase.
  • I have a public key ASBTTr6jIXzjlnLJCJNYWcylFTeN7zSzlC_pPLqwQCGasAo

To claim this, I am signing this object:

@eimink
eimink / streamwall.html
Created January 19, 2017 13:51
Simple twitch streamwall
<html><head><title>FGJ StreamWall</title></head>
<body>
<iframe
src="http://player.twitch.tv/?channel=fgjhelsinkiarabia"
height="540"
width="960"
frameborder="0"
scrolling="no"
allowfullscreen="false">
</iframe>
@eimink
eimink / cgtk.user.js
Last active August 2, 2019 10:30
CarGress Toolkit for IITC
// ==UserScript==
// @id cargresstoolkit-iitc
// @name IITC Plugin: Cargress Toolkit
// @author eimink
// @category Misc
// @version 0.1.6
// @namespace https://hold.blue/iitc/cgtk
// @description Cargress Toolkit plugin for IITC
// @include http:/*.ingress.com/intel*
// @match http:/*.ingress.com/intel*
#!/bin/sh
spinner()
{
local pid=$1
local delay=0.75
local spinstr='|/-\'
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
local temp=${spinstr#?}
printf " [%c] " "$spinstr"
local spinstr=$temp${spinstr%"$temp"}
@eimink
eimink / gist:fce38e7eebe5add25f74
Last active September 7, 2015 06:13
Tombstone utility for Unity3D / C#
using UnityEngine;
using System.Collections;
using System.IO;
using System.Diagnostics;
using System.Runtime.CompilerServices;
/// <summary>
/// Tomb stone.
/// Mainly useful for cleaning up asynchronous code.
/// If you are not sure if a function is called or not, put a tombstone on it by calling TombStone.Mark()