Skip to content

Instantly share code, notes, and snippets.


Oliver Georgi slackero

  • + ООО Систрон
  • Moscow + Dessau
  • Twitter @slackero
View GitHub Profile
slackero / twbs-auto-pagination.html
Last active Jun 29, 2018
Auto paginate DOM elements and paginate through it using twbs-pagination
View twbs-auto-pagination.html
<!DOCTYPE html>
<html xmlns="">
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="" rel="stylesheet">
<script src="" type="text/javascript"></script>
<script src=""></script>
View db_utf8_fix.php
// db_utf8_fix.php //
// Original author: J. van Hemert //
// Original Date: 26-10-2011 //
// //
// Fixes encoding when utf-8-encoded data //
// is stored in tables with other (e.g. //
// latin_swedish_ci) encoding. //
// Will convert all columns in all tables //
slackero / UbuntuPleskVhosts
Last active Jun 28, 2017
Ubuntu 14.04 with Plesk 12: move /var/www/vhosts to another location
View UbuntuPleskVhosts
Use "sudo command" or as root user:
In this example /var/www/vhosts is moved to /data/www/vhosts on another partition. Change all steps as your needed for your location.
1) Stop services
~# /etc/init.d/psa stopall
~# /etc/rc.d/init.d/psa stopall