I hereby claim:
- I am imerica on github.
- I am imichael (https://keybase.io/imichael) on keybase.
- I have a public key ASAK1tg_-_AO3dIyv2usYyUeDQldYkHaLoP97ljTp7LgIgo
To claim this, I am signing this object:
-Xms2048m | |
-Xmx2048m | |
-XX:ReservedCodeCacheSize=2048m | |
-XX:+UseCompressedOops | |
-Dide.no.platform.update=true |
I hereby claim:
To claim this, I am signing this object:
# Example: `remove_old_images 30` // Deletes all Docker Images 30 days or older | |
function remove_old_images() { | |
if [ $# -eq 0 ] | |
then | |
echo "Pass in the number of days" | |
exit 0 | |
fi | |
docker images --format '{{.ID}} {{.CreatedAt}}' | \ | |
awk '{print $1 " " $2 }' | \ |
from storages.backends.s3boto3 import S3Boto3Storage | |
from django.contrib.staticfiles.storage import ManifestFilesMixin | |
from tempfile import SpooledTemporaryFile | |
import os | |
class CustomStorage(ManifestFilesMixin, S3Boto3Storage): | |
""" Handles File Versioning + File Uploading to our CDN """ | |
def _save_content(self, obj, content, parameters): | |
""" Hack to work around I/O error in Boto """ |
There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.
brew install ffmpeg
apt install ffmpeg
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- test | |
- push |
urlpatterns = [ | |
url(r'^rest-auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', ConfirmEmailView.as_view(), name='account_confirm_email'), | |
] |
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- push | |
- deploy |
from dataclasses import dataclass | |
from typing import Sequence | |
"""" | |
This is a proof of concept framework for selecting job offers. | |
The general idea is to remove emotions from the decision | |
making process and first think about whats important to you, then | |
compare each offer against those factors. |
version: '2' | |
services: | |
dind: | |
restart: always | |
privileged: true | |
volumes: | |
- /var/lib/docker | |
image: docker:18.06.0-ce-dind | |
command: | |
- --storage-driver=overlay2 |