Skip to content

Instantly share code, notes, and snippets.

Alexander Gerasiov gerasiov

Block or report user

Report or block gerasiov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test_hrtimer.c
#include <linux/init.h>
#include <linux/module.h>
#include <linux/hrtimer.h>
#include <linux/ktime.h>
#include <linux/kthread.h>
#include <linux/delay.h>
MODULE_LICENSE("Dual BSD/GPL");
#define RX_POLL_PERIOD_MIN_US 800
#define RX_POLL_PERIOD_MAX_US 3000
@gerasiov
gerasiov / webmon.sh
Created Apr 3, 2015
The smallest video monitoring daemon ever
View webmon.sh
#!/bin/sh
DEVICE=/dev/video0
RESOLUTION="width=1024:height=768"
FRAMES_SKIP=3
ROTATE=1
REMOTE_HOST=lvk.cs.msu.su
REMOTE_DIR=public_html/webcam
INTERVAL=300
WORK_DIR=$(mktemp -d)
View filter.py
#!/usr/bin/python
import sys
import subprocess
parents = filter(lambda p: p!='-p', sys.stdin.readline().split() )
output = []
for parent in parents:
result=subprocess.check_output(["git", "rev-list", parent] + map(lambda p: "^%s"%p, filter(lambda p: p != parent, parents)))
View git-sync
#!/bin/sh
set -e
#set -x
USB="$PWD"
WORK=$HOME/work
SYNC_TS=.git/sync.timestamp
[ -f .components ] && COMPONENTS="$(cat .components)"
You can’t perform that action at this time.