Skip to content

Instantly share code, notes, and snippets.

delebash /
Created Nov 16, 2016 — forked from insane-dev/
Lemp stack for Ubuntu 16.04 (PHP7, Nginx, MySql, MongoDB, PhpMyAdmin, Git, Node.js, Bower, Gulp, Docker, Composer(with asset plugin), Dnsmasq)
echo "Please, enter your username, it will be added to 'sudo' and 'docker' groups during the process."
if [ -z "$USERNAME" ] ; then
echo "Exiting... Done."
echo "Adding user to 'sudo' group..."
amon-ra / attrs.sql
Last active Aug 20, 2019 — forked from leek/
Clean magento database, maybe must revision categories and attributes default ids
View attrs.sql
DELETE eav_attribute_option_value FROM eav_attribute_option,eav_attribute_option_value WHERE eav_attribute_option.attribute_id > 133 and eav_attribute_option.option_id = eav_attribute_option_value.option_id;
DELETE FROM eav_attribute WHERE attribute_id > 133;
DELETE FROM eav_attribute_label WHERE attribute_id > 133;
DELETE FROM eav_attribute_option WHERE attribute_id > 133;
DELETE FROM eav_attribute_group WHERE attribute_set_id > 25;