maplace.js – simple map with markers

Maplace.js is a library for google maps. This snippet

  • creates a map
  • creates 2 marker
  • applies some “style” to this map


october cms: relations



This is a (hopefully correct) working example of a 1 to n relation.




october cms themes


Basic Layout:

Here is a sample structure of a october theme. the layout file combines the header and the footer into a working layout, which can be used for pages.

Theme structure





parsley js: bootstrap validation

Parsley is a javascript form validation library. This snippets configures parsley for bootstrap input elements.

parsley options reference:

ufw: firewall



secure a mongo instance with client access control

Set up the first user:

Now, create a database user:


Check if a form has changes before unload the page




wp-cli: update / backup strategy

The following sequence I use to backup WordPress before I do an update / upgrade:

1) DB Backup

2) File Backup

3) Core update

4) Plugin Update

5) Theme Update

Fallback / Recover


And here some shell scripts:


install mongodb for php7

deploy a wordpress multisite from development to production

Here are my steps for deploying a wordpress multisite (network) from local development environment to a production system.

  1. local: create database dump
  2. rewrite all urls in the database dump
  3. local: zip the wordpress directory
  4. check if your network domains are set up properly
  5. prod: unzip
  6. prod: import dump
  7. prod: change wp_config.php  for production settings
  8. thats it 🙂

SASS and LESS mixin for transitions

Better than pure CSS ist, to write LESS or SASS/SCSS.

Here are some mixins …




mysqldump – sichern und einspielen

Kommando zum Sichern aller Datenbanken

Und speziell für Windows Maschinen

Sichern einer bestimmten Datenbank

Kommando zum Einspielen der Sicherung: komplette Sicherung

Kommando zum Einspielen der Sicherung: einzelne Datenbank

console for wordpress – wp-cli

Install a wordpress blog:


jslint / jshint – my notes

global browser variables, window, document …

suppress linting for jQuery ($)

suppress linting for unused params

suppress linting for new operator

suppress linting for ++ operator


A Comparison of JavaScript Linting Tools