Skip to content

Instantly share code, notes, and snippets.

View qwIvan's full-sized avatar

yang chanfa qwIvan

View GitHub Profile
@qwIvan
qwIvan / serverspeeder-all.sh
Created April 19, 2016 09:06 — forked from rptec/serverspeeder-all.sh
锐速破解版一键安装。
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
#定义变量
#授权文件自动生成url
APX=http://soft.91yun.org/soft/serverspeeder/apx1.php
#安装包下载地址
INSTALLPACK=http://soft.91yun.org/soft/serverspeeder/91yunserverspeeder.tar.gz
function (sInput){
var sOutput='';
for(var i=0,c=sInput.length;i<c;i++){
var nChar=sInput.charCodeAt(i);
if(nChar>=33&&nChar<=126){
sTmp=String.fromCharCode(33+(((nChar-33)+47)%94));
sOutput+=sTmp
}else{
sOutput+=sInput.charAt(i)
}
@qwIvan
qwIvan / SslUtil.java
Created October 21, 2015 02:56 — forked from sharonbn/SslUtil.java
SSL/TLS connection from Eclipse Paho Java client to mosquitto MQTT broker
import java.io.*;
import java.nio.file.*;
import java.security.*;
import java.security.cert.*;
import javax.net.ssl.*;
import org.bouncycastle.jce.provider.*;
import org.bouncycastle.openssl.*;
public class SslUtil