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
Verifying my Blockstack ID is secured with the address 1LicUSLFtg4GwSsLBCsB6TLkUbvhV4TNwR https://explorer.blockstack.org/address/1LicUSLFtg4GwSsLBCsB6TLkUbvhV4TNwR |
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
numpy==1.13.3 | |
pyjags==1.2.2 |
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 os | |
import sys | |
CWD = os.path.dirname(os.path.realpath(__file__)) | |
sys.path.insert(0, os.path.join(CWD, "lib")) | |
# The example below was taken and modified from the pyjags documentation | |
# https://pyjags.readthedocs.io/en/latest/getting_started.html | |
import pyjags |
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
FROM amazonlinux:latest | |
WORKDIR /app | |
# install pip | |
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python | |
# requirements for compiling JAGs | |
RUN yum install -y \ | |
gcc \ |
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 | |
# This uses gpg to encrypt every file in a directory as separate | |
# encrypted files | |
# Usage | |
# ./encrypt-all.sh ./dir-of-files-to-encrypt "PASSPHRASE" | |
FILES="$1" | |
PASSPHRASE="$2" |
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
for vid in */*.mp4 | |
do | |
new_file_name=$(echo $vid | awk '{ gsub(/ /, "-"); gsub(/[&|\+|{|}]/, ""); gsub(/-+/, "-"); gsub(/-_-/, "-"); gsub(/(-[0-9]{3,})/, "") }; 1') | |
ffmpeg -i "./$vid" -filter:v "scale=w=800:h=-1" "./${new_file_name}" | |
backup_dir="./backup/$(dirname "$vid")" | |
mkdir -p $backup_dir && cp "./$vid" $backup_dir |
OlderNewer