Skip to content

Instantly share code, notes, and snippets.

@fluxrad
fluxrad / docker-up-or-reboot.sh
Created May 18, 2016 13:58
A script to check if the Docker daemon is up. If not, reboot after three failed docker ps commands.
#!/bin/bash
SLEEP_SECONDS=600
while true; do
for i in `seq 1 3`; do
timeout 5 docker ps -q && break || echo "Docker daemon is not running. Rebooting"
if [[ $i -eq 3 ]]; then
reboot
@fluxrad
fluxrad / pre-commit
Created April 11, 2012 19:04
A pre-commit git hook to validate puppet syntax
#!/bin/bash
# pre-commit git hook to check the validity of a puppet manifest
#
# Prerequisites:
# gem install puppet-lint puppet
#
# Install:
# /path/to/repo/.git/hooks/pre-comit
# Source RVM if needed
@fluxrad
fluxrad / MR Unstagnator.user.js
Last active April 18, 2018 23:16
MR Unstagnator
// ==UserScript==
// @name MR Unstagnator
// @namespace http://marginalrevolution.com/
// @version 0.1
// @description Make MR look better and more usable.
// @author Aaron Mills
// @match http*://marginalrevolution.com/*
// @grant GM_addStyle
// ==/UserScript==
@fluxrad
fluxrad / onedark.theme
Last active January 26, 2024 13:12
A one-dark theme for xfce4-terminal
[Scheme]
Name=One Dark
ColorForeground=#ABB2BF
ColorCursor=#ABB2BF
ColorBackground=#282C34
ColorSelection=#3B4451
ColorSelectionUseDefault=FALSE
ColorBold=#B9C0CB
ColorBoldUseDefault=FALSE
ColorPalette=#282C34;#E06C75;#98C379;#E5C07B;#61AFEF;#C678DD;#56B6C2;#ABB2BF;#3E4452;#BE5046;#98C379;#D19A66;#61AFEF;#C678DD;#56B6C2;#5C6370