Skip to content

Instantly share code, notes, and snippets.

View xiaokangwang's full-sized avatar

Xiaokang Wang (Shelikhoo) xiaokangwang

View GitHub Profile
@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 / 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
<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>