最近因为要支持其它平台, 但那个平台的电源管理做的不完全, 电池的状态不能通过 upower
获取到, 只能通过读文件来得到.
开始的时候是通过 patch
的方式来处理这个问题的, 就是每次在编译那个平台的程序时都会先打上这个 patch
.
inputdevices: fixed deadlock
- using mouse's double-click and drag-threshold replace tpad's
- add global var 'xsSetting' to avoid gsettings signal cycle emit. But why?
Shadowsocks-libev is a lightweight secured socks5 proxy for embedded devices and low end boxes.
It is a port of shadowsocks
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 <fontconfig/fontconfig.h> | |
#include <stdio.h> | |
int | |
main (int argc, char* argv[]) | |
{ | |
char* key = "monospace"; | |
FcObjectSet* os = NULL; | |
// configure the search pattern | |
FcPattern* pat = FcNameParse((FcChar8*)key); |
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
{ | |
"ZoneInfoList":[ | |
{ | |
"Zone": "Pacific/Midway", | |
"UTCOffset": "-11:00", | |
"Desc": "Midway", | |
"HasDST": false, | |
"DSTOffset": "" | |
}, | |
{ |
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
############################################################# | |
################### OFFICIAL UBUNTU REPOS ################### | |
############################################################# | |
###### Ubuntu Main Repos | |
deb http://ca.archive.ubuntu.com/ubuntu/ trusty main restricted universe | |
deb-src http://ca.archive.ubuntu.com/ubuntu/ trusty main restricted universe | |
###### Ubuntu Update Repos | |
deb http://ca.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe |
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
sudo apt-get install libgtk-3-dev libglib2.0-dev libxi-dev | |
gcc -Wall -g test_mouse.c `pkg-config --libs --cflags xi gdk-3.0 glib-2.0` -o test-mouse |
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 <stdio.h> | |
#include <stdlib.h> | |
int | |
main () | |
{ | |
int *p; | |
p = (int*)malloc(sizeof(int)); | |
if (p == NULL) { |
###Email config###
imap/pop | smtp | |
---|---|---|
[email protected] | imap.googlemail.com:993 | smtp.googlemail.com:465 |
[email protected] | imap.126.com:143 | smtp.126.com:25 |
[email protected] | pop.exmail.qq.com:995 | smtp.exmail.qq.com:465 |
[email protected] | imap.exmail.qq.com:993 | smtp.exmail.qq.com:465 |