Skip to content

Instantly share code, notes, and snippets.

View petervanderdoes's full-sized avatar

Peter van der Does petervanderdoes

View GitHub Profile
@petervanderdoes
petervanderdoes / Javascript
Created February 10, 2012 22:21 — forked from andrewdh/Javascript
Colour Picker PHP
jQuery(document).ready(function($) {
$('.colorpicker').hide();
$('.colorpicker2').hide();
$('.colorpicker').farbtastic('.color');
$('.colorpicker2').farbtastic('.color2');
$('.color').click(function() {
$('.colorpicker').fadeIn();
});
$('.color2').click(function() {
@petervanderdoes
petervanderdoes / filter-flow-release-start-version
Created June 5, 2012 19:12
gitflow hooks and filters for WordPress theme development
#!/bin/sh
#
# Runs during git flow release start
#
# Positional arguments:
# $1 Version
#
# Return VERSION - When VERSION is returned empty gitflow
# will stop as the version is necessary
#
@petervanderdoes
petervanderdoes / filter-flow-hotfix-start-version
Created June 5, 2012 22:20
gitflow hooks and filter for gitflow development
#!/bin/sh
#
# Runs during git flow release start
#
# Positional arguments:
# $1 Version
#
# Return VERSION - When VERSION is returned empty gitflow
# will stop as the version is necessary
#

Keybase proof

I hereby claim:

  • I am petervanderdoes on github.
  • I am petervanderdoes (https://keybase.io/petervanderdoes) on keybase.
  • I have a public key whose fingerprint is 6637 415B 7945 CE1E 7DE1 111D 26C7 8337 E853 0D1E

To claim this, I am signing this object:

@petervanderdoes
petervanderdoes / wp-config.php
Created June 11, 2014 23:21
When WordPress is in alternative directory change the last lines in wp-config.php
if ( !defined( 'ABSPATH' ) )
define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );
if (!class_exists('WP_CLI\Runner'))
require_once(ABSPATH . 'wp-settings.php');
@petervanderdoes
petervanderdoes / Installation.md
Last active August 29, 2015 14:16
Change the font for Firefox Develop Tools panels

Install for Linux

Copy the file userChrome.css to ~/.mozilla/firefox/YOURPROFILE/chrome

Replace YOURPROFILE with the right directory. The directory chrome might not exist, you should create it.

@petervanderdoes
petervanderdoes / zfs_health.sh
Last active March 6, 2024 14:04
ZFS Health Check Script
#! /usr/local/bin/bash
#
# Calomel.org
# https://calomel.org/zfs_health_check_script.html
# FreeBSD 9.1 ZFS Health Check script
# zfs_health.sh @ Version 0.15
# Check health of ZFS volumes and drives. On any faults send email. In FreeBSD
# 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS
# pools. For now, in FreeBSD 9, we will make our own checks and run this script
@petervanderdoes
petervanderdoes / gist:48f333c69d08823afaec
Created February 28, 2016 20:32
Verifying that +petervanderdoes is my blockchain ID. https://onename.com/petervanderdoes
Verifying that +petervanderdoes is my blockchain ID. https://onename.com/petervanderdoes
@petervanderdoes
petervanderdoes / dovecot
Last active February 1, 2017 01:06
Dovecot file used for Logwatch.
#!/usr/bin/perl
########################################################
# $Id: dovecot 293 2015-03-27 16:01:35Z opoplawski $
########################################################
# $Log: dovecot,v $
# Revision 1.18 2010/09/18 17:41:00 stefan
# ignore: ssl-build-param
#
# Revision 1.17 2009/06/02 14:48:06 mike
# Removed some periods that were in the Fedora patch and broke the file -mgt
@petervanderdoes
petervanderdoes / 1. Sonarr & NZBGet Systemd Installation.md
Last active June 27, 2023 10:58
Sonarr & NZBGet Systemd service files

Instructions

The files are made for systems with systemd. The instructions are written with Ubuntu 16.04 in mind. Your file locations may vary.

Installation

  1. Become root
  2. Create the service files in lib/systemd/system
  3. Change <user> in the Sonarr service file to the approriate user.