# get UTC date (rfc-2822) for Unix epoch
date -Ru -r 0
# get Local time date for Unix epoch
date -R -r 0
# as above but for gdate and rfc-3339
gdate --rfc-3339=seconds -ud @0
## current UTC in epoch millisecondsRun instance with non-default EBS size
instance_id=$(aws ec2 run-instances \
--image-id YOUR_AMI \
--count 1 \
--instance-type t2.medium \
--block-device-mappings 'DeviceName=/dev/sda1,Ebs={VolumeSize=32}' \
--iam-instance-profile Arn=$iam_profile \
--key-name $key_name \
Assigning with list
list('field' => $field_name,
'value' => $field_value,
'reject' => $reject) = $r;Iterating through array with index
foreach ($audio_list as $key => $audio_item) {
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-dev=ssh -i ~/.ssh/aws-dev [email protected] | |
| aws-ent=ssh -i ~/.ssh/aws-ent [email protected] | |
| aws-prod=ssh -i ~/.ssh/aws-prod [email protected] |
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
| # configuration for option-stacking | |
| zstyle ':completion:*:*:docker:*' option-stacking yes | |
| zstyle ':completion:*:*:docker-*:*' option-stacking yes |