Skip to content

Instantly share code, notes, and snippets.

@romdim
romdim / Convert to mp3
Created February 4, 2021 12:59
Convert audio files from opus/m4a to mp3
for i in *.opus; do ffmpeg -i "$i" "${i%.*}.mp3"; done
for i in *.m4a; do ffmpeg -i "$i" "${i%.*}.mp3"; done
@romdim
romdim / tina.sh
Created June 27, 2022 00:49
Init TinaCMS with TS & Tailwind
yarn create next-app -- --typescript
cd folder/
# Add tinaCMS
npx @tinacms/cli@latest init
# Add Tailwind
yarn add -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
@romdim
romdim / mac-setup.sh
Last active January 14, 2025 18:06
Mac Initial Setup (copied & changed from https://gist.github.com/bradp/bea76b16d3325f5c47d4 )
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install