Skip to content

Instantly share code, notes, and snippets.

View vertexvaar's full-sized avatar

Oliver Eglseder vertexvaar

View GitHub Profile
@froemken
froemken / typo3-phpstorm-log-format.xml
Last active October 25, 2025 12:54
Highlight and parse TYPO3 CMS logs in PhpStorm’s “Log File Colors & Formatting”
<!--
TYPO3 PhpStorm Log Parser Configuration
=======================================
Author: Stefan Froemken
Purpose: Highlight and parse TYPO3 CMS logs in PhpStorm's "Log File Colors & Formatting"
This configuration extracts and color-codes log fields:
Timestamp, Severity, Request, Component, and Message.
@joseluisq
joseluisq / stash_dropped.md
Last active October 3, 2025 09:40
How to recover a dropped stash in Git?

How to recover a dropped stash in Git?

1. Find the stash commits

git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.

@manuquentin
manuquentin / gist:6446360
Created September 5, 2013 05:24
Reset git file permissions
git config --global --add alias.permission-reset '!git diff -p -R | grep -E "^(diff|(old|new) mode)" | git apply'
git permission-reset
@mathiasverraes
mathiasverraes / phplint.sh
Created July 12, 2012 07:42
Recursive PHP Lint script
#!/bin/bash
for file in `find .`
do
EXTENSION="${file##*.}"
if [ "$EXTENSION" == "php" ] || [ "$EXTENSION" == "phtml" ]
then
RESULTS=`php -l $file`