Skip to content

Instantly share code, notes, and snippets.

@ryanaslett
ryanaslett / gist:4d9a9d9ea63e781f44a8
Last active August 29, 2015 14:14
Interacting with data by Taxonomic context.
In my OS, When I want to access data relating to my car, I want to go into "Car" Context, and see every datapoint, regardless of datatype that fits into the "Car" context. Like a dashboard based on taxonomic context.
Files, regardless of format:
Scanned title
Insurance information
Photos of car/with car in it.
Copies of receipts for maintenance log
Communications:
Emails, Texts, IMs from insurance company, mechanic, buyers, sellers.
Contact information for Insurance company, mechanic (vCards)
Notifications - pending calendar events, expiring tags, etc.
# /etc/cron.d/php5: crontab fragment for php5
# This purges session files older than X, where X is defined in seconds
# as the largest value of session.gc_maxlifetime from all your php.ini
# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
# Look for and purge old sessions every 30 minutes
09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5
$(/usr/lib/php5/maxlifetime)
root@ip-172-31-42-73:/opt/drupalci_testbot# ./drupalci run simpletest
Calculating job definition
Loading DrupalCI platform default arguments:
DCI_CodeBase
Loading job type default arguments:
DCI_DBVersion,DCI_PHPVersion,DCI_CoreRepository,DCI_CoreBranch,DCI_GitCheckoutDepth,DCI_RunScript,DCI_DBUser,DCI_DBPassword,DCI_DBURL,DCI_TESTGROUPS,DCI_SQLite,DCI_Concurrency,DCI_XMLOutput,DCI_PHPInterpreter
Loading local DrupalCI environment config override arguments.
DCI_Concurrency
Creating codebase data volume directory
Checkout directory created at /tmp/simpletest-9h4j4x
root@ip-172-31-42-73:/etc/cron.d# more /usr/lib/php5/maxlifetime
#!/bin/sh -e
max=1440
if which php5 >/dev/null 2>&1; then
for sapi in apache2 apache2filter cgi fpm; do
if [ -e /etc/php5/${sapi}/php.ini ]; then
cur=$(php5 -c /etc/php5/${sapi}/php.ini -d "error_reporting='~E_ALL'" -r 'print ini_get("session.gc_maxlifetime");')
[ -z "$cur" ] && cur=0
@ryanaslett
ryanaslett / pasteboard
Created September 1, 2015 17:54
Put this somewhere in your path. Phpstorm has a hard time with proper escaping because it cannot handle shell pipes etc. Easier to just give it the script to run.
#!/bin/bash
pbcopy <<< $1
#!/bin/bash
export DCI_DrupalciBranch=production
export DCI_RunScript=/var/www/html/core/scripts/run-tests.sh
export DCI_PHPVersion=5.5
export DCI_JobType=simpletest
export BUILD_TAG=jenkins-DCI_XML-113
export DCI_ComposerInstall=true
export DCI_CoreBranch=8.0.x
export DCI_Patch=2560643_26.patch,.
export JOB_URL=http://dispatcher-origin.drupalci.aws:8080/job/DCI_XML/
root@d8dc3dd9b155:/# which php
/opt/phpenv/shims/php
root@d8dc3dd9b155:/# more /opt/phpenv/shims/php
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
program="${0##*/}"
if [ "$program" = "ruby" ]; then
for arg; do
@ryanaslett
ryanaslett / Fails
Created July 27, 2016 14:55
Fails in FieldUpdateTest with apc 4.0.11
176815|301|Drupal\field\Tests\Update\FieldUpdateTest|fail|GET http://localhost/checkout/update.php returned 0 (0 bytes).|Browser|Drupal\system\Tests\Update\UpdatePathTestBase->runUpdates()|243|/var/www/html/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
176817|301|Drupal\field\Tests\Update\FieldUpdateTest|exception|simplexml_import_dom(): Invalid Nodetype to import<pre class="backtrace">simplexml_import_dom(Object) (Line: 133)
Drupal\simpletest\WebTestBase->parse() (Line: 226)
Drupal\simpletest\WebTestBase->xpath('//a[normalize-space()=:label]', Array) (Line: 2343)
Drupal\simpletest\WebTestBase->clickLinkHelper(Object, 0, '//a[normalize-space()=:label]') (Line: 2304)
Drupal\simpletest\WebTestBase->clickLink(Object) (Line: 244)
Drupal\system\Tests\Update\UpdatePathTestBase->runUpdates() (Line: 55)
Drupal\field\Tests\Update\FieldUpdateTest->testFieldUpdate8001() (Line: 1057)
Drupal\simpletest\TestBase->run(Array) (Line: 731)
simpletest_script_run_one_test('301', 'Drupal\field\Tests\Update\FieldUpda
@ryanaslett
ryanaslett / context modules
Last active August 10, 2016 04:27
Drupal project machine names that have at least one release with a dependency on context module
context_addassets
context_condition_theme
context_field
context_inline_editor
context_keywords
context_locale_cookie
context_menu_block
context_respect
context_ssl
debut_article
80.6279 https://dispatcher.drupalci.org/job/default/222731/console
81.0173 https://dispatcher.drupalci.org/job/default/223563/console
81.6139 https://dispatcher.drupalci.org/job/default/221748/console
82.0563 https://dispatcher.drupalci.org/job/default/223514/console
82.0609 https://dispatcher.drupalci.org/job/default/222099/console
82.0948 https://dispatcher.drupalci.org/job/default/222197/console
82.5083 https://dispatcher.drupalci.org/job/default/223132/console
82.9138 https://dispatcher.drupalci.org/job/default/222689/console
84.2821 https://dispatcher.drupalci.org/job/default/226748/console
84.7883 https://dispatcher.drupalci.org/job/default/226243/console