Skip to content

Instantly share code, notes, and snippets.

View medienbaecker's full-sized avatar
🥨

Thomas Günther medienbaecker

🥨
View GitHub Profile
@lukaskleinschmidt
lukaskleinschmidt / bootstrap.php
Created March 2, 2020 09:17
Kirby Thumbnails
<?php
// bootstrap/kirby.php
include dirname(__DIR__) . '/vendor/autoload.php';
$kirby = new Kirby([
'roots' => [
'base' => $base = dirname(__DIR__),
'index' => $base . '/public',
'content' => $base . '/content',
@Stolzenhain
Stolzenhain / kirby-group-files.php
Created June 22, 2016 10:10
Kirby CMS: Collect files sharing the same name / different extension for HTML5 Video handling
<?php
//build lookup array for files with the same name but a different extension
$fileGroups = [];
foreach($page->files() as $file) {
if (!isset($fileGroups[$file->name()])) {
$fileGroups[$file->name()] = [];
}
array_push($fileGroups[$file->name()], $file->extension());
}
@baumandm
baumandm / GIF-Screencast-OSX.md
Last active November 3, 2023 07:18 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to Animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime and ffmpeg.

Forked from https://gist.github.com/dergachev/4627207. Updated to use a palette to improve quality and skip gifsicle.

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: