Put file PimcoreTinkerwellDriver.php
in .tinkerwell
directory
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
# env php.ini | |
ENV PHP_MEMORY_LIMIT "256M" | |
ENV PHP_POST_MAX_SIZE "100M" | |
ENV PHP_UPLOAD_MAX_FILESIZE "100M" | |
ENV PHP_DISPLAY_STARTUP_ERRORS 1 | |
ENV PHP_MAX_EXECUTION_TIME "30" | |
ENV PHP_ERROR_REPORTING "E_ALL" | |
# opcache settings | |
ENV OPCACHE_ENABLE 1 |
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
App\Provider\RepoDataProvider: | |
arguments: | |
$githubClient: !service | |
class: Symfony\Component\HttpClient\CachingHttpClient | |
arguments: | |
$client: '@github.client' | |
$store: !service | |
class: Symfony\Component\HttpKernel\HttpCache\Store | |
arguments: | |
$root: '%kernel.cache_dir%/http-client-github' |
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
[ | |
["http://localhost", [ | |
["connect-src", "connect-src self http://localhost:23517/"] | |
]] | |
] |
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
// ==UserScript== | |
// @name Redmine: Safe Time Entry | |
// @include https://*/issues/* | |
// @include https://*/time_entries/* | |
// ==/UserScript== | |
jQuery(document).on( | |
"input change click focus blur", | |
"#time_entry_hours", | |
function () { |
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
const axios = require("axios"); | |
const fs = require("fs"); | |
async function main() { | |
const positions = [...Array(206).keys()].map(k => k.toString().padStart(3, '0')); | |
for (const position of positions) { | |
await download(position).catch(console.error); | |
} |
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
// ==UserScript== | |
// @name falloutcheats.com - Vue Petite - Init | |
// @namespace Violentmonkey Scripts | |
// @match https://falloutcheats.com/perks | |
// @grant none | |
// @version 1.0 | |
// ==/UserScript== | |
;((script, target) => { | |
script.setAttribute('src', 'https://unpkg.com/petite-vue'); |
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 | |
$formatter = new \Monolog\Formatter\JsonFormatter(); | |
$handler = new \Monolog\Handler\StreamHandler('/www/logs/agent.log'); | |
$handler->setFormatter($formatter); | |
$logger = new \Monolog\Logger('agent', [$handler]); | |
$handler->pushProcessor(function (array $record) { | |
return [ | |
'timestamp' => ['seconds' => time(), 'nanos' => 0], | |
'logging.googleapis.com/severity' => 'ALERT', | |
'logging.googleapis.com/labels' => ['foo' => 'bar'], |
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 | |
$callback = function () { | |
}; | |
collect()->when($callback, static function (\Illuminate\Support\Collection $collection, \Closure $callback) { | |
return \Illuminate\Support\Collection::wrap($callback($collection)); | |
}); // Same as \DB::query()->get(), Model::query()->get() | |
\DB::query()->when($callback, static function (\Illuminate\Database\Query\Builder $query, \Closure $callback) { |
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
import {chromium as browser, ElementHandle, Page} from "playwright"; | |
import {default as PQueue} from "p-queue" | |
const username: string = 'gander' | |
const links = new Set; | |
let nextPage: string = ''; | |
(async () => { | |
const pages = new PQueue({concurrency: 7}) |
NewerOlder