# from a playlist
docker run --rm -v $(pwd):/downloads jauderho/yt-dlp -x --audio-format mp3 --yes-playlist '<playlist url>'
# single video
docker run --rm -v $(pwd):/downloads jauderho/yt-dlp -x --audio-format mp3 '<video-url>'
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
### Hugo ### | |
# Generated files by hugo | |
/public/ | |
/resources/_gen/ | |
# Executable may be added to repository | |
hugo.exe | |
hugo.darwin | |
hugo.linux |
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
'use strict'; | |
const getResponseHeaders = () => { | |
return { | |
'Access-Control-Allow-Origin': '*' | |
}; | |
} | |
const helpMsg = `Command reference: | |
/start - Start bot |
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
from pprint import pprint | |
import boto3 | |
def create_movie_table(dynamodb=None): | |
if not dynamodb: | |
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000') | |
table = dynamodb.create_table( | |
TableName='Movies', | |
KeySchema=[ |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId, Tags[?Key==`Name` && starts_with(Value, `dev`)]]' --output json | jq -r '.[][] | select(.[1] | length > 0) | .[0]' | \
while read instance_id; do
aws ec2 create-tags --resources "$instance_id" --tags Key=Environment,Value=development
done
- jq used to filter out resources that have empty tags and only output the instance ID.