apt update && apt install jpegoptim optipng -y
cd /path/to/your/image/folder
| <?php | |
| use Illuminate\Container\Container; | |
| use Illuminate\Database\Capsule\Manager as Capsule; | |
| use Illuminate\Database\ConnectionResolverInterface; | |
| use Illuminate\Database\Migrations\DatabaseMigrationRepository; | |
| use Illuminate\Database\Migrations\MigrationRepositoryInterface; | |
| use Illuminate\Database\Migrations\Migrator; | |
| use Illuminate\Events\Dispatcher; |
| For service account auth include: | |
| require_once __DIR__ . '/ServiceAccount.php'; | |
| For Oauth2 include: | |
| require_once __DIR__ . '/Oauth2Authentication.php'; | |
| Note: To reset the auth for oauth to just unset the sessions |
| public static string StripHtml(this string value) | |
| { | |
| HtmlDocument htmlDoc = new HtmlDocument(); | |
| htmlDoc.LoadHtml(value); | |
| if (htmlDoc == null) | |
| return value; | |
| return htmlDoc.DocumentNode.InnerText; | |
| } |
| <IfModule mpm_prefork_module> | |
| StartServers 1 | |
| MinSpareServers 1 | |
| MaxSpareServers 3 | |
| MaxClients 6 | |
| MaxRequestsPerChild 0 | |
| </IfModule> | |
| <IfModule mpm_worker_module> | |
| StartServers 1 |
| <?php | |
| // get latest german WordPress file | |
| $ch = curl_init(); | |
| $source = "https://de.wordpress.org/latest-de_DE.zip"; | |
| curl_setopt($ch, CURLOPT_URL, $source); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| $data = curl_exec ($ch); | |
| curl_close ($ch); |
https instead of httpThis config assumes that nginx is run from docker image _/nginx.
docker network create nginx
mkdir -p /etc/myproject/nginx
cd /etc/myproject/nginx
| http://flukeout.github.io/ | |
| #01 plate | |
| #02 bento | |
| #03 #fancy | |
| #04 plate > apple | |
| #05 #fancy pickle | |
| #06 .small | |
| #07 orange.small | |
| #08 bento > orange.small |