Skip to content

Instantly share code, notes, and snippets.

@trytone
trytone / nbox-stream-from-pc
Last active May 7, 2021
Stream Screen Capture Video From PC to NBOX 5800S Device using RTMP protocol
View nbox-stream-from-pc
Replace all 192.168.0.2 with your local IP
NBOX 5800S:
1. Login to device by telnet/ssh and run "wget http://iptvplayer.pl/iptvinstaller.sh -O - | /bin/sh"
2. Run "echo 'streamPC; rtmp://192.168.0.2/view/test' > /hdd/urllist.txt"
3. Reboot device
4. "SETUP" button => "Plugins" => "IPTV Player" or "E2iPlayer" => All plugins (rubic cube icon) => Urllists player ( white document icon ) => All => streamPC
Windows 10:
@trytone
trytone / pronto_hex_eufy_robovac_11.txt
Created Jan 28, 2020
Pronto HEX codes for EUFY RoboVac11
View pronto_hex_eufy_robovac_11.txt
Right : 0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0039 0013 0039 0013 0013 0013 0039 0013 0072
Left : 0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0013 0013 0039 0013 0039 0013 0039 0013 0013 0013 0072
Up : 0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 00
@trytone
trytone / EUFY_RoboVac11.irplus
Last active Jan 28, 2020
irplus xml for EUFY RoboVac11
View EUFY_RoboVac11.irplus
<irplus>
<device manufacturer="EUFY" model="RoboVac V11" columns="12" format="PRONTO_HEX" repeatheader="false" frequency="38028">
<button label="&#1045214;" labelSize="20.0" span="6">0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0039 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0039 0013 0013 0013 0039 0013 0039 0013 0039 0013 0072</button>
<button label="AUTO" labelSize="20.0" span="6" backgroundColor="FFC84334">0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 001
@trytone
trytone / raw_ir_to_pronto_hex.pl
Last active Jan 28, 2020
Convert RAW IR to Pronto Hex
View raw_ir_to_pronto_hex.pl
use Data::Dumper;
# inputs
my $data = {
'Home' => '3000 3000 500 500 500 1500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 1500 500 1500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 1500 500 1500 500 500 500 1500 500 1500 500 1500 500',
'Auto' => '3000 3000 500 500 500 1500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 500 500 500 500 500 500',
'Spot' => '3000 3000 500 500 500 1500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 5
@trytone
trytone / mitm_proxy.js
Created Mar 20, 2019
Node.js MITM HTTP proxy
View mitm_proxy.js
var http = require('http');
var httpProxy = require('http-proxy');
var body = require("body");
var proxy = httpProxy.createProxyServer({secure:false});
proxy.on('proxyReq', (proxyReq, req) => {
if (req.body) {
console.log(req.body);
proxyReq.setHeader('Content-Length', Buffer.byteLength(req.body));
proxyReq.write(req.body);
@trytone
trytone / panasonic-sa-ak18-remote-codes.txt
Created Aug 29, 2018
Panasonic SA-AK18 REMOTE HEX CODES
View panasonic-sa-ak18-remote-codes.txt
POWER: 0x0538 0xBC81
VOL-: 0x0500 0x8481
VOL+: 0x0500 0x0401
AUX: 0x0500 0x595C
AUTO OFF: 0x0538 0x1924
SLEEP: 0x0538 0x6954
MUTING: 0x0500 0x4C49
DISK: 0x0550 0x2570
>=10: 0x0538 0x211C
@trytone
trytone / manta-3204.irplus
Last active Aug 29, 2018
IRPlus - Manta 3204
View manta-3204.irplus
<irplus>
<device manufacturer="MANTA" model="3204" columns="12" format="WINLIRC_NEC1" bits="16" pre-bits="16">
<button label="&#61457;" labelSize="25.0" span="4" backgroundColor="FFC84334">0x04fb 0x4ab5</button>
<button label="&#1045889;" labelSize="25.0" span="4">0x04fb 0xca35</button>
<button label="TV/AV" labelSize="18.0" span="4">0x04fb 0x02fd</button>
<button label="EPG" labelSize="18.0" span="4">0x04fb 0xea15</button>
<button label="P+" labelSize="18.0" span="4">0x04fb 0x40bf</button>
<button label="EXIT" labelSize="18.0" span="4">0x04fb 0x50af</button>
@trytone
trytone / MANTA-3204-HEX-REMOTE-CODES
Last active Aug 16, 2021
MANTA TV 3204 NEC1 HEX REMOTE CODES
View MANTA-3204-HEX-REMOTE-CODES
POWER: 0x04fb 0x4ab5
MUTE: 0x04fb 0xca35
SOURCE: 0x04fb 0x02fd
EPG: 0x04fb 0xea15
EXIT: 0x04fb 0x50af
FAVOURITE: 0x04fb 0x58a7
TIMER: 0x04fb 0x728d
^: 0x04fb 0xe21d
@trytone
trytone / varcount.pl
Created Feb 11, 2018
Perl - count variables in source code
View varcount.pl
use Data::Dumper;
# usage: perl varcount.pl source.pl
open(X,$ARGV[0]);
my @lines = <X>;
close(X);
my $lineCount = 1;
my $variables = {};
foreach my $line (@lines){
@trytone
trytone / tk-touch-keyboard.pl
Last active Feb 19, 2018
Perl Tk - Simple touch keyboard
View tk-touch-keyboard.pl
sub keyboard{
# init by : keyboard(\$mw->Frame()->pack(-side => 'bottom', -anchor => 'se'));
my $ref = shift;
my @numbersArray = ([(7..9)],[(4..6)],[(1..3)]);
my $keyboardFont = $$ref->Font(-size => 18);
my $keyboardFrame = $$ref->Frame(-padx => 10, -pady => 10)->pack( -fill => 'y', -expand => 1);
my $keyboardLeft = $keyboardFrame->Frame()->pack(-side => 'left');
my $keyboardRight = $keyboardFrame->Frame->pack(-side => 'right', -anchor => 'ne', -fill => 'both', -expand => 1);