Skip to content

Instantly share code, notes, and snippets.

@wjch
wjch / setting_user.json
Last active December 14, 2015 05:58
我的Sublime Text2用户配置
// While you can edit this file, it's best to put your changes in
// "User/Preferences.sublime-settings", which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
// 主题文件的路径
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
@wjch
wjch / playLOL.sh
Last active December 14, 2015 06:59
博客的一些代码
#!/bin/bash
cd "/home/你的用户名/.wine/drive_c/Program Files/League of Legends US/RADS/system"
WINEDEBUG=+ntdll wine "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe
@wjch
wjch / LINUX Proxy settings using export http_proxy.sh
Created March 1, 2013 17:01
LINUX Proxy settings using export http_proxy,在本shell及其子进程中进行设置
export http_proxy=http://server-ip:port/
export http_proxy=http://127.0.0.1:8087/ //GAE
export http_proxy=http://proxy-server.mycorp.com:3128/
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.wjch.util.Datasource;
public class TeaDao {
# Properties file with JDBC-related settings.
##########
# HSQLDB #
##########
#jdbc.driverClassName=org.hsqldb.jdbcDriver
#jdbc.url=jdbc:hsqldb:hsql://localhost:9001/bookstore
#jdbc.username=sa
#jdbc.password=
###########
# MySQL 5 #
@wjch
wjch / ss.sh
Last active December 16, 2015 18:20
$ ss -h
-V, --version 输出版本信息
-n, --numeric 不解析(don't resolve) service names
-r, --resolve 解析(resolve) host names
-a, --all 显示 所有socket
-l, --listening 显示 所有正在监听的socket
-o, --options 显示 timer 信息
-e, --extended 显示 详细的 socket 信息
-m, --memory 显示 socket 内存用量
<section>
<h1>新浪微博</h1>
<ul id="weibo">
<li>
<iframe width="100%" height="550" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=3&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1847991292&verifier=05eec98a&dpc=1">
</iframe>
</li>
</ul>
</section>
@wjch
wjch / _config.yml
Last active December 16, 2015 18:20
default_asides: [asides/recent_posts.html, asides/weibo.html, asides/github.html]
weibo_uid: # 填入uid
weibo_verifier: # 填入verifier
weibo_fansline: 0 # 粉丝显示多少行
weibo_show: true # 是否显示最近微博内容
weibo_pic: true # 是否显示微博中的图片
weibo_skin: 10 # 使用哪种配色风格,数字为从1开始的微博秀风格序号
[Desktop Entry]
Version=1.0
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor
Exec=sublime
Terminal=false
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
/*
sublime-imfix.c
Use LD_PRELOAD to interpose some function to fix sublime input method support for linux.
By Cjacker Huang <jianzhong.huang at i-soft.com.cn>
gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC
LD_PRELOAD=./libsublime-imfix.so sublime_text
*/
#include <gtk/gtk.h>
#include <gdk/gdkx.h>