Skip to content

Instantly share code, notes, and snippets.

@d3v1anX
d3v1anX / git-changes.sh
Created September 5, 2025 06:29
Shows all local git changes from a given date - maybe to remember what you did? ;-)
#!/bin/bash
# Abbruch, wenn kein Datum angegeben wurde
if [ -z "$1" ]; then
echo "❌ Bitte ein Datum im Format YYYY-MM-DD angeben."
echo "Beispiel: $0 2025-08-15"
exit 1
fi
TARGET_DATE="$1"
@d3v1anX
d3v1anX / gist_markdown_examples.md
Created May 31, 2024 11:34 — forked from ww9/gist_markdown_examples.md
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@d3v1anX
d3v1anX / deploy.sh
Created February 15, 2023 05:11 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH