Skip to content

Instantly share code, notes, and snippets.

View jiahut's full-sized avatar
🎯
Focusing

zhijia,.zhang jiahut

🎯
Focusing
View GitHub Profile
@jiahut
jiahut / install-ansible.md
Last active June 6, 2019 12:25
install latest ansible

say -v ? say -v Alex 'I love this game'

docker

docker run --name aria -d -p 6800:6800 -p 80:80 -v /mnt/sg/aria2_data:/data jiahut/aria2-ui:1

tools on debian

apt install net-tools -y

aria2 docker

#!/bin/bash
set -o errexit # set -e
set -o pipefail
# https://superuser.com/questions/100288/how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4
OPTIONS=dio:v
LONGOPTS=debug,info,output:,verbose
@jiahut
jiahut / dict.rb
Last active June 29, 2019 13:31
two lines implement dictionary query
#!/usr/bin/env ruby
abort("please spectify a word") unless word = ARGV[0]
puts `curl -s 'http://dict-co.iciba.com/api/dictionary.php?key=79085A8D69548E2DC4CBEC053A8124FC&type=json&w=#{word}' | jq -r '.symbols[]?.parts[]?.means[]?'`