This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"unsafe" | |
) | |
// the dummy struct | |
type B struct { | |
dummy int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Why we don't use server side choosing mirror? | |
═══════════════════════════════════════════════ | |
The IP address family can't reflect the connection status between | |
mirror server and the user, especially in China. | |
We belive Only the user side can make the best choose. | |
2 How deepin solve the problem? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/datetime/timezone/timestamp.c b/datetime/timezone/timestamp.c | |
index 6ddb230..53a8857 100644 | |
--- a/datetime/timezone/timestamp.c | |
+++ b/datetime/timezone/timestamp.c | |
@@ -31,7 +31,7 @@ | |
static int isdst_timestamp(time_t t); | |
-DSTTime* | |
+DSTTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Normal you don't need this unless you work with multi-head and touchscreen. Below steps will associate your devices when things changed. | |
First, find the *touchscreen device* name. run "xinput | grep -i touchscreen" | |
and results will be similar to this: | |
"⎜ ↳ ELAN Touchscreen id=11 [slave pointer (2)]" | |
the "ELAN Tochscreen" or "11" can be used as device name. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this simple file show you how to read the XSettings properties (http://standards.freedesktop.org/xsettings-spec/xsettings-spec-0.5.html) | |
package main | |
import "fmt" | |
import "github.com/BurntSushi/xgb/xproto" | |
import "github.com/BurntSushi/xgb" | |
import "encoding/binary" | |
import "io" | |
import "bytes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#define NUM_THREADS 5 | |
void func(void *a) | |
{ | |
printf("/proc/%ld/exe\n", getpid()); |
NewerOlder