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 / 1. README.md
Last active April 12, 2017 03:15
My workflow and files for building Ubuntu packages

Intro

These are files I use for creating Ubuntu Packages. It's a semi automated system, including docker images for building the packages.

Layout

  • My general directory for packaging is /d1/development/packaging.
  • Each package has it's own directory, as an example I'll be using Dovecot.
  • The directory /d1/development/packaging contains the file build_package.
  • In the directory /d1/development/packaging/dovecot, there are three directories bin, source, upstream.
@petervanderdoes
petervanderdoes / 1.JetBrains_Change_Location_Of_Config_And_System_Directories.md
Last active February 28, 2024 05:34
JetBrains change location of config and system directories

Intro

Normally the Jetbrains applications store their config and system in a directory in your home directory. That's fine except when you run out of space in your home directory, or they change the directory with an upgrade. For example, when you upgrade PhpStorm from 2016.3 to 2017.1, the config directory and systems directory changes as well. This means that 2017.1 doesn't have the plugins you installed with 2016.3

Somewhere buried deep in the knowledge base is an article that explains how you can fix this but putting it out here makes it easier to find.

Instructions

These instructions are written for Ubuntu, if you run another distro the locations and files might be different.

I'm assuming you config and system directory will be stored in /d1/config/{JetBrains App}/

@petervanderdoes
petervanderdoes / README.md
Last active June 9, 2017 01:23
Home IP Change

What is this

My home IP changes every now and then, I never had this problem with the many years I had Comcast but now with FIOS it happened three times in less than two months. Of course the IP change always happen in the middle of the night.

I have a server running outside my home network. If my home IP changes it can be problematic for several programs running on the server, mostly mail but also the ability to SSH to the server. I would have to log in to the server through the web interface, acknowledge the new IP is me, change the IP in several configuration files, and then restart the services.

I rather do this automatically :)

Requirements

  • Your home IP must be registered with a dynamic DNS service.
@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.
@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 / 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 / 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 / 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 / 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');

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: