Skip to content

Instantly share code, notes, and snippets.


Dmitrii Pichulin deemru

Block or report user

Report or block deemru

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
deemru / cmd_proxy.c
Created May 20, 2016
I use it to start UniFi Video with mongod without journaling
View cmd_proxy.c
#include <windows.h>
#include <string.h>
#define POSTCUT ".exe"
#define POSTFIX ".original.exe"
BOOL WINAPI HandlerRoutine( DWORD dwCtrlType )
deemru /
Created Sep 27, 2016
Cloud Hosted Router god mode installation

Внимание: опасный скрипт! (warning: dangerous script!)


apt-get update &&
apt-get install -y unzip wget pv &&
wget${CHR_VERSION}/chr-${CHR_VERSION} &&
unzip chr-${CHR_VERSION} &&
echo u > /proc/sysrq-trigger &&
deemru / icmp.c
Created Feb 27, 2018
minimal icmp for ios
View icmp.c
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#define PACKETSIZE 64
struct icmp_echo {
u_char icmp_type;
u_char icmp_code;
u_short icmp_cksum;
deemru / gist:a8b54aecd84c73cbe06359dcbca0f054
Created Jul 13, 2018
MikroTik script to monitor one interface and turn off another
View gist:a8b54aecd84c73cbe06359dcbca0f054
:local EthMonitor "ether3"
:local EthTurnOff "ether1"
:local EthTurnOffStatus [:interface ethernet get $EthTurnOff disabled]
/interface ethernet monitor $EthMonitor once do={
:if ($status = "link-ok" && $EthTurnOffStatus ) do={ /interface ethernet set $EthTurnOff disabled=yes }
:if ($status != "link-ok" && !$EthTurnOffStatus ) do={ /interface ethernet set $EthTurnOff disabled=no }
deemru / shot.js
Created Nov 12, 2018
Waves Platform Mainnet (1 .. 1257702)
View shot.js
// ffmpeg -framerate 30 -i "w8io_(%%d).png" -c:v libx264 -preset slow -crf 16 -vf fps=30 _w8io.mp4
var promises = [];
var maxBrowsers = 8;
var maxPromises = maxBrowsers;
You can’t perform that action at this time.