Skip to content

Instantly share code, notes, and snippets.

View borriglione's full-sized avatar

André Herrn borriglione

View GitHub Profile
@borriglione
borriglione / change_db_owner.sh
Created November 20, 2018 11:17 — forked from gingerlime/change_db_owner.sh
Postgresql - Changing ownership on all tables
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto
@borriglione
borriglione / README.md
Last active May 9, 2018 10:32 — forked from aboritskiy/README.md
Magento 1 attribute usage statistic

Magento 1 attribute usage statistic

The idea here is super simple - check how much is current attribute used and decide which can be removed from the shop to increase the performance and/or reduce database load. Script might be quite heavy to run at once, thus consider splitting it in two by commenting out some left joins and corresponding count selects.

@borriglione
borriglione / gist:2237588
Created March 29, 2012 13:45 — forked from quafzi/gist:2234563
Magento Snippets

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex