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
use std::{borrow::Borrow, collections::{HashMap, VecDeque}, fmt::Debug, hash::Hash}; | |
//////////////////////////////////////////////////////////////////////////////// | |
//// Macro | |
#[macro_export] | |
macro_rules! get { | |
($var:expr => $($e:expr),+) => { | |
{ |
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
alias m6pwd="rlwrap python -m minghu6.tools.pwd_keeper" | |
alias pm="rlwrap python -m" | |
alias m6ff="python -m minghu6.tools.ff" | |
alias m6uuid="python -m minghu6.tools.path2uuid" | |
alias m6auto_resume="python -m minghu6.tools.auto_resume" | |
alias m6text="pm minghu6.tools.text" | |
alias ssd="sudo sslocal -c ~/.shadowsocks.json --log-file ~/log/shadowsocks.log -d start" | |
alias ccl="rlwrap ~/coding/CL/official-repos/ccl-dev/ccl/lx86cl64" | |
alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.9.2-complete.jar:$CLASSPATH" org.antlr.v4.Tool' | |
alias grun='java -Xmx500M -cp "/usr/local/lib/antlr-4.9.2-complete.jar:$CLASSPATH" org.antlr.v4.gui.TestRig' |
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
# pr joker1 | |
review_queue = PRQ.new | |
mypr = :mypr | |
while conflict? review_queue.wait(mypr) | |
fix_and_rebase mypr | |
review_queue.push mypr | |
end |
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/bash | |
DEFAULT_PORT=9009; | |
port=$DEFAULT_PORT; | |
pring_usage(){ | |
echo "Usage: jardb [-p=port default: $DEFAULT_PORT] target-jar"; | |
} | |
while getopts ":p:h" optname |
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
[filter "lfs"] | |
process = git-lfs filter-process | |
required = true | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
[user] | |
name = minghu6 | |
email = a19678zy@163.com | |
[color] |