$ wget https://github.com/FiloSottile/age/releases/download/v1.0.0-beta2/age-v1.0.0-beta2-linux-amd64.tar.gz
$ tar -xzvf age-v1.0.0-beta2-linux-amd64.tar.gz
$ sudo cp age/* /usr/local/bin/
$ age-keygen -o ~/.age/(date +%s)-(hostname).key
Compile the Redis "notifications" branch on Github. | |
Start Redis with ./redis-server --notify-keyspace-events yes | |
Subscribe to all the events with: | |
redis-cli psubscribe '*' | |
In another terminal window, play with redis-cli: set, del, expire, ... Only a few already work. |
# 元の動画をトリミング | |
ffmpeg -i DSC_3872.avi -vcodec copy -acodec copy -ss '00:00:04.33' -t '00:00:05.48' trim01.avi | |
# 横幅500px(tumblrの上限)にリサイズしつつ animated gif に変換 | |
convert -resize 500 trim01.avi trim01.gif | |
# 明るさ・コントラストをいじりつつ63色に減色(クロップ処理後に1MBに収まるように色数調整) | |
convert -brightness-contrast 40x40 -colors 63 trim01.gif trim01-v3.gif | |
# 横3x縦2にクロップする(画像同士の間隔は10px) | |
convert -crop 160x135+0+0 +repage trim01-v3.gif trim01-v3-1.gif | |
convert -crop 160x135+170+0 +repage trim01-v3.gif trim01-v3-2.gif | |
convert -crop 160x135+340+0 +repage trim01-v3.gif trim01-v3-3.gif |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<title>File API</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<h1>File API</h1> | |
<div id="result">使用できない</div> | |
<script> |