# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Excellent - you saved alot of my time. | |
| Just one adjustment to the script, you have to add database type with -I option. | |
| mdb-export -I 'mysql' -R ';' $mdb $table >> $sql | |
| mdb=$1 | |
| sql=$2 | |
| if [ -z "$2" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Start a new pool named 'www'. | |
| ; the variable $pool can be used in any directive and will be replaced by the | |
| ; pool name ('www' here) | |
| [www] | |
| ; Per pool prefix | |
| ; It only applies on the following directives: | |
| ; - 'access.log' | |
| ; - 'slowlog' | |
| ; - 'listen' (unixsocket) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * css-sans.css v1.0.0 | |
| * (c) 2015 Yusuke Sugomori | |
| * MIT License | http://yusugomori.com/license/mit | |
| */ | |
| .A { | |
| position: relative; | |
| left: 30px; | |
| width: 60px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Copyright 2013 Radoslaw Kamil Ejsmont <[email protected]> | |
| * | |
| * Original code by mailaneel is available at | |
| * https://gist.github.com/mailaneel/1363377 | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Python 2.7 Regular Expressions | |
| Special characters: | |
| \ escapes special characters. | |
| . matches any character | |
| ^ matches start of the string (or line if MULTILINE) | |
| $ matches end of the string (or line if MULTILINE) | |
| [5b-d] matches any chars '5', 'b', 'c' or 'd' | |
| [^a-c6] matches any char except 'a', 'b', 'c' or '6' | |
| R|S matches either regex R or regex S. |