Skip to content

Instantly share code, notes, and snippets.

View revmischa's full-sized avatar
🇺🇦

Mischa Spiegelmock revmischa

🇺🇦
View GitHub Profile
@revmischa
revmischa / ReplicationLag.pm
Created July 8, 2011 21:44
Nagios/icinga replication lag check
# Reports replication lag in seconds
# For use with Postgresql and repmgr
# Usage: -c lag_seconds_threshold -n standby_node_id
# Sample output: REPMGR OK - Replication apply time lag: 1 seconds, 11 kB
package MyApp::Monitor::ReplicationLag;
use Moose;
@revmischa
revmischa / gist:941527
Created April 26, 2011 00:17
Migrate pivotal tracker stories to github issues
#!/usr/bin/env perl
# Migrate PT stories to GitHub issues
use Moose;
use WWW::PivotalTracker qw/
add_note
@revmischa
revmischa / how_computers_work.txt
Last active September 30, 2021 03:11
How computers work
How computers work
==================
Most people on the planet directly interact with computers on a daily
basis. They may be fooling around on their cell phone, writing a paper
for their homework, or playing video games. Despite the ubiquity
of digital computing devices, there is an astonishingly small number of
people who are familiar with the inner workings of these devices. Not
only that, but due to the fact most people think of computers in
@revmischa
revmischa / build-video-server.sh
Created December 16, 2010 00:25
Build and install libx264, libav and rtmpd
#!/usr/bin/env bash
# This script fetches and builds libx264, libav, rtmpd and their dependencies.
# you may have to add /usr/local/lib to /etc/ld.so.conf
# BASEDIR = build directory (default current dir)
# PREFIX = install directory (default /usr/local)
if [ -z "$BASEDIR" ]; then
BASEDIR=`pwd`
fi