Skip to content

Instantly share code, notes, and snippets.

View lixingcong's full-sized avatar
😂
Face With Tears of Joy...

Lixingcong lixingcong

😂
Face With Tears of Joy...
View GitHub Profile
@lixingcong
lixingcong / Employee.java
Last active June 5, 2016 02:45
java.io.Serializable Sample
package seq;
public class Employee {
public String name;
public int age;
}
@lixingcong
lixingcong / .gitconfig
Last active April 9, 2019 09:04
A simple configure template for git commands. 注意:不再更新,新版存放在Dropbox上 2019-04-09
[user]
name = xxx
email = [email protected]
signingkey = 37A9AD93
[push]
default = simple
[alias]
ad = add *
cm = commit -am
cmt = commit -m
@lixingcong
lixingcong / domains.txt
Last active February 22, 2020 11:56
[deprecated in 2016] a script to generate chinadns_blacklist.txt
google.com
twitter.com
tumblr.com
facebook.com
youtube.com
telegram.org
instagram.com
fbcdn.net
google.de
google.co.jp
@lixingcong
lixingcong / nginx_google_version1.conf
Last active October 15, 2016 16:34
nginx reverse proxy for google
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
@lixingcong
lixingcong / Makefile.partial
Last active August 7, 2016 03:34
Redirect std stream to USARTx for STM32F103 device
# toolchain: gcc-arm-none-eabi(Linux), pleas use newlib_stubs.c
OBJS += newlib_stubs.o
CFLAGS += -ffunction-sections -fdata-sections -fno-builtin
LDFLAGS += --specs=nano.specs -lc -lnosys
# toolchain: keil MDK(Windows), please use redirect_file_stream.c
# Please check 'USE MicroLIB'
@lixingcong
lixingcong / Amplify.txt
Last active November 22, 2019 00:27
Amplify block list for my phone
微信
版本 6.7 GooglePlay版
唤醒锁
正则表达式 WakerLock:+[0-9]{0,26} 间隔999999
SyncService
StnCallBack
定时器
# 正则表达式设置Amplify链接 https://forum.xda-developers.com/showpost.php?p=64411243&postcount=6237
正则表达式 ALARM_ACTION+[(0-9)]{0,26} 间隔999999
com.tencent.mm/.booter/MMReceivers$AlarmReceiver 间隔60
@lixingcong
lixingcong / nginx_google_version2.conf
Last active September 3, 2018 14:27
nginx reverse proxy for google(another version)
# https://github.com/arnofeng/ngx_google_deployment/blob/master/nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@lixingcong
lixingcong / config_local.json
Last active December 4, 2019 01:42
shadowsocks-libev startup script
{
"server":"123.123.123.123",
"server_port":8989,
"local_port":1080,
"password":"password",
"timeout":300,
"nameserver":"8.8.4.4",
"method":"salsa20",
"mode":"tcp_and_udp",
"fast_open": false,
@lixingcong
lixingcong / my_site.conf
Last active October 18, 2022 06:23
nginx autoindex timezone setting
location ^~ /demo {
alias /var/www/demo/;
autoindex on;
# set to on means use localtime
autoindex_localtime on;
# show size with unit 'MB' instead of 'Byte'
autoindex_exact_size off;
}
@lixingcong
lixingcong / sample-google.c
Created September 10, 2016 08:43 — forked from davidzchen/sample-google.c
Sample C code using the Google C++ style guide
// Sample file using the Google C++ coding standard.
//
// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
//
// General rules:
// - Indents are two spaces. No tabs should be used anywhere.
// - Each line must be at most 80 characters long.
// - Comments can be // or /* but // is most commonly used.
// - File names should be lower_case.c or lower-case.c
//