Skip to content

Instantly share code, notes, and snippets.

@jouyouyun
jouyouyun / work-plan.md
Last active August 29, 2015 14:04
The work plan

#下半年工作计划#

##dde-daemon 完善##

###总体任务###

整理优化代码,保持结构清晰,去除冗余代码

逐步使用go替换c代码

@jouyouyun
jouyouyun / test.md
Last active August 29, 2015 14:05
Test table
@jouyouyun
jouyouyun / test_malloc.c
Last active August 29, 2015 14:05
Test malloc
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int *p;
p = (int*)malloc(sizeof(int));
if (p == NULL) {
@jouyouyun
jouyouyun / compile.sh
Created August 28, 2014 02:42
compile test_mouse.c
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
@jouyouyun
jouyouyun / source.list
Created December 25, 2014 02:00
source.list
#############################################################
################### 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
@jouyouyun
jouyouyun / zone_info.json
Created May 5, 2015 07:12
Timezone info
{
"ZoneInfoList":[
{
"Zone": "Pacific/Midway",
"UTCOffset": "-11:00",
"Desc": "Midway",
"HasDST": false,
"DSTOffset": ""
},
{
@jouyouyun
jouyouyun / fc-match.c
Created July 30, 2015 12:43
Test fontconfig match
#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);
@jouyouyun
jouyouyun / shadowsocks-libev.md
Created September 1, 2015 08:25
Shadowsocks libev

shadowsocks-libev

Intro

Shadowsocks-libev is a lightweight secured socks5 proxy for embedded devices and low end boxes.

It is a port of shadowsocks

@jouyouyun
jouyouyun / ci_summit.md
Last active January 18, 2016 14:44
ci_summit
 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?
@jouyouyun
jouyouyun / debug.md
Last active January 20, 2016 08:51
Debug methods