I hereby claim:
- I am hranicka on github.
- I am hranicka (https://keybase.io/hranicka) on keybase.
- I have a public key ASA7S3DC1yp48XOLziNDo0U8PgSfE6yJrj56Z_SeaElmxQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
class AvailabilityResolver | |
{ | |
/** @var \DateTimeInterface */ | |
private $dateTime; | |
public function __construct(\DateTimeInterface $dateTime = NULL) | |
{ |
<?php | |
$user = ''; | |
$pass = ''; | |
$header = sprintf('Authorization: Basic %s', base64_encode(sprintf('%s:%s', $user, $pass))); | |
echo $header . "/n"; |
Inspired by christianewald/runtastic-export-all-activities.md. Thank you!
Major problem of the original solution above is that it opens "Save as" dialog for each file.
Yes, it can be by-passed if you set up a browser to automatically save the file (it's set up by default).
But I don't like it.
<?php | |
function doFlush() | |
{ | |
if (!headers_sent()) { | |
// Disable gzip in PHP. | |
ini_set('zlib.output_compression', 0); | |
// Force disable compression in a header. | |
// Required for flush in some cases (Apache + mod_proxy, nginx, php-fpm). |
version: '3' | |
services: | |
nginx: | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.provys-transformer.rule=Host(`www.example.com`)" | |
- "traefik.http.routers.provys-transformer.tls=true" | |
networks: | |
- traefik |