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
""" | |
Save all gists from GitHub, including comments. | |
Requires the PyGithub library (``pip install PyGithub>=1.47``). | |
Pass a personal access token with the scope "gist" as the first | |
argument. | |
This probably won't work for large files (+10MiB), since they aren't | |
returned by the GitHub API, and must be cloned instead. |
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
from __future__ import absolute_import, print_function, unicode_literals | |
import boto3 | |
def clean_old_lambda_versions(): | |
client = boto3.client('lambda') | |
functions = client.list_functions()['Functions'] | |
for function in functions: | |
versions = client.list_versions_by_function(FunctionName=function['FunctionArn'])['Versions'] | |
for version in versions: |
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
#!/bin/bash | |
set -xeuo pipefail | |
IFS=$'\n\t' | |
PREFIX="${1:-/usr/local/dvisvgm}" | |
TEX="$(kpsewhich -var SELFAUTOLOC)" | |
echo "$PREFIX, $TEX" | |
brew install automake freetype ghostscript potrace |
OlderNewer