Skip to content

Instantly share code, notes, and snippets.

@josby
josby / concat_mp4.sh
Created May 12, 2017 18:38
Concat GoPro Videos with ffmpeg
ffmpeg -f concat -safe 0 -i <(for f in ./*.MP4; do echo "file '$PWD/$f'"; done) -c copy output.MP4
@taka328w
taka328w / gist:1615946
Created January 15, 2012 14:02
/etc/hosts生成
# coding: utf-8
require 'rubygems'
require 'aws-sdk'
config = {:access_key_id => 'アクセスキー ID',
:secret_access_key => 'シークレットアクセスキー'}
AWS.config(config)
hosts = []
hosts << "127.0.0.1\tlocalhost localhost.localdomain"
@taka328w
taka328w / gist:1615935
Created January 15, 2012 13:58
EC2インスタンス生成
# coding: utf-8
require 'rubygems'
require 'aws-sdk'
require 'net/ssh'
config = {:access_key_id => 'アクセスキー ID',
:secret_access_key => 'シークレットアクセスキー'}
AWS.config(config)
ec2 = AWS::EC2.new