Skip to content

Instantly share code, notes, and snippets.

<?php
require_once 'app/Mage.php';
umask(0);
/* not Mage::run(); */
Mage::app('default');
## For magento1.7 or Earlier var
//$_HASH_SALT_LENGTH = 2;
## For magento1.8 and magento1.9
$_HASH_SALT_LENGTH = 32;
UPDATE magento.admin_user SET password = 'a309595a9500ee214f91ecc43bc33790:8G9PtXYBNElJegYFALFtRuFClISuZinN' WHERE username = 'admin';
Mage::getSingleton('core/session', array('name' => 'adminhtml'));
$user = Mage::getModel('admin/user')->loadByUsername('YOUR_USERNAME');
$session = Mage::getSingleton('admin/session');
$session->setUser($user);
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 06, 2015 at 05:07 PM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
cache:
tty: true
image: memcached
stdin_open: true
WebLB:
image: rancher/load-balancer-service
ports:
- 80:80
links:
- web
cache:
scale: 1
WebLB:
scale: 1
load_balancer_config:
lb_cookie_stickiness_policy: null
description: null
name: WebLB config
app_cookie_stickiness_policy: null
health_check:
Monitoring:
scale: 1
prometheus:
scale: 1
Monitoring:
command:
- -labels=io.rancher.project.name,io.rancher.project_service.name,io.rancher.container.system,foo
image: usman/container-exporter:v1
ports:
- 9104:9104/tcp
labels:
io.rancher.scheduler.global: 'true'
io.rancher.scheduler.affinity:host_label: monitored=true
volumes:
Goauth:
image: go-auth
ports:
- "9000:9000"
stdin_open: true
links:
- Database:db
command:
- "--db-host"
- "db"
{
"variables": {
"app_name": null,
"env_name": null,
"lifecycle": null,
"subnet_id": null,
"source_ami": "ami-0d4cfd66",
"ssh_keypair_name": null,
"ssh_private_key_file": null,
"war_path": null,