This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
#set -x | |
USB="$PWD" | |
WORK=$HOME/work | |
SYNC_TS=.git/sync.timestamp | |
[ -f .components ] && COMPONENTS="$(cat .components)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import subprocess | |
import shlex | |
def call(cmd): | |
print(">>> {}".format(cmd)) | |
return subprocess.check_call(cmd, shell=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@vice:/mnt]# /usr/sbin/bees /mnt/test | |
bees version 0.7-1 | |
2021-10-31 19:18:31 294231.294231<7> bees: Masking signals | |
2021-10-31 19:18:31 294231.294231<7> bees: context constructed | |
2021-10-31 19:18:31 294231.294231<6> bees: setting rlimit NOFILE to 10340 | |
2021-10-31 19:18:31 294231.294231<5> bees: setting worker thread pool maximum size to 8 | |
2021-10-31 19:18:31 294231.294231<5> bees: setting root path to '/mnt/test' | |
2021-10-31 19:18:31 294231.294231<6> bees: set_root_path /mnt/test | |
2021-10-31 19:18:31 294231.294231<6> bees: set_root_fd /mnt/test | |
2021-10-31 19:18:31 294231.294231<6> bees: BeesStringFile /tmp/bees/beescrawl.dat max size 16M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@vice:/mnt]# /usr/sbin/bees /mnt/test | |
bees version 0.7-1 | |
2021-10-31 19:17:19 294197.294197<7> bees: Masking signals | |
2021-10-31 19:17:19 294197.294197<7> bees: context constructed | |
2021-10-31 19:17:19 294197.294197<6> bees: setting rlimit NOFILE to 10340 | |
2021-10-31 19:17:19 294197.294197<5> bees: setting worker thread pool maximum size to 8 | |
2021-10-31 19:17:19 294197.294197<5> bees: setting root path to '/mnt/test' | |
2021-10-31 19:17:19 294197.294197<6> bees: set_root_path /mnt/test | |
2021-10-31 19:17:19 294197.294197<6> bees: set_root_fd /mnt/test | |
2021-10-31 19:17:19 294197.294197<6> bees: BeesStringFile /tmp/bees/beescrawl.dat max size 16M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@vice:/mnt]# /usr/sbin/bees /mnt/test | |
bees version 0.7-1 | |
2021-10-31 19:15:47 294122.294122<7> bees: Masking signals | |
2021-10-31 19:15:47 294122.294122<7> bees: context constructed | |
2021-10-31 19:15:47 294122.294122<6> bees: setting rlimit NOFILE to 10340 | |
2021-10-31 19:15:47 294122.294122<5> bees: setting worker thread pool maximum size to 8 | |
2021-10-31 19:15:47 294122.294122<5> bees: setting root path to '/mnt/test' | |
2021-10-31 19:15:47 294122.294122<6> bees: set_root_path /mnt/test | |
2021-10-31 19:15:47 294122.294122<6> bees: set_root_fd /mnt/test | |
2021-10-31 19:15:47 294122.294122<6> bees: BeesStringFile /tmp/bees/beescrawl.dat max size 16M |