This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
quotepath = false # 中文檔名如實顯示而不轉碼 | |
autocrlf = false # commit 及 checkout 時不根據作業系統轉換檔案的換行字元 (避免不小心改動原 repo 的換行字元) | |
safecrlf = false # 檢查文字類檔案是否混合了 CRLF 及 LF 換行字元 (搭配 autocrlf,這裡一起關閉) | |
ignorecase = false # 檔名大小寫不同時視為相異 (更動大小寫才能 commit) | |
whitespace = cr-at-eol # diff 時行尾 CRLF 不顯示 ^M | |
fileMode = false # 忽略檔案的 x 屬性 (for Windows) | |
symlinks = false # 忽略符號連結 (for Windows) | |
editor = /usr/bin/vim # 預設的文字編輯器 (for Linux) | |
[alias] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(e(q){e m(q){3.U=q;3.g=3.U.1f;3.o=3.g.1Y;3.R={17:1Z,1p:s,};3.B;3.t=[];3.K={};3.7=3.g.k("1b");3.7.4.1a="1c";3.7.4.H="M";3.7.4.1g="N";3.7.4.1r="N";3.7.4.1k="19%";3.7.4.1j="19%";3.7.4.1i="1V";3.7.4.1S="O";3.7.4.v="0";3.7.4.F="0";3.7.4.D="0";3.7.4.1h="#1U";3.7.1l=0;3.15=[];3.8=3.g.k("1b");3.8.4.1a="1c";3.7.4.H="M";3.8.4.1g="N";3.8.4.1r="N";3.8.4.1k="20";3.8.4.1j="1Q";3.8.4.1i="21";3.8.4.v="0";3.8.4.F="0";3.8.4.D="0";3.8.4.1h="#1P";3.8.1l=0;3.y=3.g.k("1e");3.y.4.v="1G 1J";3.y.4.F="0";3.y.4.D="1F";3.8.j(3.y);3.z=3.g.k("A");3.z.14="1I:";3.z.T("1D",e(6){b 5=l;5.X();6.f();6.V()});3.y.j(3.z);3.h=3.g.k("W");3.h.4.H="M";3.h.4.v="O";3.h.4.F="0";3.h.4.D="0";3.h.4.1o="1K";3.h. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
def safeprint(*args, errors='backslashreplace', **kargs): | |
""" | |
Print safely and skips error decode. | |
Acts like print() with an additional "errors" argument to determine the | |
error handler for codec errors and accepts non-str-or-None types for the | |
"sep" and "end" arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
#git-cache-meta -- simple file meta data caching and applying. | |
#Simpler than etckeeper, metastore, setgitperms, etc. | |
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694 | |
#modified by n1k | |
#modified by the-mars | |
# - save all files metadata not only from other users | |
# - save numeric uid and gid | |
# 2012-03-05 - added filetime, andris9 |