Skip to content

Instantly share code, notes, and snippets.

View jerry-ye's full-sized avatar

Jerry jerry-ye

  • Singapore
View GitHub Profile
@jerry-ye
jerry-ye / tbxf-videos
Created December 16, 2021 07:28
tfxf
We couldn’t find that file to show.
@jerry-ye
jerry-ye / port-forwarding-win-sample.ps1
Last active September 15, 2021 06:38
Port Forwarding on Windows Sample
#refer http://woshub.com/port-forwarding-in-windows/
#a sample for forwarding RSTP camera device service to local
netsh interface portproxy add v4tov4 listenport=554 connectaddress=192.168.8.106 connectport=554
netsh interface portproxy add v4tov4 listenport=8080 connectaddress=192.168.8.106 connectport=8080
#dont forget to add firewall rule, if needs to connect by other device
New-NetFirewallRule -Name rstp -DisplayName 'RSTP' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 554
New-NetFirewallRule -Name ipc -DisplayName 'IPC' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 8080
@jerry-ye
jerry-ye / DecodePass-shbeian.php
Last active April 7, 2019 16:09
EncodePass for shbeian
<?php
/**
* Usage: EncodePass <照片路径> \n
* Good luck
* 低调使用,by pass the imagecheck for shbeian
*/
if ($argc < 2) {
exit("Usage: php EncodePass <PictureFilePath> \n");
}