Skip to content

Instantly share code, notes, and snippets.

View xiaokangwang's full-sized avatar

Xiaokang Wang (Shelikhoo) xiaokangwang

View GitHub Profile
@xiaokangwang
xiaokangwang / ubuntu-cli-install-android-sdk.sh
Last active September 13, 2023 19:16 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make expect # NDK stuff
@xiaokangwang
xiaokangwang / rawudp.go
Created May 23, 2018 12:30 — forked from chrisnc/rawudp.go
constructing ip/udp packets in go
package main
import (
"bufio"
"bytes"
"encoding/binary"
"flag"
"fmt"
"net"
"os"
@xiaokangwang
xiaokangwang / sortR.awk
Created September 21, 2017 13:16
Sort Cite with Year It was written
BEGIN{
Count=0
}
{
input[Count]=$0
Count++;
}
function SortByYear(i1, v1, i2, v2, l, r) {
Year1=match(v1, /20([0-9]){2}/, year)
v1=year[0]
<div id="paint">
<canvas id="myCanvas"></canvas>
</div>
<div class="floatbtn">
<a class="btn-floating btn-large waves-effect waves-light blue">
<i class="material-icons">home</i>
</a>
</div>
@xiaokangwang
xiaokangwang / caln.go
Created March 5, 2017 12:35
Convert Calander formart, from CUEB's version to a Google Calander importable formart
package main
import (
"encoding/csv"
"fmt"
"os"
"regexp"
"strconv"
"strings"
"time"
{
"log" : {
"access": "",
"error": "",
"loglevel": "info"
},
"inbound": {
"port": 10086,
"protocol": "vmess",
"settings": {
@xiaokangwang
xiaokangwang / Markdown.md
Last active January 2, 2016 10:59
本次翻译中定义的术语
English Chinese
Subscriptions 订阅
Label 标签
Stream 节点流
peer 节点
public key 公匙
Inventory lookups 同步请求
Address 地址
Bitmessage 比特信
@xiaokangwang
xiaokangwang / strings.xml
Last active December 29, 2015 17:29
Chinese translation of dsploit
<resources>
<string name="app_name">dSploit</string>
<string name="menu_settings">设置</string>
<string name="title_activity_main">dSploit</string>
<string name="crash_toast_text">额!崩溃了...不过我将给我的开发者发送报告来帮助解决这个问题。</string>
<string name="toggle_button">切换按钮</string>
<string name="enter_redirection_details">在下方键入跳转详情:</string>
<string name="address">地址</string>
<string name="port">端口</string>
<string name="target">目标</string>
@xiaokangwang
xiaokangwang / init.sh
Last active December 21, 2015 16:19
shell script to make a file secured and ready for upload for web UI.
sudo apt-get install par2
openssl genrsa -out ~/BACKUPMASTERKEY.pem 8192
openssl rsa -in ~/BACKUPMASTERKEY.pem -pubout >> ~/BACKUPMASTERKEY_pub.pem
// ==UserScript==
// @name fuck http://imgclick.net
// @namespace https://kkdev.org
// @include http://imgclick.net/*
// @version 1
// @grant none
// ==/UserScript==
$(document).ready(function(){
$(".fuckadb").css("display","block")