Skip to content

Instantly share code, notes, and snippets.

Avatar

Dennis Morhardt gglnx

View GitHub Profile
View CustomFieldBehavior_2@zvyjrpprfe.php
<?php
/**
* @link http://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license http://craftcms.com/license
*/
namespace craft\behaviors;
use yii\base\Behavior;
View key-transition-2021-03-17.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Berlin, 2021-03-17
OpenPGP Key Transition Statement
I have created a new OpenPGP key and will be transitioning away from
my old key. The old key has not been compromised and will continue to
be valid for some time, but I prefer all future correspondence to be
View openpgp.md
@gglnx
gglnx / README.md
Created Feb 12, 2021
Download all data request files from Amazon
View README.md

Open the Privacy Central Data Request page.

Run this in your console

(await Promise.all(
    Array.from(document.querySelectorAll('[data-action="get-document-link-and-download"]'))
        .map(async ($el) => {
            const data = JSON.parse($el.dataset.getDocumentLinkAndDownload);
            const requestData = {
@gglnx
gglnx / LinkField.php
Created Jan 4, 2021
Add simple support for Link Field by Sebiastan Lenz to Feed Me
View LinkField.php
<?php
use Cake\Utility\Hash;
use craft\feedme\base\Field;
use craft\feedme\base\FieldInterface;
use craft\feedme\helpers\DataHelper;
/**
* Adds support for Link field by Sebastian Lenz to Feedme
*/
@gglnx
gglnx / message.txt
Created May 7, 2020
keys.pub proof
View message.txt
BEGIN MESSAGE.
aWtS9WGb8Nk0LNE i56ErQgPAtWkguw jClbULwAVbrHrRx S8J22xvsechjeKx
I9TzjcSUSNimV0s z3KWftQkgqvTCKq 6Xr2MZHgg4hCBQs TV4hQacnRRlsKUy
JNEASUA2pQBgglN bLadRI41kOzcOUk YSMtUKH8DfO1Zj0 TVI9mtgO3XRDFSM
2M4HieA9Bxkc9X3 Pmq9pETMl4ABhQU HWlIL.
END MESSAGE.
View containsMb4.php
<?php
// Download the bible from here: https://bereanbible.com/bsb.txt
ini_set('memory_limit', -1);
require_once 'helpers.php';
echo('Start: ' . convert(memory_get_usage()) . "\r\n");
@gglnx
gglnx / extract-chapters-from-m4a-as-psc.js
Created Mar 18, 2019
Extract chapter marks from M4A/MP4 files as Podlove Simple Chapters
View extract-chapters-from-m4a-as-psc.js
#!/usr/bin/env node
'use strict';
const cheerio = require('cheerio');
const child_process = require('child_process');
const fs = require('fs');
const meow = require('meow');
const MP4Box = require('mp4box');
const path = require('path');
const tmp = require('tmp');
const groupBy = require('lodash.groupby');
@gglnx
gglnx / get-unicode-range-from-string.js
Created Mar 18, 2019
Get unicode-range (CSS) from string
View get-unicode-range-from-string.js
const multirange = require('multi-integer-range').multirange;
// Helpers
const trimLeadingZero = (str) => str[0] === '0' ? str.slice(str.lastIndexOf('0') + 1) : str;
const formatCodePoint = (...values) => `U+${values.map(trimLeadingZero).map(s => s.toString(16)).join('-')}`;
const uniqs = (arrArg) => arrArg.filter((elem, pos, arr) => arr.indexOf(elem) == pos);
// String for translate
const string = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~¢£¥¨©«®´¸»ÄÖÜßäöüˆ˚˜–—‘’‚“”„…‹›€™';
@gglnx
gglnx / index.md
Last active Mar 17, 2018
Informationssammlung zur Umsetzung der EU-Richtlinie 2016/2102
View index.md

Informationssammlung zur Umsetzung der EU-Richtlinie 2016/2102

Richtlinie (EU) 2016/2102 des Europäischen Parlaments und des Rates vom 26. Oktober 2016 über den barrierefreien Zugang zu den Websites und mobilen Anwendungen öffentlicher Stellen

Deadlines (§12 Abs. 3 EU/2016/2102)

  • Webseiten, die vorm 23. September 2018 veröffentlicht wurden: 23. September 2020
  • Webseiten, die nach dem 23. September 2018 veröffentlicht wurden: 23. September 2019
  • Mobile Applikationen: 23. Juni 2021