calendarID from cal.csv can be used at path param in
https://developers.google.com/calendar/v3/reference/calendars/get
https://developers.google.com/calendar/v3/reference/events/list
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
| --- | |
| - name: Upgrade ecs services | |
| hosts: xxx | |
| user: ec2-user | |
| tasks: | |
| - yum: | |
| name: "ecs-init" | |
| state: latest | |
| become: true |
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
| ## | |
| # Backup.py | |
| # --- | |
| # To dump stories, memberships, labels and releases on Pivotal Tracker projects | |
| # | |
| # Dependency: | |
| # pip install requests | |
| # | |
| # Usage: | |
| # python backup.py --token xxx |
S3 bucket usually don't add any tag when creation, which is difficult for us to check the cost spend by each bucket.
The add_tags.py basically add/update Name tags to align with S3 bucket name and allow us easier to check the bills.
pipenv shell --three
pipenv install boto3
# Copy add_tags.py into local
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
| import requests | |
| import ipaddress | |
| # Get Cloudflare IP Ranges | |
| # ref: https://www.cloudflare.com/ips/ | |
| def get_cf_ips(): | |
| ips = [] | |
| for urls in [ | |
| "https://www.cloudflare.com/ips-v4", | |
| "https://www.cloudflare.com/ips-v6" |
OlderNewer