Skip to content

Instantly share code, notes, and snippets.

View epleterte's full-sized avatar

Christian Bryn epleterte

  • I am on the Internet
View GitHub Profile
// ==UserScript==
// @name watchcartoononline
// @description Description
// @author Chris H (Zren / Shade)
// @icon http://xshade.ca/favicon.ico
// @namespace http://xshade.ca
// @version 1
// @grant none
// @include http://www.watchcartoononline.com/*
// @include http://www.animeuploads.com/embed.php*
@epleterte
epleterte / mysql_rep.sh
Created November 4, 2015 09:22 — forked from onecooltaco/mysql_rep.sh
A mysql replication plugin for the check_mk nagios system
#!/bin/bash
#
# A mysql replication plugin for the check_mk nagios system.
# Place me in /usr/lib/check_mk_agent/local on the client
#
# Hereward Cooper <[email protected]> - 16/06/11
MYSQL_USER="root"
MYSQL_PASS="PAassw0rd"
#!/bin/bash -ue
# Christian "Superstar" Bryn <[email protected]> 1850-2017
function print_usage {
cat <<EOF
Usage: ${0} [-h|-a|-b|-q] <branch1> [<branch2>]
-h Print usage
-a All - automatically check all branches and delete if merged.
-b Batch - skip 'destructive action' warning.
-q Quiet - turn off verbosity.
@epleterte
epleterte / sudovim.sh
Created June 20, 2017 22:52
I sometimes forget to sudo my vim
#!/bin/bash -ue
# Christian Bryn <[email protected]> 2016
# License: WTFPL
# Easy-to-use wrapper for sudo that helps you remember to launch vim with sudo when needed
# Stick this in ~/bin/
# autodetection of editor:
#cmd=$( which $EDITOR )
#...does not work as soon as this file is in path, right...if it's called the same as EDITOR, of course ('vim')