Skip to content

Instantly share code, notes, and snippets.

---
# Local Vagrant options.
vagrant_hostname: local.drupalgtd.com
vagrant_machine_name: drupalgtd
vagrant_ip: 192.168.88.115
# Configure the synced folder.
vagrant_synced_folders:
- local_path: .
destination: /var/www/drupal
---
# Composer project settings.
drupal_build_composer_project: false
drupal_build_composer: true
drupal_composer_path: false
drupal_build_makefile: false
drupal_composer_dependencies:
- "drupal/devel:1.x-dev"
- "drupal/console:^1.5"
- "drupal/admin_toolbar:^1.22"
TASK [geerlingguy.drupal : Run composer install (this may take a while).] ******
changed: [drupalgtd]
TASK [geerlingguy.drupal : Install dependencies with composer require (this may take a while).] ***
failed: [drupalgtd] (item=drupal/devel:1.x-dev) => {"changed": false, "item": "drupal/devel:1.x-dev", "msg": "1/5: http://packagist.org/p/provider-2018-01$3096649de6e7e88e2056be4f57bfc4c030004da599dab7de36e1eb8a65a26ad5.json 2/5: http://packagist.org/p/provider-latest$69908d0d1d3dc5ea82fd6d9dd751a540d0d8c2b2afc9c96a256a2be90da73f21.json 3/5: http://packagist.org/p/provider-2015$b29e0721c321c195e4511206746a4ff46825d9d20587e96ea9c7f56c9ffd6fb7.json 4/5: http://packagist.org/p/provider-2017-10$e63b878de30a80fa5a5e6f37e37dcaed9315b3cf4a4b863c7833ec5872bd7ea5.json 5/5: http://packagist.org/p/provider-2016$8a571601ede7b155d1775296705596adc3ec64c4eb07cdb5ae01fd2ef4a333b0.json Finished: success: 5, skipped: 0, failure: 0, total: 5 [InvalidArgumentException] Could not find a matching version of package drupal/devel. Ch
<article class="courses__event" itemscope itemtype="http://schema.org/Event">
{% set myday = post.class_day %}
{% set myobject = fn('get_field_object','field_53932a20ba16a') %}
<span class="lat-bn courses__day" style="color:{{ options.op_yoga_color }}">{{ myobject.choices[myday]|slice(0,2) }}</span>
<p class="lat-nn courses__time"><time datetime="{{ post.class_start }}+{{ fn('get_option', 'gmt_offset') }}:00">{{ post.class_start }}</time>-<time datetime="{{ post.class_end }}+{{ fn('get_option', 'gmt_offset') }}:00">{{ post.class_end }}</time> Uhr</p>
<p class="courses__location">{{ fn('get_the_title', post.class_location ) }}</p>
<input type="checkbox" id="check{{ loop.index }}">
<label for="check{{ loop.index }}"></label>
<div class="courses__info">
<h3 class="lat-bn courses__head zeta">Veranstaltungsort</h3>
$> vagrant plugin expunge --reinstall --debug
INFO global: Vagrant version: 1.9.0
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_GEM_HOME="/Users/rpkoller/.gem_global"
INFO global: VAGRANT_OLD_ENV_CLICOLOR="1"
INFO global: VAGRANT_OLD_ENV_LANG="de_DE.UTF-8"
INFO global: VAGRANT_OLD_ENV_COLORFGBG="7;0"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
$> vagrant up --debug
INFO global: Vagrant version: 1.9.0
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_OLD_ENV_USER="rpkoller"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.0VUBP1XUwj/Listeners"
INFO global: VAGRANT_OLD_ENV_ITERM_PROFILE="Default"
INFO global: VAGRANT_OLD_ENV_HOME="/Users/rpkoller"
INFO global: VAGRANT_OLD_ENV_LOGNAME="rpkoller"
@rpkoller
rpkoller / pedantically_commented_playbook.yml
Created January 19, 2016 00:14 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@rpkoller
rpkoller / sample.php
Last active August 29, 2015 14:17
konfusion
<?php
function mmr_attachment_check( $post_id, $post ) {
$prevent_publish = false;
$mmr_options_array = get_option( 'mmr_options' );
$media = mmr_attachments( $post_id );
$attachmentids = mmr_attachments_id_array( $media );
$attachment_check_results = array();
if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
if (!current_user_can('edit_post', $post_id)) return;
if( isset($post->post_status) && 'publish' == $post->post_status ) {

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@rpkoller
rpkoller / index.html
Last active August 29, 2015 14:03
Grid of article elements with an checkbox hack applied to each to reveal extra hidden content
<!DOCTYPE html>
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Mock</title> <!-- 70chars max -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>