---
layout: episode
number: "000"
duration: "TIME:CODE:LENGTH"
length: "FILE_BYTES"
title: "The Episode's Title"
short_description: "This is a short description about the episode."
aac_asset_link: "LINK TO AAC ENCODED EPISODE"
ogg_asset_link: "LINK TO OGG ENCODED EPISODE"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A Makefile for Go projects | |
# This "makes" it easy to cut reproducible builds using an ignored _vendor | |
# directory and built in Go tooling. When this runs, it first executes the | |
# vendor.sh shell script. It then temporarily "blesses" your GOPATH with | |
# the _vendor directory. This ensures all modules will first be looked for | |
# in _vendor and anything else will get picked up from your standard Go workspace. | |
GO_CMD=$(shell which go 2>/dev/null) | |
GO_TEST=$(GO_CMD) test | |
GO_BUILD=$(GO_CMD) build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] | |
aws_access_key_id = SOME_ACCESS_KEY_ID | |
aws_secret_access_key = SOME_SECRET_KEY_ID | |
[rubberduck] | |
aws_access_key_id = SOME_ACCESS_KEY_ID | |
aws_secret_access_key = SOME_SECRET_KEY_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "s3:*", | |
"Resource": [ | |
"arn:aws:s3:::rubberduckcast.com/*", | |
"arn:aws:s3:::rubberduckcast.com", | |
"arn:aws:s3:::episodes.rubberduckcast.com/*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ proxpn | |
Welcome to the ProXPN OpenVPN Bash Client! | |
Which exit node would you like to use? | |
1) UK 4) Singapore 7) LA 10) Miami | |
2) Sweden 5) Dallas 8) NYC 11) Czech | |
3) Netherlands 6) BASIC 9) Seattle | |
Select an exit node:9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In this case the variable hoisted ends up being declared | |
// but undefined before the if statement, because it is hoisted | |
(function(){ | |
try { | |
if (hoisted) { | |
var hoisted = true; | |
console.log("This will not get printed") | |
}else{ | |
console.log("This will be printed, because hoisted has been declared, but is not set to a truthy value.") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
movieInput=$1 | |
tmpFolder=$2 | |
outName=$3 | |
mkdir -p $tmpFolder | |
ffmpeg -i $movieInput $tmpFolder/%03d.png | |
for i in `ls $tmpFolder`; do | |
j=`echo $i | sed s/\.png/.webp/` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name <FQDN>; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if tput setaf 1 &> /dev/null; then | |
tput sgr0 | |
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then | |
MAGENTA=$(tput setaf 9) | |
ORANGE=$(tput setaf 172) | |
GREEN=$(tput setaf 190) | |
PURPLE=$(tput setaf 141) | |
WHITE=$(tput setaf 256) | |
else | |
MAGENTA=$(tput setaf 5) |