Skip to content

Instantly share code, notes, and snippets.

View jonaseberle's full-sized avatar
I may be slow to respond

Jonas Eberle jonaseberle

I may be slow to respond
View GitHub Profile
@jonaseberle
jonaseberle / gitTagRelease
Last active October 14, 2024 12:37
bin/gitTagRelease: Bash script that helps tagging commits like "live-1.2.3"; asks to push the tag and run ‹ddev surf deploy ...›.
#!/bin/bash
## Description: Create and push new git release tag. Deploy via ‹ddev surf deploy ...›.
## Requirements: You use release tags of the form <releaseChannel>-<major>.<minor>.<bugfix>
# saner programming env: these switches turn some bugs into errors
set -o errexit -o pipefail -o noclobber -o nounset
usage() {
echo "Usage:"
@bnf
bnf / Makefile
Last active April 20, 2022 14:13
Makefile wrapper for TYPO3 core Gruntfile – location: Build/Makefile
.PHONY: assets css js install help watch build
HAS_DDEV_CONFIG=$(if $(wildcard ../.ddev/config.yaml),1)
IS_IN_DDEV_CONTAINER=${IS_DDEV_PROJECT}
# Generate "ddev exec" prefix if ddev is configured and not running inside the ddev container
COMMAND_PREFIX=$(if $(HAS_DDEV_CONFIG),$(if $(IS_IN_DDEV_CONTAINER),,(ddev exec -s web true >/dev/null || ddev start) && ddev exec -s web -d /var/www/html/Build))
YARN=$(COMMAND_PREFIX) yarn
GRUNT=$(COMMAND_PREFIX) node_modules/.bin/grunt
@xperseguers
xperseguers / README.md
Last active March 23, 2024 18:21
Create composer patch from a pending TYPO3 patch on Gerrit

Following structure is expected for your TYPO3 project (adapt script if it differs):

.
├── composer.json
├── composer.lock
├── patches
│   ├── ...
│   └── ...
└── scripts
@a-r-m-i-n
a-r-m-i-n / FaViewHelper.php
Created March 25, 2020 14:41
Font Awesome ViewHelper (using SVG sprites) for TYPO3 CMS 9+
<?php declare(strict_types=1);
namespace Armin\Vieweg\ViewHelpers;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
* Font Awesome SVG ViewHelper
@bmack
bmack / LocalPageErrorHandler.php
Last active June 4, 2021 12:53
Local Error Handler for TYPO3
<?php
namespace B13\AnyProject\PageErrorHandler;
/*
* This file is part of a b13 extension.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@Erikdegroot89
Erikdegroot89 / list-updates.sh
Created February 1, 2019 10:16
Get all commits since last tag
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log
@ga2arch
ga2arch / gist:8547483
Created January 21, 2014 20:13
Create Dummy ALSA Devices (en mass)
Create Dummy ALSA Devices (en mass)
Written by Mike C. Fletcher on April 16, 2012 in Tuxedo.
Since this was a bit of a pain to track down, here's the process, on an Ubuntu Server 12.04 machine, to create many ALSA dummy devices:
$ cat /etc/modprobe.d/alsa-dummy.conf
options snd-dummy enable=1,1,1,1,1,1,1,1,1,1,1,1 pcm_devs=4,4,4,4,4,4,4,4,4,4,4,4 fake_buffer=0,0,0,0,0,0,0,0,0,0,0,0
$ modprobe snd-dummy
That sample creates 48 dummy devices (on 12 cards), though that's likely more than you'll ever need. The fake_buffer array means they should all have a real internal buffer. The "enable" array is specifying how many cards to create. The pcm_devs array specifies how many pcm devices to have on each card.