This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 ls --recursive s3://{bucketname}/logs/ | awk '{print $4}' | xargs -P4 -I{} aws s3api put-object-acl --acl private --bucket {bucketname} --key "{}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "time" | |
def AppendLog(f) | |
f.print Time.now.strftime("%Y-%m-%d %H:%M:%S.%6N")+"\n" | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hwclock --show;date | |
# hwclock --systohc | |
# hwclock --show;date | |
# ntpdate -s (server) | |
or | |
# ntpd -q |
NewerOlder