apt-get install ufw
ufw allow ssh
ufw allow http
ufw allow https
ufw allow ldap
ufw allow ldaps
ufw enable
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
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 |
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 | |
$user = ''; | |
$pass = ''; | |
$header = sprintf('Authorization: Basic %s', base64_encode(sprintf('%s:%s', $user, $pass))); | |
echo $header . "/n"; |
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 | |
class AvailabilityResolver | |
{ | |
/** @var \DateTimeInterface */ | |
private $dateTime; | |
public function __construct(\DateTimeInterface $dateTime = NULL) | |
{ |
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 | |
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). |
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:
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.