Skip to content

Instantly share code, notes, and snippets.

@eyemagine2
eyemagine2 / repoconfig.sh
Created August 4, 2014 22:08
Configure new eyemagine repo
#!/bin/bash
function getRepoName() {
echo "Enter the name of the repository to configure (all lowercase, one word)..."
read repo
if [ -z "$repo" ]; then
echo "Repository name cannot be empty"
getRepoName
fi
repodir="/home/git/repositories/$repo.git"
<VirtualHost *:80>
<Directory /home/*/public_html>
#Options +FollowSymLinks +Indexes All
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /home/qa/*>
@ IN SOA GT.EYEMAGINETECH.COM. dns.eyemaginetech.com.(
;@ IN SOA DNS1.STABLETRANSIT.COM. dns.eyemaginetech.com.(
2013020501 ; Serial yyyymmddnn
3h ; Refresh After 3 hours
1h ; Retry Retry after 1 hour
1w ; Expire after 1 week
1h) ; Minimum negative caching of 1 hour
; NS Records
@ 3600 IN NS DNS1.STABLETRANSIT.COM.
+--------------------+---------+---------------+------------------+--------------+
| Store View | Period | Unique Visits | Visits from Bots | Total Visits |
+--------------------+---------+---------------+------------------+--------------+
| Default Store View | 2010-03 | 753 | 652 | 10331 |
| Default Store View | 2010-04 | 935 | 1572 | 12334 |
| Default Store View | 2010-05 | 1443 | 2957 | 32521 |
| Default Store View | 2010-06 | 1442 | 3697 | 33273 |
| Default Store View | 2010-07 | 1486 | 3685 | 15945 |
| Default Store View | 2010-08 | 1362 | 2439 | 13115 |
| Default Store View | 2010-09 | 1057 | 2816 | 10559 |
<?php
protected $_attrMap = array(
'sku' => 'BaseId',
'description' => 'Description',
'short_description' => 'ExpWebDesc',
'msrp' => 'MSRP',
// etc
);
public function run()
#!/bin/bash
################################################################################
# FUNCTIONS
################################################################################
# 1. Check required system tools
_check_installed_tools() {
local missed=""