Skip to content

Instantly share code, notes, and snippets.

View lovejavaee's full-sized avatar
👋
Java | C++ | Python | ML | DL

Jeff M lovejavaee

👋
Java | C++ | Python | ML | DL
View GitHub Profile
# You can put files here to add functionality separated per file, which
# will be ignored by git.
# Files on the custom/ directory will be automatically loaded by the init
# script, in alphabetical order.
# For example: add yourself some shortcuts to projects you often work on.
#
# brainstormr=~/Projects/development/planetargon/brainstormr
# cd $brainstormr
#
#/bin/sh
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
@lovejavaee
lovejavaee / .editorconfig
Last active September 19, 2018 03:30
editor config
root=true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.java]
indent_style = tab
indent_size = 4
Host *
# ForwardAgent no
ForwardX11 yes
ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
function proxy_on(){
export no_proxy = "localhost,127.0.0.1,localaddress,.localdomain.com"
export http_proxy = "http://127.0.0.1:1081"
export https_proxy = $http_proxy
export socket_proxy = "socks5://127.0.0.1:1081"
echo -e "Proxy Open!"
}
function proxy_off(){
unset http_proxy
@lovejavaee
lovejavaee / gpg-public-key
Created September 12, 2018 22:45
gpg, public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFsKnlEBEADhxnmK1JaDvOG7G13MQyMEfPd7UwRE8QMdQ+VKttqONefBi6rC
xCTn01ivV34TvD7Yur8Se/aDx8EEBbpqv3HZqrCDM0hoyY/V/aC4YcnvgDBE44YK
Z2CsINAsyNGfxaXTM/mtyKX1VyRknsMKQNeimMDBzhsocqpWzNjqCGxn0HBLQmxK
nHJzhrK7BTO/og1p48laAwoigw/74OeZl20C1+WiZy7zqgTq0Rw27o1bsjhryzRC
/xWoKUDjq9pINZcJbOqYCvEd0fSwOd7aRUUdgME0nJqvze4zROvDM1YnZpPEREqh
egjxfqRK8r/EA4jiohV7FMU7WJx9lvuB7jPFA2CQ/7HFe0C3rZHL2yTSQDulNkRQ
C5LVsNWzxzR3KgPWEn03PpsZeB0cLnxL/jyMm/CH3lkvwsmJNOhoaltjHiYVOqMW
u8b9j7Dage7Ve5jnXFtjvIm34PJSdUeTCg4LBHEGrJ3PTDGyjLac2SZy40LrgDG6
From http://pgp.mit.edu/faq.html:
You cannot delete keys nor modify UIDs for keys uploaded to PGP key servers.
To change your email, you must add a new UID.
$ gpg --edit-key <keyID>
gpg> adduid
Real name: <name>
@lovejavaee
lovejavaee / gpg-brief
Created September 9, 2018 13:54
GPG GNU Privacy Guard
OS X Install GnuPG
brew install gpg
生成自己的钥匙
gpg --gen-key
导出公钥
gpg --armor --output filename --export [UID]
导入公钥
@lovejavaee
lovejavaee / zsh-Proxy
Created September 7, 2018 16:43
command line proxy switch
#############################################################
# For Proxy
# export http_proxy="127.0.0.1:1080"
# export http_proxy="socks5://127.0.0.1:1080"
# export ALL_PROXY=socks5://127.0.0.1:1080
# alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1080"
# alias unsetproxy="unset ALL_PROXY"
# alias ip="curl -i http://ip.cn"
# export http_proxy="127.0.0.1:1080"
# export http_proxy="socks5://127.0.0.1:1080"