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 flask import Flask | |
| from flask.ext.sqlalchemy import SQLAlchemy | |
| from flask.ext.wtf import Form | |
| from flask.ext.babel import gettext | |
| from wtforms import SelectField, TelField, TextField, FormField, Fieldlist, SubmitField | |
| from wtforms.validators import Optional, Required | |
| app = Flask(__name__) | |
| db = SQLAlchemy(app) |
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
| # Packages reqd: pydub, ffmpeg | |
| # pydub - pip install pydub | |
| # ffmpeg: | |
| # sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next | |
| # sudo apt-get update | |
| # sudo apt-get install ffmpeg | |
| ## Load the m4a files (in M4a_files.tar.gz) |
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
| # Editors | |
| .vscode/ | |
| .idea/ | |
| # Vagrant | |
| .vagrant/ | |
| # Mac/OSX | |
| .DS_Store |
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 script takes a PDF or list of PDFs and outputs a file(s) | |
| # named <file>_scanned.pdf that looks like it has been scanned | |
| # | |
| # Requires imagemagic and popper to be installed (brew install imagemagick poppler) | |
| # | |
| # Accepts: a list of files | |
| # Usage: ./<scriptfilename> pdf1.pdf pdf2.pdf | |
| # | |
| # To use as a macOS automator quick action you need to: |
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 | |
| if ! command -v curl &> /dev/null; then | |
| echo "This script needs curl. Please install curl." | |
| exit -1 | |
| fi | |
| if ! command -v jq &> /dev/null; then | |
| echo "This script needs jq. Please install jq." | |
| exit -1 |
OlderNewer