Skip to content

Instantly share code, notes, and snippets.

{
"testdef_repos": [
{
"git-repo": "https://github.com/x-deepin/network-testing-experiments.git",
"parameters": {
"ADAPTER_TYPE": "wired",
"IPERF3_SERVER": "10.0.3.133",
"TIME": 30
},
"testdef": "network-testing-wired.yaml"
@snyh
snyh / containerOf
Created June 30, 2016 00:47
Implement simple containerOf in Golang
package main
import (
"fmt"
"unsafe"
)
// the dummy struct
type B struct {
dummy int
package main
import (
"bytes"
"fmt"
"github.com/disintegration/imaging"
"golang.org/x/image/font"
"golang.org/x/image/font/basicfont"
"golang.org/x/image/math/fixed"
"image"
@snyh
snyh / anbox.install.deepin
Created April 14, 2017 05:29
install anbox in deepin 2015.4
wget https://raw.githubusercontent.com/anbox/anbox-installer/84b3ea95ebfa71723a62eb9291d62884b9306555/installer.sh -O install.sh
patch install.sh <<EOF
26c26
< SUPPORTED_DISTROS=("Ubuntu" "LinuxMint" "neon" "elementary")
---
> SUPPORTED_DISTROS=("Ubuntu" "LinuxMint" "neon" "elementary", "Deepin")
148c148
< sudo apt install -y software-properties-common linux-headers-generic
---