-
Create
.smbcredentials
username=username passowrd=password
-
Chage permission to prevent unwanted access
# TC's tmux.conf | |
# ============================= | |
# ----------------------------- | |
# General settings | |
# ----------------------------- | |
# scrollback buffer n lines | |
set -g history-limit 5000 |
" vimrc file for following the coding standards specified in PEP 7 & 8. | |
" | |
" To use this file, source it in your own personal .vimrc file (``source | |
" <filename>``) or, if you don't have a .vimrc file, you can just symlink to it | |
" (``ln -s <this file> ~/.vimrc``). All options are protected by autocmds | |
" (read below for an explanation of the command) so blind sourcing of this file | |
" is safe and will not affect your settings for non-Python or non-C files. | |
" | |
" | |
" All setting are protected by 'au' ('autocmd') statements. Only files ending |
" Set the default file encoding to UTF-8: | |
set encoding=utf-8 | |
" For full syntax highlighting: | |
let python_highlight_all=1 | |
syntax on | |
" Automatically indent based on file type: | |
filetype indent on | |
" Keep indentation level from previous line: |
class DictToAttr: | |
def __init__(self, **entries): | |
for key, value in entries.items(): | |
value2 = (DictToAttr(**value) if isinstance(value, dict) else value) | |
self.__dict__[key] = value2 |
import argparse | |
class MyClass(object): | |
def __init__(self, foo, bar): | |
self.foo = foo | |
self.bar = bar | |
def Print(self): | |
print self.foo | |
print self.bar |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set completion-ignore-case on | |
set completion-prefix-display-length 3 | |
set mark-symlinked-directories On | |
set show-all-if-ambiguous On | |
set show-all-if-unmodified On | |
set visible-stats On |
[user] | |
email = hungtc@solab.me.ntu.edu.tw | |
name = tc.hung | |
[core] | |
editor = vim | |
ignorecase = false | |
[push] | |
default = matching | |
[alias] | |
tree = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) %C(cyan)%ar%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all |
#!/bin/sh | |
git filter-branch --env-filter ' | |
OLD_EMAIL="hungtc@solab.me.ntu.edu.tw" | |
CORRECT_NAME="tc.hung" | |
CORRECT_EMAIL="hungtc@solab.me.ntu.edu.tw" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |
Create .smbcredentials
username=username
passowrd=password
Chage permission to prevent unwanted access