Skip to content

Instantly share code, notes, and snippets.

@issm
Last active August 29, 2015 14:04
Show Gist options
  • Save issm/aa41cc985f67b20cdd0f to your computer and use it in GitHub Desktop.
Save issm/aa41cc985f67b20cdd0f to your computer and use it in GitHub Desktop.
% uname -a
Darwin mizzet.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
% pwd
/Users/issm
% hoi --version
0.1.0
% cat ~/.hoi/conf.json
{
"port": 8081
}
% echo "こんにちは" > ~/tmp/hello.txt
% hoi ~/tmp/hello.txt
http://192.168.1.154:8081/bqv7h90ha4fjthvxd14sj9qiasvho6rx/hello.txt
% hoi tmp/hello.txt
http://192.168.1.154:8081/mgdyc1a5qy787iizf91xvqkgk0vw4lzv/hello.txt
% tree -a ~/.hoi
/Users/issm/.hoi
├── conf.json
└── temp_public
├── bqv7h90ha4fjthvxd14sj9qiasvho6rx
│   └── hello.txt -> /Users/issm/tmp/hello.txt
└── mgdyc1a5qy787iizf91xvqkgk0vw4lzv
└── hello.txt -> tmp/hello.txt
3 directories, 3 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment