Skip to content

Instantly share code, notes, and snippets.

View styks1987's full-sized avatar

styks1987

  • Sttark
  • Greenville, SC
View GitHub Profile
<VirtualHost *:80>
ServerAdmin template.email
ServerName template.url
DocumentRoot template.webroot
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
@styks1987
styks1987 / php.ini
Created October 31, 2014 02:44
Default INI for servers
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
require.config({
baseUrl:'/js/Dash',
shim: {
backbone: {
deps: [
"underscore",
"jquery"
],
exports: "Backbone"
},
@styks1987
styks1987 / Auth Only Request
Last active August 29, 2015 14:17
Authorize Auth + Prior Auth and Capture
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name></name>
<transactionKey></transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>authOnlyTransaction</transactionType>
<amount>1563.00</amount>
<payment>
<creditCard>
$query = new EntityFieldQuery();
$query->entityCondition('entity_type', $content['field_parent']['#entity_type']);
$query->entityCondition('bundle', $content['field_parent']['#bundle']);
$query->fieldCondition('field_parent', render($content['field_parent']));
$result = $query->execute();
public function __construct($id = false, $table = null, $ds = null) {
parent::__construct($id, $table, $ds);
$activities = new ActivityListener();
$this->getEventManager()->attach($activities);
}
AuthType Basic
AuthName "Testing-- Please Identify Yourself"
AuthUserFile /srv/auth/.htpasswd
Require valid-user
<Limit GET POST>
Require all denied
Require host 111.111.111.111
Require valid-user
</Limit>
<?xml version="1.0"?>
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name></name>
<transactionKey></transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>authOnlyTransaction</transactionType>
<amount>310.36</amount>
<payment>
events.fireEvent = function(obj, type, data) {
var e = document.createEvent('UIEvents'),
cur,
val;
// TODO: Test cancelling
e.initEvent(type, false, true);
// Copy provided data into event object
if (data) {
for (cur in data) {
casper.waitForUrl('/pricing/index/upload-your-artwork', function () {
this.echo('On to uploading your artwork');
casper.waitForSelector('#title_region', function () {
casper.evaluate(function () {
el = document.querySelector('#title_region');
el.style.display = "none";
el.style.width = "auto";
el.style.height = "auto";
});