Skip to content

Instantly share code, notes, and snippets.

View mmautner's full-sized avatar
🌊
chilling

Max Mautner mmautner

🌊
chilling
View GitHub Profile
{
"name": "stout-example",
"authors": [
"Max Mautner"
],
"description": "",
"main": "",
"moduleType": [],
"license": "MIT",
"homepage": "",
@mmautner
mmautner / send_ses_email.sh
Created November 9, 2016 06:38
Send an email via the AWS CLI (using Amazon SES)
text="test email
testing
-Max Mautner"
aws ses send-email \
--from [email protected] \
--to [email protected] \
--subject "Testing" \
--text "$text"
@mmautner
mmautner / resource_alloc_docker.md
Last active March 29, 2017 23:10 — forked from afolarin/resource_alloc_docker.md
Resource Allocation in Docker

Container Resource Allocation Options in docker-run

You have various options for controlling resources (cpu, memory, disk) in docker. These are principally via the docker-run command options.

Dynamic CPU Allocation

-c, --cpu-shares=0         
CPU shares (relative weight, specify some numeric value which is used to allocate relative cpu share)
@mmautner
mmautner / Dockerfile
Created December 17, 2017 07:05
celery docker-compose example
FROM python:3.4
ADD . /app/
WORKDIR /app/
RUN pip install -r requirements.txt
CMD ["echo", "hello"]
@mmautner
mmautner / imagemagick-gif.sh
Last active April 12, 2018 07:16
make a simplistic multi-frame animation with Python + ffmpeg
#!/bin/bash
convert -loop 0 -delay 30 -resize 683x512\! *.png out.gif
@mmautner
mmautner / jokes-vs-spy-chart.ipynb
Created December 11, 2021 22:31
"jokes" search volume vs. $SPY prices, 2008-2021
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.