Skip to content

Instantly share code, notes, and snippets.

View shalk's full-sized avatar
🎯
Focusing

shalk(xiao kun) shalk

🎯
Focusing
View GitHub Profile
@shalk
shalk / git-clone-helper.pl
Last active October 12, 2019 06:59
when clone git repo from http or git protocol ,it will create directory in user_home; egg: git-clone-helper.pl https://github.com/github/fetch , clone into directory /home/me/code/github.com/github/fetch
#!/usr/bin/env perl
use feature qw(say);
$num_args = $#ARGV + 1;
if ($num_args < 1) {
print "usage: git-clone url" ;
exit
}
$addr = $ARGV[0];
@shalk
shalk / MyCacheWrapper.java
Created March 8, 2021 11:12
MyCacheWrapper
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
import java.util.HashMap;
/**
* doc.
*
@shalk
shalk / redis.sh
Created January 21, 2022 06:56
本地启动redis
docker run --name some-redis -p 6379:6379 -d redis redis-server --requirepass 123123