Skip to content

Instantly share code, notes, and snippets.

View sachbearbeiter's full-sized avatar
❤️

Sachbearbeiter sachbearbeiter

❤️
View GitHub Profile

Install Composer on Managed Hosting at Domainfactory

Step 1:

Log in to your Managed Hosting Server via SSH

Step 2:

Add these two lines to .bashrc:

@sachbearbeiter
sachbearbeiter / .bashrc
Last active August 29, 2015 14:14 — forked from cbeier/.bashrc
alias drush='~/drush/drush'
alias php='/usr/local/bin/php5-53STABLE-CLI'
export DRUSH_PHP=/usr/local/bin/php5-53STABLE-CLI
<?php
/* Script located in the docroot for your Drupal 8 site */
use Drupal\Core\DrupalKernel;
use Drupal\Core\Site\Settings;
use Symfony\Component\HttpFoundation\Request;
$autoloader = require_once __DIR__ . '/core/vendor/autoload.php';
use GuzzleHttp\Client;
@sachbearbeiter
sachbearbeiter / comment.tpl.php
Created April 3, 2014 15:02
D7: Comments: Get access via foo_preprocess_comment(&$variables) to the comment authors profile image from an ($user) imagefield and print it into the comment.tpl.php template.
<? if (!empty($image)) : ?>
<img src="<?= image_style_url('mini',$image); ?>" alt="Profile image" />
<?php endif; ?>