Skip to content

Instantly share code, notes, and snippets.

View dantleech's full-sized avatar
💭
Nothing

dantleech dantleech

💭
Nothing
View GitHub Profile
@dantleech
dantleech / sonata media PHPCR-ODM
Created July 21, 2014 21:24
Helping the PHPCR-ODM SonataMediaBundle
SonataMedia loads content into the PHCPR repository after I made dozens of minor fixes to the gernated stuff:
````
PHPCRSH > ls
+-----------------+-----------------+-----------------+
| 53cd83371dbf2 | nt:unstructured | |
| jcr:primaryType | NAME | nt:unstructured |
+-----------------+-----------------+-----------------+
PHPCRSH > cd 53cd83371dbf2
/cms/media/53cd83371dbf2
transport:
name: doctrine-dbal
db_username: root
db_name: phpcr
db_password: ''
db_host: localhost
db_path: /home/daniel/www/symfony-cmf/routingautobundle/tests/resources/app/cache/app.sqlite
db_driver: pdo_sqlite
repo_url: 'http://localhost:8080/server/'
phpcr:
Feature: getting-started/installation
This document should work
Scenario: Install dependencies
Given I execute the following (in "bash"):
"""
curl -sS https://getcomposer.org/installer | php
"""
Then the command should not fail
And the file "composer.phar" should exist

Keybase proof

I hereby claim:

  • I am dantleech on github.
  • I am dantleech (https://keybase.io/dantleech) on keybase.
  • I have a public key whose fingerprint is 63EF 99FF 349C 7EF1 E216 4B0B BFC7 2379 AB91 4693

To claim this, I am signing this object:

webspaces:
sulu_io:
pages:
-
locale: de
template: default
data:
url: /artikles
title: Artikles
description: German articles page
@dantleech
dantleech / testconsole
Last active August 29, 2015 14:08
Script for executing a console in the testing environment in SuluCMF components
#!/usr/bin/env php
<?php
// Installation instructions
// 1. Download this script
// 2. chmod a+x thisscript.php
// 3. mv thisscript.php /usr/local/bin/testconsole
// 4. profit
$cwd = getcwd();
@dantleech
dantleech / gist:5c9ddb20234fd5e338c8
Created November 9, 2014 21:02
Github data in jackalopeFS
PHPCRSH > ls -L2
+-------------------------+-----------------+-----------------------------------------------------------------------------+
| pr-50/ | nt:unstructured | |
| _links/ | nt:unstructured | |
| | review_comment | nt:unstructured | |
| | issue | nt:unstructured | |
| | statuses | nt:unstructured | |
| | html | nt:unstructured | |
| | comments | nt:unstructured | |
| | review_co
view_button_press_cb(WebKitWebView *web, GdkEventButton *e, GList *gl)
{
gboolean ret = false;
WebKitHitTestResultContext context;
if (entry_snooping())
return true;
WebKitHitTestResult *result = webkit_web_view_get_hit_test_result(web, e);
g_object_get(result, "context", &context, NULL);
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
Given I am editing a page of type "smart_content_page"
And I wait for a data grid to appear
And I click the first smart content filter icon
And I wait for an overlay to appear
And I click the "Quelle wählen" button
And I wait for the following events:
"""
husky.overlay.smart-content.smart_content.slide-right
husky.column-navigation.smart-contentsmart_content.loaded
"""