Skip to content

Instantly share code, notes, and snippets.

View olafgleba's full-sized avatar

Olaf Gleba olafgleba

View GitHub Profile
@olafgleba
olafgleba / browsersync-install-grunt-plugin.js
Created December 5, 2015 11:06
Browsersync Grunt Plugin installieren
$ npm install grunt-browser-sync --save-dev
@olafgleba
olafgleba / atom-styles.less
Created July 2, 2016 16:02
Bigger Tags in Atom Editor
.tab-bar {
height: 45px;
}
.tab-bar .tab {
height: 45px;
padding-right: 32px;
}
.tab-bar .tab:hover {
@olafgleba
olafgleba / swap-multilanguage-content.php
Last active January 25, 2026 23:01
Swap multilanguage content when changing the default language in ProcessWire.
<?php namespace ProcessWire;
/**
* Swap the content of multilingual fields between two languages
*
* - Tested with ProcessWire 3.0.x, PHP 8.4.x
*
* Usage:
*
* Place the script file in the root of your PW installation (or
@olafgleba
olafgleba / cleanup-orphaned-page-folders.php
Last active January 25, 2026 23:01
Clean up orphaned page folders in ProcessWire
<?php namespace ProcessWire;
/**
* Cleanup orphaned page folders and their content
*
* - Only delete page folders WITH NO existing Page-ID.
* - Implements a dry run mode
* - Tested with ProcessWire 3.0.x, PHP 8.4.x
*
* Place the script file in the root of your PW installation (or