sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| ### Cloudwatch Events ### | |
| # Event rule: Runs at 8pm during working days | |
| resource "aws_cloudwatch_event_rule" "start_instances_event_rule" { | |
| name = "start_instances_event_rule" | |
| description = "Starts stopped EC2 instances" | |
| schedule_expression = "cron(0 8 ? * MON-FRI *)" | |
| depends_on = ["aws_lambda_function.ec2_start_scheduler_lambda"] | |
| } | |
| # Runs at 8am during working days |
| variable "object_list" { | |
| type = "map" | |
| default = { | |
| content1 = "this is example content 1", | |
| content2 = "this is example content 2" | |
| } | |
| } | |
| resource "local_file" "local_files" { | |
| count = "${length(var.object_list)}" # perform this action based on the amount of items in the map |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
| rabbitmqctl add_user test test | |
| rabbitmqctl set_user_tags test administrator | |
| rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
To remove a submodule you need to:
| <?php | |
| namespace Acme\Html; | |
| use Illuminate\Html\FormBuilder as IlluminateFormBuilder; | |
| class FormBuilder extends IlluminateFormBuilder { | |
| /** | |
| * An array containing the currently opened form groups. |