Skip to content

Instantly share code, notes, and snippets.

View mitkot's full-sized avatar

Mitsuhiro Kotake mitkot

View GitHub Profile
@mitkot
mitkot / gist:e691d5cc633279dee417
Created December 26, 2015 05:09
Change permissions of a directory in S3
aws s3 ls --recursive s3://{bucketname}/logs/ | awk '{print $4}' | xargs -P4 -I{} aws s3api put-object-acl --acl private --bucket {bucketname} --key "{}"
@mitkot
mitkot / AppendLog.rb
Created December 23, 2015 23:19
AppendLog(ruby)
require "time"
def AppendLog(f)
f.print Time.now.strftime("%Y-%m-%d %H:%M:%S.%6N")+"\n"
end
@mitkot
mitkot / gist:2224817
Created March 28, 2012 08:44
datetime adjustment
# hwclock --show;date
# hwclock --systohc
# hwclock --show;date
# ntpdate -s (server)
or
# ntpd -q