Skip to content

Instantly share code, notes, and snippets.

FROM ghcr.io/renderinc/heroku-app-builder:heroku-22 AS builder
# The FROM statement above triggers the following steps
# 1. Copy the contents of the directory containing this Dockerfile to a Docker image
# 2. Detect the language
# 3. Build the app using the appropriate Heroku buildpack. All Heroku's official buildpacks are supported.
@vpnry
vpnry / move-file-preserve-structure.sh
Created November 26, 2020 15:33
Move files with specific exts while preserving their directory structures
# Move files while preserving its directory structures
# From https://unix.stackexchange.com/a/59159
FILEext=".*\.\(avi\|mp3\|mp4\)"
SOURCE=/home/d/dev/dev/D/A/
DEST=/home/d/dev/dev/D/BB/
mkdir -p "$DEST"
@vpnry
vpnry / to_ipa.py
Created November 22, 2020 13:44
Convert English to IPA - Using Python3 module eng_to_ipa
# Convert English text to IPA using eng_to_ipa
# @pnry - version 0.0.1 - public domain
# pip3 install eng_to_ipa
# Usage:
# toIPA(f, 1): paragraph by paragraph with Eng paragraph
# toIPA(f, 0): insert IPA transcription next to word
# Input file
f = "AOP Appendix.fm - sadhu"