This file contains 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
[www] | |
user = www-data | |
group = www-data | |
listen = 127.0.0.1:9000 | |
listen.backlog = 511 | |
;listen.allowed_clients = 127.0.0.1 | |
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user or group is differrent than the master process user. |
This file contains 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
#!/usr/bin/env php | |
<?php | |
// This should be the main domain your certificate is valid for. It's used for reverse | |
// matching the installed certificate and resolving the file path to your certificate | |
// files on the local file system. | |
$domain = 'your.domain.name.tld'; | |
// This should be your Cloudflare zone ID. You can find it in the right sidebar on your | |
// Cloudflaare account dashboard. |
This file contains 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
'use strict'; | |
const axios = require('axios'); | |
class Cloudflare { | |
constructor ( zone, emailAddress, apiKey ) { | |
this._zone = zone; | |
this._emailAddress = emailAddress; | |
this._apiKey = apiKey; |
This file contains 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 | |
/** | |
* Intercepts bytes written to an output stream and redirects them into a buffer instead | |
*/ | |
class OutputInterceptor extends php_user_filter | |
{ | |
/** | |
* Holds the PHP stream filter | |
*/ |
This file contains 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
<template> | |
<article class="template-editor"> | |
<header> | |
<h2 class="editor-heading">Twig Template editor</h2> | |
</header> | |
<section class="variable-editor"> | |
<header> | |
<h3 class="variables-heading"> | |
Variables | |
<span class="variable-count">{{ Object.keys(this.variables).length }}</span> |
This file contains 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
/** | |
* Micro-wrapper for HTTP requests | |
* | |
* @type {Object} | |
*/ | |
window.http = { | |
/** | |
* Builds a valid URL. Unless a full URL (including a protocol) is given, the current origin will be used. | |
* |
This file contains 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 | |
/** | |
* TimeSpan class | |
* ============== | |
* | |
* Provides a convenience class to handle time amounts and time spans: Ever wondered how to easily figure out how many | |
* hours there are between 09:15:31 and 18:55:01? This class is for you. Going with the example, it's as easy as: | |
* | |
* `echo (new TimeSpan('18:55:01'))->sub('09:15:31')->format('h:m'); // '09:39'` |
This file contains 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
'use strict'; | |
import FileSaver from 'file-saver'; | |
import JSZip from 'jszip'; | |
class Spreadsheet { | |
/** | |
* Holds all replacement strings to escape | |
* |
This file contains 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
'use strict'; | |
import FileSaver from 'file-saver'; | |
import JSZip from 'jszip'; | |
class Spreadsheet { | |
/** | |
* Holds all replacement strings to escape | |
* |
This file contains 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 | |
namespace Vendor\Library; | |
use function bin2hex; | |
use function hex2bin; | |
use function openssl_decrypt; | |
use function openssl_encrypt; | |
use function random_bytes; |