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 | |
""" | |
Updated 2022-06-16 with removal of enums and types in TTS API, fix of synthesize_speech function | |
To use: | |
1. install/set-up the google cloud api and dependencies listed on https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/texttospeech/cloud-client | |
2. install pandoc and pypandoc, also tqdm | |
3. create and download a service_account.json ("Service account key") from https://console.cloud.google.com/apis/credentials | |
4. run GOOGLE_APPLICATION_CREDENTIALS=service_account.json python make_audiobook.py book_name.epub | |
""" |
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
<? | |
/********************************* | |
Instagram Linktree substitute w/GA integration | |
Inspired by Glenn Walker's PHP-UA | |
Christopher S. Penn | |
https://www.christopherspenn.com/ |
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
<?php | |
/*********************************************** | |
Bitly Google Analytics Preparation Script | |
Copyright © 2016-2017 Christopher S. Penn | |
The purpose of this code is to transform a list of plain text URLs and turn them into bit.ly links. | |
Requirements: |
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 | |
## Exports known "bad mailbox" error messages plus the line before (which usually contains the RFC822 email) to a text file for you to keep your email list clean | |
## Assumes you have bash, a file of all your bounces named bounces.txt | |
## Copyright © 2017 Christopher S. Penn | |
## Released under the GPL | |
TERM1="does not exist" |
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
# Organize My Documents on a Mac | |
# Obviously make sure that the subfolders all exist first! | |
# Copyright © 2016 Christopher Penn | |
# Released under the GNU General Public License, 3.0 | |
# Absolutely no support or warranty of any kind | |
DOCS=/path/to/documents # Normally /users/yourusername/documents on a Mac | |
PDF=/path/to/pdf/files | |
TEXT=/path/to/text/files | |
SLIDES=/path/to/presentations/files |