Skip to content

Instantly share code, notes, and snippets.

View summerwind's full-sized avatar
📡

Moto Ishizawa summerwind

📡
View GitHub Profile
@jvehent
jvehent / age demo.md
Created January 6, 2020 15:53
age-encryption.org demo

Download & install

$ 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/

Generate a keypair

$ age-keygen -o ~/.age/(date +%s)-(hostname).key
@atsuya
atsuya / yc-startups-review.md
Last active August 29, 2015 14:07
yc startups review

It has a new home!

レビューはレポジトリに足していくことにしました。他のレビューは、そちらを参照ください。

yc startups review

このリストを上から見ていって、興味深いものに対するメモを残す。

アイコンの意味

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.
@mirakui
mirakui / memo.txt
Created September 2, 2012 12:48
ffmpeg+ImageMagickによる分割アニメーションGIF作成コマンドメモ
# 元の動画をトリミング
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>