Skip to content

Instantly share code, notes, and snippets.

View yxjxx's full-sized avatar
🎯
Focusing

Jing Yang yxjxx

🎯
Focusing
View GitHub Profile
@yxjxx
yxjxx / python_socket_file_sender
Last active August 29, 2015 13:57
python_socket_file_sender
import socket
import threading
import sys
import os
import time
def Server_send_file(conn):
while True:
try:
@yxjxx
yxjxx / ReInstall.sh
Last active August 29, 2015 13:57
ReInstall.sh
#apt-get {{{
#Chinese input method
sudo add-apt-repository ppa:fcitx-team/nightly #ubuntu12.04 needed
sudo add-apt-repository ppa:lotem/rime
sudo apt-get update
sudo apt-get install fctix-rime #recommanded;config fcitx use "fcitx-configtool";uncheck "only show current language" then search rime
#allow Conntected by ssh
sudo apt-get install openssh-server
@yxjxx
yxjxx / gist:7853894
Created December 8, 2013 06:07
Mint16 software source list
#hust ubuntu13.10
deb http://mirrors.hust.edu.cn/ubuntu/ saucy main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-security main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-updates main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-proposed main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy-security main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy-updates main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy-proposed main restricted universe multiverse
@yxjxx
yxjxx / alternative.yaml
Last active March 15, 2025 12:48 — forked from lotem/alternative.yaml
Rime中文输入状态下也使用英文标点
###中文输入法下也使用英文标点2013/8/14 yxj
###有些用戶習慣在中文裏使用ASCII標點,那麼與其一個一個覆寫,不如 整套都換掉 。
###取得這份設定檔—— Rime 別樣設定,使用西文標點(一个gist:https://gist.github.com/lotem/2334409) 在用戶資料夾保存爲 alternative.yaml ;
###再將輸入方案中的「導入 default 設定」通過打 patch 替換爲「導入 alternative 設定」
###刚刚遇到一个问题,因为教程里面说需要这前两行,所以就直接粘贴了,但是发现模糊音失效了,找到原因是[只能有一个patch:,因为上面已经有了,所以就下面就不要了,注意缩进,两个英文空格]
###又加入了一行代码['key_binder/import_preset': alternative]作用是让[ ]可以翻页,如果一开始就用 [ 上翻页的会连高亮的字加[都一起上屏「比如你好[ 」就会这样了,哈哈
###patch:
##'punctuator/import_preset': alternative
##'key_binder/import_preset': alternative
######
@yxjxx
yxjxx / default.custom.yaml
Last active December 20, 2015 22:29
ibus-rime配置文件修改中西文切换按键:新增文件 default.custom.yaml
# default.custom.yaml
#
# 修改中西文切换按键
# 佛振配製 :-)
# Modify by yxjxx
#
#
# 切換方式代碼:
# noop:不切換(Control鍵的默認行爲)
# inline_ascii:當已輸入編碼時,不上屏、內聯式編輯西文,回車上屏後復位爲中文模式(左Shift默認行爲)
@yxjxx
yxjxx / luna_pinyin_simp.custom.yaml
Last active September 12, 2018 13:29
ibus-rime模糊音:新增文件 luna_pinyin_simp.custom.yaml
# luna_pinyin_simp.custom.yaml
#
# 【朙月拼音】模糊音定製模板
# 佛振配製 :-)
# Modify by yxjxx
#
# 位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)