Skip to content

Instantly share code, notes, and snippets.

View backup.sh
#!/bin/bash
################################################################################
# FUNCTIONS
################################################################################
# 1. Check required system tools
_check_installed_tools() {
local missed=""
View gist:512ca4286ec019a9a103
<?php
protected $_attrMap = array(
'sku' => 'BaseId',
'description' => 'Description',
'short_description' => 'ExpWebDesc',
'msrp' => 'MSRP',
// etc
);
public function run()
View scplv
+--------------------+---------+---------------+------------------+--------------+
| 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 |
View named-eyemagine
@ 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.
View modena-rewrites.conf
<VirtualHost *:80>
<Directory /home/*/public_html>
#Options +FollowSymLinks +Indexes All
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /home/qa/*>
@eyemagine2
eyemagine2 / repoconfig.sh
Created Aug 4, 2014
Configure new eyemagine repo
View repoconfig.sh
#!/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"