Bash script to:
- Iterate all commits made within a Git repository.
ffmpeg -i audio.wav -ar 44100 -ac 1 output.m4a |
# Create a CentOS 6.4 x64 droplet with minimal spec | |
# SSH in to new droplet | |
# Install ATRPMS Repository | |
rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms | |
rpm -ivh http://dl.atrpms.net/all/atrpms-repo-6-7.el6.x86_64.rpm | |
# Install FFMPEG |
// | |
// Clubhouse.swift | |
// Playground | |
// | |
// Created by Nav Singh on 2/11/21. | |
// | |
import SwiftUI | |
struct Clubhouse: View { |
#!/usr/bin/env bash | |
set -e | |
# This script converts any text file into a mp3 audiobook using the MacOS | |
# text-to-speech accessibility command-line tool `say`. | |
# Adjust the `VOICE` and `RATE` parameters to customize to your liking: | |
VOICE="Alex" | |
RATE="295" # pretty fast | |
if [ $# -eq 0 ]; then |
// Get the key from the "DSN" at: https://sentry.io/settings/<org>/projects/<project>/keys/ | |
// The "DSN" will be in the form: https://<SENTRY_KEY>@sentry.io/<SENTRY_PROJECT_ID> | |
// eg, https://0000aaaa1111bbbb2222cccc3333dddd@sentry.io/123456 | |
const SENTRY_PROJECT_ID = '123456' | |
const SENTRY_KEY = '0000aaaa1111bbbb2222cccc3333dddd' | |
// Useful if you have multiple apps within a project – not necessary, only used in TAGS and SERVER_NAME below | |
const APP = 'my-app' | |
// https://docs.sentry.io/error-reporting/configuration/?platform=javascript#environment |
import SwiftUI | |
import PlaygroundSupport | |
struct iPod: View { | |
var body: some View { | |
VStack(spacing: 40) { | |
Screen() | |
ClickWheel() | |
Spacer() | |
} |
#!/usr/bin/env osascript -l JavaScript | |
/** | |
* Delete silence from Final Cut Pro timeline using a script. | |
* Demo: https://imgur.com/a/Zisav | |
* | |
* This script accepts an ffmpeg silencedetect log as input. | |
* | |
* To setup, have fcp running along with your clip selected. Ensure that the | |
* timecode will start at zero before running this script. That is, if your clip |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
// Perlin.swift | |
// Created by Matthew Reagan on 8/7/18. | |
// | |
// Quick implementation of the the classic Perlin noise | |
// generation function, useful for creating organic textures | |
// or terrain. Perlin noise can also be easily generated with | |
// Apple's GameplayKit framework, this code is mostly for | |
// experimentation purposes. (Disclaimer: This code is not | |
// optimized, nor particularly elegant, but it can be used as | |
// a jumping off point for writing custom noise functions.) |