Skip to content

Instantly share code, notes, and snippets.

@RomaniukVadim
RomaniukVadim / gsm_data_shared.c
Created February 7, 2018 13:06
Fixed gsm_data_shared
/* (C) 2008-2010 by Harald Welte <laforge@gnumonks.org>
*
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@RomaniukVadim
RomaniukVadim / record.sh
Created January 27, 2018 04:35
Ffmpeg screen capture
ffmpeg -video_size 1366x768 -framerate 30 -f x11grab -i :0.0 -f alsa -ac 2 -i hw:1 output.mkv
@RomaniukVadim
RomaniukVadim / 10-udisks.rules
Created January 26, 2018 03:25
Gentoo polkit for automount usb /etc/polkit-1/rules.d/
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
subject.user == "reverse_tcp") {
return "yes";
}
});
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks.filesystem-mount-system-internal" &&
subject.user == "reverse_tcp") {
(function(){
'use script';
}())