This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A Http Server to verify an Apple IAP Receipt | |
* Return with Receipts data | |
* Usage Example: curl -X POST http://127.0.0.1:5000/verifyReceipt -d '{"receipt-data":"apple receipt base64 data"}' | |
*/ | |
package main | |
import ( | |
"crypto/rsa" | |
"crypto/x509" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//********************************************************************************** | |
// | |
//OpenSSLKey | |
// .NET 2.0 OpenSSL Public & Private Key Parser | |
// | |
// Copyright (C) 2008 JavaScience Consulting | |
// | |
//*********************************************************************************** | |
// | |
// opensslkey.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* simple tcp proxy with timeout failover | |
* thanks to: | |
* https://github.com/xtaci/kcptun | |
* https://github.com/jpillora/go-tcp-proxy | |
*/ | |
package main | |
import ( | |
"flag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//simple tool can forward a 'listen:port' to 'forward:port' though a 'socks5://server:port' | |
//usage socks5-forward listen:port forward:port socksurl | |
package main | |
import ( | |
"io" | |
"log" | |
"net" | |
"os" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fcntl | |
import os | |
import struct | |
import subprocess | |
# Some constants used to ioctl the device file. I got them by a simple C | |
# program. | |
TUNSETIFF = 0x400454ca | |
TUNSETOWNER = TUNSETIFF + 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IdentityModel.Tokens; | |
using System.Security.Claims; | |
using System.Security.Cryptography; | |
namespace CreateValidateJWT | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.cn | |
.163.com | |
.126.net | |
.csdn.net | |
.jd.com | |
.alicdn.com | |
.tanx.com | |
.mmstat.com | |
.360buy.com | |
.360buyimg.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Download realtek r8168 linux driver from official site [http://www.realtek.com/downloads/downloadsView.aspx?PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3] | |
#Unpack source file | |
#Replace orginal Makefile with this file | |
#Put this source to 'package' folder of OpenWRT/LEDE SDK | |
#Build(make menuconfig, make defconfig, make) | |
include $(TOPDIR)/rules.mk | |
include $(INCLUDE_DIR)/kernel.mk | |
PKG_NAME:=r8168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.IdentityModel.Tokens; | |
using System; | |
using System.IdentityModel.Tokens.Jwt; | |
using System.Text; | |
namespace JwtTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
NewerOlder