Skip to content

Instantly share code, notes, and snippets.

View Gymnasiast's full-sized avatar

Michael Steenbeek Gymnasiast

  • The Netherlands
View GitHub Profile
@num8er
num8er / polyfills.php
Last active December 4, 2024 20:51
PHP 5.3 to 7.x migration polyfill collection.
<?php
namespace Polyfills
{
final class Ereg
{
public static function ereg($pattern, $string, &$regs = null)
{
if ($pattern === '' || $pattern === null) {
trigger_error('ereg(): REG_EMPTY', E_USER_WARNING);
@schmich
schmich / ducky.md
Last active January 18, 2026 08:51
Programming media keys on the Ducky One 2 Skyline

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function: