Skip to content

Instantly share code, notes, and snippets.

@inducer
inducer / kill-sidekiq-if-huge.py
Created May 11, 2018 20:21
Gitlab Sidekiq Memory Killer
#! /usr/bin/env python3
import psutil
import signal
from time import sleep
from subprocess import Popen, PIPE
import logging
logger = logging.getLogger("sidekiq-killer")
#logging.basicConfig(level=logging.INFO)
anonymous
anonymous / der rezeptung
Created May 28, 2014 14:25
der rezept
Couscous:
- 1 Tasse Couscous mit 1.5 Tassen Wasser aufkochen, dazu ein EL Gemüsebrühe
- Köcheln lassen bis das Wasser vollständig weg ist (nicht zu heiß, verbrennt leicht)
Dressing:
- 1 EL Öl + 2 EL Essig (Balsamico oder "normalen") + 1/2 EL Senf
- gut vermischen
- etwas Zitrone
Sonstiges:
@sedm0784
sedm0784 / CapsLockCtrlEscape.ahk
Last active July 27, 2025 05:19
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (Plus contribs from @randy909 & @mmikeww.)
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}