Skip to content

Instantly share code, notes, and snippets.

View NilFoss's full-sized avatar

w.nil NilFoss

  • Sheng Zheng,China
View GitHub Profile
@NilFoss
NilFoss / .gitconfig
Created July 19, 2021 05:54 — forked from rambabusaravanan/.gitconfig
Git Diff and Merge Tool - IntelliJ IDEA
# Linux
# add the following to "~/.gitconfig" file
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /usr/local/bin/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]
TASKKILL /F /IM wechat.exe
start "" "C:\Program Files (x86)\Tencent\WeChat\WeChat.exe"
start "" "C:\Program Files (x86)\Tencent\WeChat\WeChat.exe"
@NilFoss
NilFoss / ss_att2.py
Created July 21, 2017 11:29
Shadowsocks attack
#!/usr/bin/env python
#-*- coding: utf-8 -*-
'''
Copyleft (c) 2015 breakwa11
https://github.com/breakwa11/shadowsocks-rss
'''
import logging
import socket
@NilFoss
NilFoss / git配置
Last active September 23, 2020 13:01
#设置git的显示图形
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
#带签名的git log日志
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
#带签名的git log日志 格式化时间
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --date=rfc --abbrev-commit"
#使用gpg2签名
gpg.program=gpg2
commit.gpgsign=true
user.signingkey=1D45E99E62473ADF
@NilFoss
NilFoss / gist:8a2da165296dadde4de9
Created May 8, 2015 04:22
vim spf13中文乱码解决方案
Windows下初始使用vim spf13一上来就会中文乱码。
注释掉 .vimrc.bundles 中的
set encoding=utf-8