Skip to content

Instantly share code, notes, and snippets.

View lsolesen's full-sized avatar

Lars Olesen lsolesen

View GitHub Profile
load is 51 while maxload is 600
Octopus upgrade for User /data/disk/o1
Waiting 5 seconds...
BOA [07:52:18] ==> Skynet Agent v.BOA-4.0.1 welcomes you aboard!
BOA [07:52:22] ==> Octopus Satellite Instance Upgrade in progress...
BOA [07:52:23] ==> This Octopus URL address is o1.boa.discimport.dk
BOA [07:52:23] ==> This Octopus PHP version is 5.6
###
### Configuration created on 140125-1811
### with Barracuda version BOA-2.1.3
###
### NOTE: the group of settings displayed bellow will *not* be overridden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
###
_MY_OWNIP="1.1.1.1"
_MY_HOSTN="boa.mydomain.dk"
load is 114 while maxload is 600
Octopus upgrade for User /data/disk/o1
Waiting 3 seconds...
BOA [18:33:20] ==> Skynet Agent v.BOA-4.0.1 welcomes you aboard!
BOA [18:33:25] ==> Octopus Satellite Instance Upgrade in progress...
BOA [18:33:25] ==> This Octopus URL address is o1.boa.discimport.dk
BOA [18:33:25] ==> This Octopus PHP version is 5.5
Aegir on Debian/jessie x86_64
VPS Linux KVM guest
CPU 2
RAM 2010
XTR _XTRAS_LIST="PDS CSF CHV FTP"
MFX _MODULES_FIX=NO
PFX _PERMISSIONS_FIX=YES
DBS _DB_SERIES=10.1
DNS _DNS_SETUP_TEST=YES
PKG _EXTRA_PACKAGES=
<?php
// Bootstrap Drupal.
$drupal_path = $_SERVER['DOCUMENT_ROOT'];
define('DRUPAL_ROOT', $drupal_path);
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// Gettting to work
<?php
// Bootstrap Drupal.
$drupal_path = $_SERVER['DOCUMENT_ROOT'];
define('DRUPAL_ROOT', $drupal_path);
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// Gettting to work
% LilyBin
\score {
{
<<
\chords {
}
\relative c'' {
\key g \minor
\time 4/4
g2 es8( c4) es8
@lsolesen
lsolesen / template.html
Last active April 11, 2017 21:40
Shoporama - getting attributes for a product
<{assign var="profile" value=$product->getProfile()}>
<{assign var="attr" value=$profile->getAttributeList()}>
<{assign var="attributes" value=""}>
<{assign var="variant" value=""}>
<{section name="j" loop=$attr}>
<{if $attr[j]->getIsVariant() && $attr[j]->getDataType() == "valuelist"}>
<{assign var="values" value=$attr[j]->getValues()}>
<{section name="k" loop=$values}>
@lsolesen
lsolesen / export_drupal_shoporama.php
Created March 29, 2017 13:12
Export products from Drupal Commerce Kickstart to Shoporama
<?php
/**
* Run using drush scr export.php
*/
// Require client for Shoporama
require_once __DIR__ . '/../shoporama-php-sdk/vendor/autoload.php';
use Shoporama\Client;
<?php
/**
* @file
* Provides the view object type and associated methods.
*/
/**
* @defgroup views_objects Objects that represent a View or part of a view
* @{