Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
#!/bin/bash | |
# | |
# Notify of MacPort updates via Growl on Mac OS X | |
# | |
# Author: Chris Streeter http://www.chrisstreeter.com | |
# Requires: Growl Notify Extra to be installed (but fails gracefully). Info | |
# about how to get the extra is at http://growl.info/extras.php | |
TERM_APP='/Applications/Terminal.app' |
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist
.
If you use pow, echo 1080 > ~/.pow/mailcatcher
and go to http://mailcatcher.dev, otherwise use http://localhost:1080.
Currently pow doesn't seem to pass websockets through correctly. Looking into this.
This gist assumes:
<?php | |
/** | |
* TextRange.php - DOMDocument based Textrange and text manipulation | |
* | |
* @author hakre <http://hakre.wordpress.com/credits> | |
* @version 1.1.1 | |
*/ | |
/** | |
* TextRange - Collection of DOMText nodes |
#!/bin/sh | |
# | |
# Install Varnish via Homebrew | |
# | |
# You need to add /usr/local/sbin in your PATH | |
# vcl files are in /usr/local/etc/varnish | |
# | |
# Usage : |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from rauth.service import OAuth1Service | |
# Create consumer key & secret in your Magento Admin interface | |
# For an API Guideline see: | |
# http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html | |
# | |
# Short Magento setup explanation: |
#! /bin/sh | |
# open tunnel | |
ssh -v -M -f -N -L 3306:localhost:3306 "$1" -S /tmp/ssh-control | |
# dump sql, gzip, encrypt with openssl | |
mysqldump -u root -p"$3" "$2" --host 127.0.0.1 | gzip | openssl aes-256-cbc -salt -out mysqldump.aes -k "$4" | |
# close tunnel | |
ssh -S /tmp/ssh-control -O exit "$1" |
<?php | |
header('Content-type: application/json; charset=utf8'); | |
$vatno = str_replace(array(' ', '.', '-', ',', '"'), '', $_GET['vatno']); | |
echo serviceCheckVat($vatno, &$name, &$address, &$error); | |
/* | |
include "connect.php"; | |
mysql_query("SET NAMES utf8"); | |
$vatno = mysql_real_escape_string($_GET['vatno']); |
Press minus + shift + s
and return
to chop/fold long lines!