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
<div class="monaco-editor no-user-select mac showUnused showDeprecated vs-dark focused" role="code" data-uri="inmemory://model/4" style="width: 369px; height: 34px;"><div data-mprt="3" class="overflow-guard" style="width: 369px; height: 34px;"><div class="margin" role="presentation" aria-hidden="true" style="position: absolute; transform: translate3d(0px, 0px, 0px); contain: strict; top: 0px; height: 34px; width: 13px;"><div class="glyph-margin" style="left: 0px; width: 0px; height: 34px;"></div><div class="margin-view-zones" role="presentation" aria-hidden="true" style="position: absolute;"></div><div class="margin-view-overlays focused" role="presentation" aria-hidden="true" style="position: absolute; width: 13px; font-family: "Inter var", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-weight: normal; font-size: 14px; font-feature-settings: "liga" 0, "calt" 0; line-height: 21px; letter-spacing: 0px; heig |
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/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
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
### Keybase proof | |
I hereby claim: | |
* I am asennikov on github. | |
* I am asennikov (https://keybase.io/asennikov) on keybase. | |
* I have a public key whose fingerprint is 4A4A EB71 01B6 24BE 9214 5E3C 565F 9986 ACE0 3F95 | |
To claim this, I am signing this object: |
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
import logging | |
import requests | |
from django.utils import simplejson | |
from django.conf import settings | |
class DeskError(Exception): | |
def __init__(self, status): | |
Exception.__init__(self, status) # Exception is an old-school class |