#!/bin/bash
TYPE=${1:-no type provided}
for FILE in $(ls *.${TYPE} | tr -d "'")
do
# Get 0-based index of English subtitle stream
INDEX=$(($(ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 $FILE | sed -n '/eng/=')-1))
# Convert
ffmpeg -y \
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
@this = "Fallout 4 Challenge Run Generator" | |
@me = "/u/travis-g" | |
@license = "WTFPL2, but I'd love a mention" | |
@about = """ | |
#{@this} | |
Made by #{@me} | |
Started as just the trash() function, but it got bigger when I thought of a | |
use for it. I've put hundreds of hours into Skyrim and Fallout games just by | |
running character/challenge builds. I've never finished the main questlines. |
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 PIL import Image | |
import json | |
import requests | |
h = 1000 | |
w = 1000 | |
# PIL accesses images in Cartesian co-ordinates, so it is Image[columns, rows] | |
img = Image.new( 'RGB', (h,w), "black") # create a new black image | |
pixels = img.load() # create the pixel map |
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
terraform { | |
backend "s3" { | |
bucket = "" | |
region = "us-east-1" | |
encrypt = true | |
acl = "private" | |
key = "" | |
} | |
} |
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
digraph G { | |
rankdir=LR; | |
subgraph cluster_vault { | |
label = "Vault (Meta Storage Backend)"; | |
style=filled | |
color=lightgrey | |
node [style=filled,color=white] | |
"ipfs/ipfs-docs" [style=dashed color=normal] |
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
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
import datetime | |
import numpy as np | |
import pandas as pd | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--log", help="logarithmically scale results", action="store_true") | |
parser.add_argument("-s", "--size", help="number of bins", action="count", default=40) |
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 | |
if [A "$2" -eq "-v" ]; then | |
wget --recurive --delete-after "$1" | |
else | |
wget \ | |
--spider \ | |
--recursive \ | |
--delete-after \ | |
--level inf \ | |
--no-directories \ |
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
#!/usr/bin/env sh | |
# Removes stopped containers and dangling/untagged images. | |
# 0 0 * * * docker-clean.sh | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') |
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
( | |
) | |
_.-~(~-. | |
(@\`---'/. | |
(' `.-.' `) | |
`-..___..-' |
NewerOlder