Skip to content

Instantly share code, notes, and snippets.

View ahoendgen's full-sized avatar

André Hoendgen ahoendgen

View GitHub Profile
#!/usr/bin/env bash
echo "🦊 Installing PhotoGimp..."
#
# installing photogimp_osx
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/MatthijsKamstra/Mac-setup/master/install/photogimp_osx.sh)"
#
echo "→ Closing GIMP if it is open"
@ahoendgen
ahoendgen / docker-cleanup-resources.md
Last active January 27, 2021 08:05 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

docker volume rm $(docker volume ls -qf dangling=true)

docker volume ls -qf dangling=true | xargs -r docker volume rm

@ahoendgen
ahoendgen / yaml_fixer.php
Last active December 4, 2019 14:55
fix for symfony/yaml readable but for prettier broken yaml
<?php
require_once 'vendor/autoload.php';
use Symfony\Component\Yaml\Yaml;
$path = 'broken_but_readable.yaml';
$value = Yaml::parse(file_get_contents($path));
@ahoendgen
ahoendgen / markdwon2html.sh
Last active October 16, 2019 13:11
Convert markdown files easily into html with the help of pandoc
#!/usr/bin/env bash
target=${2:-"dump.html"}
pandoc -f markdown "${@:1}" > "${target}" --filter pandoc-plantuml
exit $?
@ahoendgen
ahoendgen / listFontInformation.js
Last active January 5, 2020 05:27 — forked from macbookandrew/findStyles.js
JS - List unique font information of all DOM elements
/**
* List unique font information of all DOM elements
* Based on the awesome code from AndrewRMinion
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a URL of the base code}
*
* @see {@link https://gist.github.com/ahoendgen/ebcabb595cc8465e4688275311a5c009/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @author André Hoendgen (https://andre-hoendgen.de)
* @version 1.1
@ahoendgen
ahoendgen / remove-merged-branches.sh
Last active September 6, 2021 16:23
Git - Remove merged branches locally
git checkout main && git fetch --all --prune && git branch --merged | egrep -v "(^\*|master|main|develop)" | xargs git branch -d