Skip to content

Instantly share code, notes, and snippets.

View asennikov's full-sized avatar
❄️

Alexander Sennikov asennikov

❄️
View GitHub Profile
@asennikov
asennikov / monaco-editor-with-suggestions.html
Created October 22, 2021 15:42
Monaco editor HTML tree, including the suggestion elements shown on hover
<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: &quot;Inter var&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-weight: normal; font-size: 14px; font-feature-settings: &quot;liga&quot; 0, &quot;calt&quot; 0; line-height: 21px; letter-spacing: 0px; heig
#!/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 <(
### 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:
@asennikov
asennikov / desk.py
Last active August 29, 2015 14:27 — forked from pamelafox/desk.py
Desk.com API Python Wrapper
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