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
### Keybase proof | |
I hereby claim: | |
* I am lordjabez on github. | |
* I am jneer (https://keybase.io/jneer) on keybase. | |
* I have a public key ASDY26yEphfbDcRODnVHUAJrTu0K49Px-VH4sRdzyqTg0Qo | |
To claim this, I am signing this object: |
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 python3 | |
import sys | |
import zlib | |
# Installation: | |
# curl -s https://gist.githubusercontent.com/lordjabez/7f24c848a1424365617300b0d9bc2d04/raw/67797f4fc6e19c48acff1188a47848f314f9e9e0/decode-git-object.py > /usr/local/bin/decode-git-object | |
# chmod +x /usr/local/bin/decode-git-object | |
# Usage: |
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 python3 | |
# Pre-requisite: brew install imagemagick | |
# Usage: ./generate-scans.py NUM_SCANS_PER_FILE | |
import multiprocessing | |
import random | |
import subprocess | |
import os | |
import sys |
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 | |
secret_id = 'id-for-your-cert-secret-goes-here' | |
secrets_manager = boto3.client('secretsmanager') | |
response = secrets_manager.get_secret_value(SecretId=secret_id) | |
cert_content = json.loads(response['SecretString']) | |
file_type = requests.packages.urllib3.contrib.pyopenssl.OpenSSL.crypto.FILETYPE_PEM |
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 python3 | |
# pip3 install bitlyshortener pypng pyqrcode | |
import os | |
import sys | |
import bitlyshortener | |
import pyqrcode |
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 python3 | |
# This script takes one parameter, an American Airlines flight number. | |
# It also requires a FlightLabs API key to be stored in FLIGHTLABS_ACCESS_KEY, | |
# you can get one at https://app.goflightlabs.com/. | |
# It will lookup additional flight details from the flight number, and then | |
# open a web page to the AA seat map tool, passing the proper URL parameters | |
# to view the seat map for the provided flight. |
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 python3 | |
import argparse | |
import datetime | |
import getpass | |
import os | |
import re | |
import exchangelib |
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 json | |
import requests | |
url = 'https://www.scripps.org/physicians.json' | |
params = { | |
'api': 'provider_search', | |
'location': 'location-61-scripps-clinic-rancho-bernardo', | |
'skill': 'synonym-1-primary-care', | |
'age_group': 'adults', |
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 python3 | |
# pip install beautifulsoup4 keyring pyjwt requests | |
# ./get-access-token.py $auth_domain $client_id $api_name $username | |
import getpass | |
import sys | |
import time | |
import urllib.parse |
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 python3 | |
import argparse | |
import subprocess | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--files', action='append') | |
file_arguments, other_arguments = parser.parse_known_args() |
OlderNewer