Skip to content

Instantly share code, notes, and snippets.

View skaurus's full-sized avatar

Dmitry Shalashov skaurus

View GitHub Profile
@skaurus
skaurus / gist:474d55c28e62d150b939eb21b1466b81
Created June 3, 2016 16:53 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
#!/usr/local/bin/perl
use 5.026;
use warnings;
use FindBin qw/$RealBin/;
use lib $RealBin . '/../local/lib/perl5', $RealBin . '/../lib';
use Benchmark;
use LWP::Curl;
#!/usr/local/bin/perl
package TestApp;
use Mojolicious::Lite;
use Mojo::Promise;
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
Controller::method {
my $promise = Utils::get_me_promise;
return $promise->then(sub ($inner_promise) {
say 'method outer resolved';
return $inner_promise->then(sub ($something) {
say 'method inner resolved';
render $something;
}, sub {
log_error
}
@skaurus
skaurus / dockerflix_dns_proxy.rsc
Last active July 18, 2023 18:20
Setup trick77 dockerflix DNS Proxy on MikroTik RouterOS
# Setup https://github.com/trick77/dockerflix on Mikrotik router
:global portallerHosts " \
ipinfo.io, \
hulu.com, \
netflix.com, \
netflix.net, \
mtv.com, \
mtvnservices.com, \
optimizely.com, \