Skip to content

Instantly share code, notes, and snippets.

View BugBuster1701's full-sized avatar
🏠
Working from home

Glen Langer BugBuster1701

🏠
Working from home
  • T-Systems
  • Berlin, Germany
View GitHub Profile
@koertho
koertho / CustomPageController.php
Last active April 10, 2026 20:59
Contao 5 Page Controller with Layout. Use Custom Controller and Templates within the contao layout. Build with reusable trait. Example replace the main section of the template. You can also replace another section and activate the content composition and add article to other template sections.
<?php
namespace App\Controller\Page;
use Contao\CoreBundle\Controller\AbstractController;
use Contao\CoreBundle\DependencyInjection\Attribute\AsPage;
use Contao\PageModel;
use Symfony\Component\HttpFoundation\Request;
#[AsPage(type: 'custom_page',path: '/custom', contentComposition: false,)]
@jamct
jamct / Readme.md
Last active April 6, 2026 11:21
Docker für c’t 3003

Hier alle im Video erwähnten Befehle:

Docker installieren:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh

Falls kein curl installiert: apt install curl

@OrionReed
OrionReed / dom3d.js
Last active April 8, 2026 16:29
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯

Spass mit der Corona-Warn App

...wenn Technik Freaks ein zu langes Wochenende (bzw regnerischen Nachmittag) haben

@qoomon
qoomon / TravisGitHub.md
Last active September 16, 2024 18:50
Setup GitHub Deploy Keys For Travis
@fritzmg
fritzmg / be_rebuild_index.html5
Last active August 23, 2016 11:32
Contao RebuildIndex template with more feedback
<div id="tl_maintenance_index" class="maintenance_<?= $this->isActive ? 'active' : 'inactive' ?>">
<h2 class="sub_headline_index"><?= $this->indexHeadline ?></h2>
<?php if ($this->indexMessage): ?>
<div class="tl_message">
<p class="tl_error"><?= $this->indexMessage ?></p>
</div>
<?php endif; ?>
@evantoli
evantoli / GitConfigHttpProxy.md
Last active March 12, 2026 09:22
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@RavuAlHemio
RavuAlHemio / contao3.conf
Last active July 21, 2017 21:51
Contao 3 and 4 nginx.conf
index index.php index.html;
location ~ ^/(favicon\.ico|robots\.txt)$ {
allow all;
log_not_found off;
access_log off;
}
# don't show templates
location ~* \.(tpl|html5|xhtml)$ {
@kikmedia
kikmedia / .htaccess
Last active August 29, 2015 14:15
New .htaccess settings for Contao 2.11.x / Apache 2.4
##
# New Apache 2.4 syntax
##
# Prevent access to the Contao template files
##
<FilesMatch "\.(tpl|html5|xhtml)$">
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
@fiedsch
fiedsch / Contao backup script
Last active October 20, 2018 16:42
Contao Backup
moved to repository https://github.com/fiedsch/contao-backup-script
see also https://github.com/fiedsch/contao-4-backup-script (for Contao 4)