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 April 11, 2024 22:38
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
}
@malarkey
malarkey / Contract Killer 3.md
Last active April 16, 2024 21:44
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………