Create a thumbnail grid (8 cols, 5 rows) with additional meta data in the style of ezthumb but with ffmpeg.
- ffmpeg
- imagemagick (montage & convert)
- bc
#!/usr/bin/env bash | |
# https://sourceforge.net/projects/ezthumb/ | |
function create_thumbnail { | |
ext="$1" | |
find . -type f -name "*.${ext}" -printf '%h\0' | sort -zu | while IFS= read -r -d '' dir; do | |
ezthumb --grid 8x5 --format "jpg@99" "${dir}/*.${ext}" | |
#echo "${dir}/*.${ext}" |
find . \ | |
-name "*.conf" \ | |
-o -name "Dockerfile" \ | |
-o -name ".dockerignore" \ | |
-o -name ".gitignore" \ | |
-o -name ".gitkeep" \ | |
-o -name "*Jenkinsfile" \ | |
-o -name "*.js" \ | |
-o -name "*.json" \ | |
-o -name "*.lock" \ |
<?php | |
$benchMark = new class() { | |
const MEASUREMENT_BLOCKS = 20; | |
const ITERATIONS = 100000; | |
private function variant1(): void | |
{ | |
// Implement variant 1 here | |
} |
version: '2' | |
services: | |
boinc: | |
image: boinc/client | |
container_name: boinc | |
restart: always | |
network_mode: host | |
pid: host | |
volumes: | |
- boinc:/var/lib/boinc |
<?php | |
use \DateTime; | |
use Lcobucci\JWT\Builder; | |
use Lcobucci\JWT\Parser; | |
use Lcobucci\JWT\Signer\Hmac\Sha512; | |
use Lcobucci\JWT\Signer\Key; | |
use Lcobucci\JWT\ValidationData; | |
class JwtUtils |
<?php | |
namespace Games\Game\Planetbase; | |
use Wa72\HtmlPageDom\HtmlPageCrawler; | |
/** | |
* @see https://games-blog.de/planetbase-cheats/4566/ | |
*/ | |
class CheatManager |
#!/bin/bash | |
# Check for root | |
if [[ "$(id -u)" != "0" ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
# Remove old kernels | |
apt autoremove |
<?php | |
namespace Application\Console\Command\Remote; | |
use DavaHome\Console\Command\AbstractCommand; | |
use GuzzleHttp\Client; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\DomCrawler\Crawler; |