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
chmod go-w ~/ | |
chmod 700 ~/.ssh | |
chmod 600 ~/.ssh/authorized_keys |
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
# .config/youtube-dl/config | |
# all the metadata (including description, annotations, view/like count, etc) in a nice and parseable format | |
--write-info-json | |
# This keeps track of all the videos you have downloaded so they can be skipped over the next time it's ran or the next time it finds that video. | |
--download-archive "youtube-dl_archive.log" | |
# Ignore any errors that occur while downloading. Occasionally they will happen and this just ensures things keep moving along as intended. Don't worry, the next time it is ran any videos that didn't fully download will most likely be picked right back up where it left off! | |
-i |
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
#!/usr/bin/env python | |
from jira import JIRA | |
import argparse | |
wiki_url = "https://" + server + "wiki/rest/api/content?user=" + email + ":" + apikey | |
encoded_body = json.dumps(jsonfile) | |
headers = { 'Content-type': 'application/json', 'Accept': 'application/json', 'X-Atlassian-Token': 'no-check' } | |
http = urllib3.PoolManager() | |
r = http.request('POST', wiki_url, headers={'Content-Type': 'application/json'}, body=encoded_body ) |
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
/* Create a database in Athena */ | |
CREATE DATABASE s3_AccessLogsDB; | |
/* | |
Create a table within the Athena database | |
Replace s3://MY_S3_BUCKET/ with your S3 bucket | |
which has the access logs you want to query | |
*/ | |
CREATE EXTERNAL TABLE IF NOT EXISTS s3_AccessLogs.Accesslogs( | |
BucketOwner string, |
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
#!/bin/bash | |
REGION="eu-west-1" | |
ITEMS=$(aws --region eu-west-1 apigateway get-rest-apis | jq -r '.items[] | .id') | |
STAGE="prod" | |
for item in $ITEMS | |
do | |
aws --region $REGION \ | |
apigateway get-export \ | |
--parameters '{"extensions":"integrations,authorizers"}' \ |