Skip to content

Instantly share code, notes, and snippets.

cs8425 cs8425

View GitHub Profile
@cs8425
cs8425 / setDefaultNS.go
Last active Mar 21, 2019
DNS resolve workaround for android in pure go
View setDefaultNS.go
package main
import (
"fmt"
"net"
"sync"
"time"
_ "unsafe"
)
@cs8425
cs8425 / ubuntu-18.04-amd64.md
Last active Sep 21, 2018
Intel Atom x5-Z8300 7zip benchmark
View ubuntu-18.04-amd64.md

Lemel智慧電腦棒至尊版

  • CPU: Intel Atom x5-Z8300
  • RAM: DDR3 2G
  • storage: 32GB eMMC, Micro SD(max 128GB)
  • network: 802.11 b/g/n, BT 4.0 (BT not work on ubutnu 18.04)

info

user@user-NH2:~$ uname -a
Linux user-NH2 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
@cs8425
cs8425 / MSPCodes.js
Last active Sep 28, 2018
read 'USB Simulator Cable' as joystick and send to betaflight SITL via MSP over tcp.
View MSPCodes.js
// from https://github.com/betaflight/betaflight-configurator
'use strict';
//MSPCodes needs to be re-integrated inside MSP object
var MSPCodes = {
MSP_API_VERSION: 1,
MSP_FC_VARIANT: 2,
MSP_FC_VERSION: 3,
MSP_BOARD_INFO: 4,
MSP_BUILD_INFO: 5,
@cs8425
cs8425 / README.md
Last active Mar 12, 2019
How to REAL install Remix OS on VirtualBox
View README.md

How to REAL install Remix OS on VirtualBox

This is how to REAL install Remix OS on VirtualBox. rootfs could be writable!!!

Needs:

  • any linux liveCD iso file (Xubuntu here)
  • Remix OS iso file ("Remix_OS_for_PC_Android_M_32bit_B2016092201.iso" here)
  • VirtualBox
@cs8425
cs8425 / keyemu.go
Last active Dec 26, 2018
simple keyboard & mouse binding over web in golang
View keyemu.go
// build:
// GOOS=windows GOARCH=386 go build -o keyemu.exe keyemu.go
// GOOS=windows GOARCH=amd64 go build -o keyemu-x64.exe keyemu.go
// pre-build: https://mega.nz/#F!c9M0VaqK!sjUh5jwAU1tYkVv8z9YqaQ
// ref: https://github.com/micmonay/keybd_event
package main
@cs8425
cs8425 / key.sh
Created Jan 11, 2016
golang simple tcp/tls proxy
View key.sh
# wrok like:
#
# raw tcp(9999) tls(127.0.0.1:25500) raw tcp(25501)
# client =============> tcp2tls_client.go =====================> tls2tcp_server.go ==============> real server
#Generated private key
openssl genrsa -out server.key 2048
#To generate a certificate
View 7zb
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
RAM size: 2023 MB, # CPU hardware threads: 4
RAM usage: 850 MB, # Benchmark threads: 4
Dict Compressing | Decompressing
Speed Usage R/U Rating | Speed Usage R/U Rating
KB/s % MIPS MIPS | KB/s % MIPS MIPS
View app.js
/*
"name": "express",
"version": "4.12.3",
"name": "socket.io",
"version": "1.3.5",
*/
var express = require('express');
var http = require('http');
var app = express();
@cs8425
cs8425 / 7zb
Last active Oct 13, 2015
7-zip benchmark on ZenFone 2 (4G/64G) with chroot
View 7zb
cs8425@localhost:~$ 7z b
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
RAM size: 3907 MB, # CPU hardware threads: 4
RAM usage: 850 MB, # Benchmark threads: 4
Dict Compressing | Decompressing
Speed Usage R/U Rating | Speed Usage R/U Rating
@cs8425
cs8425 / proxy.js
Last active Oct 3, 2015
simple http to https proxy (with ws)
View proxy.js
var fs = require('fs');
var http = require('http');
var https = require('https');
var httpProxy = require('http-proxy');
http.globalAgent.maxSockets = 10000;
https.globalAgent.maxSockets = 10000;
var options = {
https: {
You can’t perform that action at this time.