Skip to content

Instantly share code, notes, and snippets.

View ayucat's full-sized avatar

ayucat ayucat

View GitHub Profile
@ayucat
ayucat / aws_ebs_in_use.sh
Last active August 29, 2015 14:04
AWS EBS size
for id in $(aws ec2 describe-instances | jq -c '.Reservations[].Instances[] | select(.State.Name == "running") | .BlockDeviceMappings[].Ebs.VolumeId' | sed 's/"//g'); do aws ec2 describe-volumes | jq -c ".Volumes[] | select(.VolumeId == \"$id\") | .Size"; | done awk '{s+=$1} END {print s}'
@ayucat
ayucat / find-dup.sh
Created December 9, 2014 08:42
Find duplicated files in the directory (and sub directories)
for name in $(find . -type f | xargs -I {} basename {} | sort | uniq -d); do find . -type f -name "$name"; done
# downloading https://gist.github.com/e9e53f119c32f347e85b
patch -p0 < config/environment.rb.diff
# add executable prop to all scripts in 'script' directory.
svn ls -R script/ | grep -v '/$'| xargs -i svn ps svn:executable ON script/{}
シャッタースピードについて。
http://cweb.canon.jp/cgi-bin/camera/dcam/spec.cgi?pr=psa580
1/60~1/2000秒(オートモード)、15~1/2000秒(すべての撮影モードを合わせて)
とあるので、マニュアルで撮影すれば15秒まで取れるはずです。
下位機種でも取れるのに、上位機種のほうがスペックが低くなってて変だと思って気づいて調べたら、そうだった。
#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
require 'rubygems'
rescue LoadError
end
require 'wx'
class MinimalFrame < Wx::Frame
#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
require 'rubygems'
rescue LoadError
end
require 'wx'
#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Freely reusable code: see SAMPLES-LICENSE.TXT for details
begin
require 'rubygems'
rescue LoadError
end
require 'wx'
# This sample shows a fairly minimal Wx::App using a Frame, with a
$ sudo aptitude install flashplugin-nonfree
[...]
以下の新規パッケージが自動的にインストールされます:
nspluginwrapper
以下の新規パッケージがインストールされます:
flashplugin-nonfree nspluginwrapper
0 個のパッケージを更新、 2 個を新たにインストール、 0 個を削除予定、0 個が更新されていない。
[...]
続けますか? [Y/n/?] y
[...]
[Adblock Plus 0.7.5]
!
! *************************** MOVED ***************************
!
! Now moved the repository url as follows:
! http://git.sourceforge.jp/view?p=ayucat-list/ayucat-list.git;a=blob_plain;f=ayucat-list.txt
!
! See also:
! http://git.sourceforge.jp/view?p=ayucat-list/ayucat-list.git
!