Skip to content

Instantly share code, notes, and snippets.

@JoshuaGross
JoshuaGross / README.md
Last active April 9, 2022 04:10
Freeing up extra disk space inside a Docker container

Freeing up extra disk space inside a Docker container

Sometimes while running a command inside of a docker container, the container itself will run out of disk space and things can fail (sometimes in strange ways). This is not a guide on how to allocate resources, but a quick cookbook on how to free up disk space inside a container. See below for links to more resources and reading.

If at all possible, just run Docker with increased disk space

See Limit disk size and bandwidth of a Docker container.

Resize an aufs volume

<dom-module id="webcam-capture">
<template>
<style>
:host {
display: block;
top: 0;
bottom: 0;
left: 0;
right: 0;
position: fixed;
@robulouski
robulouski / gmail_imap_example.py
Last active April 19, 2024 02:27
Very basic example of using Python and IMAP to iterate over emails in a gmail folder/label. http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/
#!/usr/bin/env python
#
# Very basic example of using Python and IMAP to iterate over emails in a
# gmail folder/label. This code is released into the public domain.
#
# RKI July 2013
# http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/
#
import sys
import imaplib
@splorp
splorp / DefaultCSS_Markdown.css
Last active February 23, 2023 00:29
A default stylesheet based on GitHub’s Markdown formatting for use with BBEdit’s Preview CSS feature.
body {
background-color: #FFF;
color: #333;
font: 15px Helvetica, arial, freesans, clean, sans-serif;
word-wrap: break-word;
line-height: 1.7;
padding: 0 20px 20px 20px;
width: 722px;
-webkit-font-smoothing: antialiased;
}