Pronounced "eight rules of devops"
Follow the community. They will mow down thousands of problems before you ever encounter them. Give back.
Be part of a team. Ensure that team is welcoming to other teams. We're here to help.
#!/bin/zsh | |
mkdir f a | |
for i in *.webm | |
do | |
ffmpeg -i "$i" -write_xing 0 -c:a alac "f/${i:r}.m4a" | |
afconvert -v -f m4af -d aac@48000 "f/${i:r}.m4a" "a/${i:r}.m4a" | |
done |
function _cdk_completer { | |
STACK_CMDS="list synthesize bootstrap deploy destroy diff metadata init context docs doctor" | |
if [ "$3" == "cdk" ]; then | |
COMPREPLY=($(compgen -W "$STACK_CMDS" $2)) | |
elif [[ -d "cdk.out" ]] && ! [[ "$2" == "-"* ]]; then | |
TEMPLATES=$(ls -1 cdk.out/*.template.json | awk '{split($0,t,/\/|\./); print t[3]}') | |
COMPREPLY=($(compgen -W "$TEMPLATES" $2)) | |
else | |
COMPREPLY=() |
#!/usr/bin/env ruby | |
# This script is intended to preprocess a knife ec2 server create command and | |
# generate a user_data script in the /tmp folder that will rename the host | |
# to match whatever the node name is before the chef bootstrapping process | |
# begins. It then splits the knife command in front of the --node-name or -N | |
# options and inserts "--user-data /tmp/server-01.userdata" (in the example | |
# below) and execs the command. | |
# | |
# Usage: |