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
FROM php:7.4-fpm as php | |
ARG user | |
ARG uid | |
ARG nodejs_latest=latest | |
# Install dependencies | |
RUN apt update && apt install -y --no-install-recommends git unzip subversion | |
# Install node / npm |
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 | |
class HTML2PDF { | |
private string $node; | |
private string $script; | |
private string $baseHref; | |
private bool $enableBackgrounds = false; | |
private string $orientation = self::PORTRAIT; | |
private string $format = self::LETTER; | |
private string $header = ''; |
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 | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Promise\Promise; | |
use function GuzzleHttp\Promise\all; | |
use function GuzzleHttp\Promise\queue; | |
const CMD1 = 'd:\Software\Packages\ffmpeg\bin\ffmpeg.exe -i title_t01.mkv -map 0:0 -vcodec h264 -crf 18 -map 0:1 -acodec copy t1.mp4'; |
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 | |
class Crawler { | |
private $linkQueue; | |
private $linkExtractor; | |
public function __construct(){ | |
$this->linkExtractor = new LinkExtractor; | |
} |
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
//Inject with an addon such as [Custom Style Script](https://addons.mozilla.org/en-US/firefox/addon/custom-style-script/) | |
window.addEventListener('DOMContentLoaded', function(e){ | |
var body = document.body; | |
var articleBody = document.querySelector('.article-body'); | |
var remainderContent = document.querySelector('.remainder-content'); | |
body.addEventListener('click', function(){ | |
var paywall = document.querySelector('.paywall-overlay'); | |
if (paywall && paywall.parentNode){ | |
paywall.parentNode.removeChild(paywall); | |
} |
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
// Inject with an addon such as [Custom Style Script](https://addons.mozilla.org/en-US/firefox/addon/custom-style-script/) | |
window.addEventListener('DOMContentLoaded', function(e){ | |
var content = document.querySelectorAll('[name=articleBody] > div'); | |
document.body.addEventListener('click', function(e){ | |
var banner = document.getElementById('gateway-content'); | |
if (!banner){ | |
return; | |
} | |
var parent = banner.parentNode; |
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
U-Boot 1.1.4 (Feb 18 2017 - 21:46:58) | |
ap151 - Dragonfly 1.0 | |
DRAM: 128 MB | |
Top of RAM usable for U-Boot at: 88000000 | |
Reserving 405k for U-Boot at: 87f98000 | |
Reserving 32832k for malloc() at: 85f88000 |
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 | |
function markTime($label){ | |
static $points = []; | |
static $firstRun = true; | |
if ($firstRun){ | |
$firstRun = false; | |
register_shutdown_function(function () use (&$points){ | |
$firstPoint = reset($points); |