Skip to content

Instantly share code, notes, and snippets.

Avatar

Oliver Georgi slackero

  • webverbund.de + ООО Систрон
  • Moscow + Dessau
  • Twitter @slackero
View GitHub Profile
@slackero
slackero / twbs-auto-pagination.html
Last active Jun 29, 2018
Auto paginate DOM elements and paginate through it using twbs-pagination http://esimakin.github.io/twbs-pagination/
View twbs-auto-pagination.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
View db_utf8_fix.php
<?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
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
OR
~# /etc/rc.d/init.d/psa stopall