Skip to content

Instantly share code, notes, and snippets.

View zolthan's full-sized avatar

Sebastian Wilhelm zolthan

View GitHub Profile
@zolthan
zolthan / docker-compose-pull.sh
Last active September 30, 2020 07:39
Pull Docker images for all projects
#!/bin/bash
# Add ssh agent
ssh-add
# Keep composer up to date
composer self-update
# The script assumes that you have all your projects collected in one directory like
# - ./Projects
# |- Project A
# |- Project B
@zolthan
zolthan / shopware6-golive-cleanup.sql
Last active September 21, 2020 13:04
Shopware 6 - Cleanup testing data (Orders, Customers, etc)
DELETE FROM `document` WHERE referenced_document_id IS NOT NULL;
DELETE FROM `document`;
DELETE FROM `cart`;
DELETE FROM `order`;
DELETE FROM `customer`;
DELETE FROM `log_entry`;
DELETE FROM `newsletter_recipient`;
-- Plugin Frosh Mail Archive
DELETE FROM `frosh_mail_archive`;
@zolthan
zolthan / svg-convert.sh
Created March 23, 2017 14:35
Convert SVG to PNG @2x @3x
#!/bin/bash
# I made this script to convert SVG icons for an iOS app into PNG.
# The script will create icons in 3 sizes for different screen DPIs.
find . -type f -name "*.svg" | while read f
do
echo '---'
FILENAME="${f%.*}"
echo $FILENAME