Skip to content

Instantly share code, notes, and snippets.

Blockchains

Dmitrii Pichulin deemru

Blockchains
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
deemru / shot.js
Created Nov 12, 2018
Waves Platform Mainnet (1 .. 1257702)
View shot.js
// https://github.com/deemru/w8io/tree/15842edd4235bd3eabc127deac61195257e351ba
// https://github.com/GoogleChrome/puppeteer
// ffmpeg -framerate 30 -i "w8io_(%%d).png" -c:v libx264 -preset slow -crf 16 -vf fps=30 _w8io.mp4
// https://www.youtube.com/watch?v=n7A-KQ15ynY
var promises = [];
var maxBrowsers = 8;
var maxPromises = maxBrowsers;
showtime();
@deemru
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
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
deemru / chr-install.md
Created Sep 27, 2016
Cloud Hosted Router god mode installation
View chr-install.md

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

CHR_VERSION=6.37
INSTALLPATH=/dev/vda

apt-get update &&
apt-get install -y unzip wget pv &&
wget http://download2.mikrotik.com/routeros/${CHR_VERSION}/chr-${CHR_VERSION}.img.zip &&
unzip chr-${CHR_VERSION}.img.zip &&
echo u > /proc/sysrq-trigger &&
@deemru
deemru / cmd_proxy.c
Created May 20, 2016
I use it to start UniFi Video with mongod without journaling
View cmd_proxy.c
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <string.h>
#define POSTCUT ".exe"
#define POSTFIX ".original.exe"
HANDLE hProcess = INVALID_HANDLE_VALUE;
BOOL WINAPI HandlerRoutine( DWORD dwCtrlType )
You can’t perform that action at this time.