Skip to content

Instantly share code, notes, and snippets.

View DamichiXL's full-sized avatar

Maksym Sliusarchuk DamichiXL

  • Ukraine, Rivne
View GitHub Profile
@DamichiXL
DamichiXL / remove-previous-snaps.sh
Created September 17, 2023 08:53
Remove previous snap packages
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
LANG=C snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
@DamichiXL
DamichiXL / gist:9971fd1cca950c5dbfa50f2e3977988e
Created August 13, 2023 14:31
Run Laravel Sail without installed composer and php
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs