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
| git log --all -G 'tmp:' |
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 bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| ## Should get OK as a response | |
| endpoint='https://xxxxxx.execute-api.us-east-2.amazonaws.com/tag/default' | |
| myorigin='https://xxxxxx.com' | |
| curl "${endpoint}" \ | |
| -X 'OPTIONS' \ |
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 | |
| # -*- coding: utf-8 -*- | |
| """Wrapper for GH Gist CLI. | |
| Demo: | |
| Start Daemon (listen for changes): | |
| ~/.bashrc: | |
| test -f ~/.cache/gist_refresh.pid || gisty.py daemon & |
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 | |
| # -*- coding: utf-8 -*- | |
| """Iterate over all users in a Stash repository.""" | |
| import json | |
| import sys | |
| from datetime import datetime | |
| import requests | |
| token = "XXXXXXXXX" |
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
| ACCEPT_EULA=Y | |
| AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache | |
| ANDROID_HOME=/usr/local/lib/android/sdk | |
| ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk-bundle | |
| ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/23.1.7779620 | |
| ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk-bundle | |
| ANDROID_SDK_ROOT=/usr/local/lib/android/sdk | |
| ANT_HOME=/usr/share/ant | |
| AZURE_EXTENSION_DIR=/opt/az/azcliextensions | |
| BOOTSTRAP_HASKELL_NONINTERACTIVE=1 |
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 | |
| # -*- coding: utf-8 -*- | |
| """Dump AWS Org structure and policies.""" | |
| import argparse | |
| import json | |
| import os | |
| from collections import deque | |
| from dataclasses import dataclass | |
| from typing import Any, Optional |
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 * as iam from "@aws-cdk/aws-iam"; | |
| import * as cdk from "@aws-cdk/core"; | |
| import * as aws_ssm from "@aws-cdk/aws-ssm"; | |
| import { Config } from "../config"; | |
| function chunk(arr: Array<any>, chunkSize: number) { | |
| if (chunkSize <= 0) throw "Invalid chunk size"; | |
| var R = []; | |
| for (var i = 0, len = arr.length; i < len; i += chunkSize) | |
| R.push(arr.slice(i, i + chunkSize)); |
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
| [core] | |
| repositoryformatversion = 0 | |
| filemode = true | |
| bare = false | |
| logallrefupdates = true | |
| [remote "stash"] | |
| url = ssh://[email protected]:7999/org/reponame.git | |
| [remote "github"] |
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
| """ List all available codec modules. | |
| (c) Copyright 2005, Marc-Andre Lemburg ([email protected]). | |
| Licensed to PSF under a Contributor Agreement. | |
| """ | |
| import codecs | |
| import encodings | |
| import os |
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 | |
| # -*- coding: utf-8 -*- | |
| import csv | |
| from datetime import datetime | |
| import pandas as pd | |
| import plotly.graph_objects as go | |
| from plotly.subplots import make_subplots | |
| # data sample |