Skip to content

Instantly share code, notes, and snippets.

Avatar
😂
Face With Tears of Joy...

Lixingcong lixingcong

😂
Face With Tears of Joy...
View GitHub Profile
@lixingcong
lixingcong / Employee.java
Last active Jun 5, 2016
java.io.Serializable Sample
View Employee.java
package seq;
public class Employee {
public String name;
public int age;
}
@lixingcong
lixingcong / .gitconfig
Last active Apr 9, 2019
A simple configure template for git commands. 注意:不再更新,新版存放在Dropbox上 2019-04-09
View .gitconfig
[user]
name = xxx
email = xxx@xx.com
signingkey = 37A9AD93
[push]
default = simple
[alias]
ad = add *
cm = commit -am
cmt = commit -m
@lixingcong
lixingcong / domains.txt
Last active Feb 22, 2020
[deprecated in 2016] a script to generate chinadns_blacklist.txt
View domains.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 Oct 15, 2016
nginx reverse proxy for google
View nginx_google_version1.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;
events {
@lixingcong
lixingcong / Makefile.partial
Last active Aug 7, 2016
Redirect std stream to USARTx for STM32F103 device
View Makefile.partial
# 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 Nov 22, 2019
Amplify block list for my phone
View Amplify.txt
微信
版本 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 Sep 3, 2018
nginx reverse proxy for google(another version)
View nginx_google_version2.conf
# 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 Dec 4, 2019
shadowsocks-libev startup script
View config_local.json
{
"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 Feb 20, 2020
nginx autoindex timezone setting
View my_site.conf
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 Sep 10, 2016 — forked from davidzchen/sample-google.c
Sample C code using the Google C++ style guide
View sample-google.c
// 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
//