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
self: super: | |
{ | |
php = super.php82.buildEnv { | |
extensions = ({ enabled, all }: enabled ++ ( | |
with all; [ | |
xdebug | |
redis | |
amqp | |
]) | |
); |
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
!function(){"use sctrict";function n(n){return/^\s*$/.test(n)}window.theredoc=function(t,...e){const c=function(t){const e=n(t[0]),c=n(t[t.length-1]);return e||c?t.slice(e?1:0,c?t.length-1:t.length):t}(function(n,t){let e="";return n.forEach((n,c)=>{e+=n+(t[c]||"")}),e}(t,e).split("\n"));return function(n,t){const e=new RegExp(`^ {${t}}`);return n.map(n=>e.test(n)?n.replace(e,""):n)}(c,function(n){let t=null;return n.forEach(n=>{const e=n.search(/[^ ]/);-1!==e&&(null===t||e<t)&&(t=e)}),t}(c)).join("\n")}}(); |
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 Pimp My List | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Pin unwatched animes on top of the list, remember filters, add priorities to "considered" animes | |
// @author Guillem CANAL | |
// @match https://www.livechart.me/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=livechart.me | |
// @grant none | |
// ==/UserScript== |
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 __DIR__ . '/vendor/autoload.php'; | |
// Most PHP CLI tools run this snippet to disable Xdebug at runtime | |
use Composer\XdebugHandler\XdebugHandler; | |
$xdebug = new XdebugHandler('myCliApp'); | |
$xdebug->setPersistent(); | |
$xdebug->check(); |
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 | |
print join("\n", array_map(fn(string $name) => $name.':'.(new ReflectionExtension($name))->getVersion(), get_loaded_extensions())); |
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
[ | |
{ | |
"number": 3, | |
"name": "AADAM" | |
}, | |
{ | |
"number": 5, | |
"name": "AAHIL" | |
}, | |
{ |
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
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wds: <http://www.wikidata.org/entity/statement/> | |
PREFIX wdv: <http://www.wikidata.org/value/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
PREFIX wikibase: <http://wikiba.se/ontology#> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
PREFIX ps: <http://www.wikidata.org/prop/statement/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX bd: <http://www.bigdata.com/rdf#> |
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 sh | |
set -e | |
main() { | |
case $1 in | |
start) | |
pgrep dockerd || sudo nohup /usr/bin/dockerd \ | |
--tlsverify \ | |
--tlscacert=/home/user/.docker/ca.pem \ |
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
/** | |
* Clean the Github's Notification Page | |
* | |
* @see https://github.com/notifications | |
* | |
* @param {String} type Either "all", "merged", "closed", "draft" or "closed-issues" | |
*/ | |
const clearGithubNotifications = type => { | |
// @TODO Handle notifications list refresh (when the user have multiple pages of notifications) | |
const PULL_REQUEST_MERGED = ".octicon-git-merge"; |
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 | |
interface TimeProvider | |
{ | |
public function now(): \DateTimeImmutable; | |
} | |
class SystemTime implements TimeProvider | |
{ | |
public function now(): \DateTimeImmutable |
NewerOlder