Skip to content

Instantly share code, notes, and snippets.

## MacOS Stuff
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
@larryebaum
larryebaum / extractMP4audio.sh
Last active March 28, 2022 16:14
Extract Audio from MP4 on MacOS
#locate instance of ffmpeg on workstation and set as variable if not in path
ffmpegPATH="/Applications/Descript.app/Contents/Resources/app.asar.unpacked/node_modules/beamcoder/build/Release/ffmpeg"
for i in *.MP4
do
if test -f "$i"
then
name=$(echo $i | cut -f 1 -d '.')
$ffmpegPATH -i "$i" -vn "$name.wav"
fi
@larryebaum
larryebaum / browser
Created August 16, 2024 18:13 — forked from defunkt/browser
pipe html to a browser
#!/bin/sh -e
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo '<h1>hi mom!</h1>' | browser
# $ ron -5 man/rip.5.ron | browser
if [ -t 0 ]; then
if [ -n "$1" ]; then
@larryebaum
larryebaum / basic.html
Created August 16, 2024 18:28
basic html page
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>