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 / 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.JetBrains_Change_Location_Of_Config_And_System_Directories.md
Last active August 19, 2024 08:44
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 / 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.