Skip to content

Instantly share code, notes, and snippets.

@tkn98
tkn98 / .screenrc
Created March 21, 2016 12:46
aytn .screenrc
termcapinfo xterm* ti@:te@
startup_message off
vbell off
autodetach on
altscreen on
shelltitle "$ |bash"
defscrollback 10000
defutf8 on
nonblock on
# ©2007 dsplabs.com.au
@tkn98
tkn98 / download.sh
Created November 4, 2015 16:33
download job for not yet mirrored magento installs
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
wget https://github.com/OpenMage/magento-mirror/archive/1.9.1.1.zip
wget https://github.com/OpenMage/magento-mirror/archive/1.9.1.0.zip
wget https://github.com/OpenMage/magento-mirror/archive/1.9.0.1.zip
wget https://github.com/OpenMage/magento-mirror/archive/1.8.1.0.zip
wget https://github.com/OpenMage/magento-mirror/archive/1.8.0.0.zip
wget https://github.com/OpenMage/magento-mirror/archive/1.9.1.1.tar.gz
<?php
// Base-name
$name = 'foobar';
// Init Magento
require_once 'app/Mage.php';
Mage::app();
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
// Create the root catalog