Skip to content

Instantly share code, notes, and snippets.

View EricSeastrand's full-sized avatar

Eric Seastrand EricSeastrand

View GitHub Profile
@EricSeastrand
EricSeastrand / magento_1_create_admin.sql
Created August 14, 2018 14:30
Magento 1 Create Admin User DB queries
SET @LOGIN_PW = "password_goes_here";
SET @USERNAME = "username_goes_here";
SET @FIRSTNAME = "Test";
SET @LASTNAME = "Tester";
SET @EMAIL = '[email protected]';
SET @SALT = "rp";
SET @PASS = CONCAT(MD5(CONCAT( @SALT , @LOGIN_PW) ), CONCAT(":", @SALT ));
SELECT @EXTRA := MAX(extra) FROM admin_user WHERE extra IS NOT NULL;
var products = [];
jQuery('.dottedlink:contains("Edit")').each(function(){
var $ = jQuery;
console.log($(this));
var row = $(this).closest('tr');
products.push({
'name' : row.find('td:eq(1)').text(),
'displayname' : row.find('td:eq(2)').text(),
'price' : row.find('td:eq(5)').text(),
configure
set system package repository wheezy components 'main contrib non-free'
set system package repository wheezy distribution wheezy
set system package repository wheezy url http://http.us.debian.org/debian
commit
save
exit
sudo apt-get update