- CentOS 8.0
- Xvfb 1.20
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:*" | |
], | |
"Resource": "arn:aws:logs:*:*:*" | |
}, |
This file contains 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
import boto3 | |
import collections | |
import datetime | |
ec = boto3.client('ec2') | |
def lambda_handler(event, context): | |
reservations = ec.describe_instances( | |
Filters=[ | |
{'Name': 'tag-key', 'Values': ['backup', 'Backup']}, |
This file contains 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
import boto3 | |
import re | |
import datetime | |
ec = boto3.client('ec2') | |
iam = boto3.client('iam') | |
""" | |
This function looks at *all* snapshots that have a "DeleteOn" tag containing | |
the current day formatted as YYYY-MM-DD. This function should be run at least |
This file contains 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
<?php | |
/** | |
* Hide all metaboxes in the global $wp_meta_boxes | |
*/ | |
add_filter( 'hidden_meta_boxes', function( $hidden, $screen, $use_defaults ) | |
{ | |
global $wp_meta_boxes; | |
$cpt = 'post'; // Modify this to your needs! |