Skip to content

Instantly share code, notes, and snippets.

View dbarbar's full-sized avatar

David Barbarisi dbarbar

View GitHub Profile
[1] boris> $period = new DatePeriod(new DateTime('2015-01-31'), new DateInterval('P1M'), 50);
// object(DatePeriod)(
// 'start' => object(DateTime)(
// 'date' => '2015-01-31 00:00:00.000000',
// 'timezone_type' => 3,
// 'timezone' => 'America/New_York'
// ),
// 'current' => NULL,
// 'end' => NULL,
// 'interval' => object(DateInterval)(
@dbarbar
dbarbar / update_springboard.sh
Created February 24, 2015 22:48
update_springboard.sh
#!/bin/bash
# This script downloads the latest 4.x package of Springboard, extracts it to
# docroot, and copies previous git checkouts of the Springboard repos back
# into place. The repos are:
# springboard - modules
# sbsetup - install profile
# springboard_themes - themes
# Existing directory structure:
reference_site.karac >> The following extensions will be disabled: springboard_stats
reference_site.karac >> Do you really want to continue? (y/n):
reference_site.karac >> y
reference_site.karac >> WD php: FieldException: Cannot change an existing field's type. in [error]
field_update_field() (line 234 of
/var/www/springboard-releases/mtsb/7.x-4.6.2-mtsb/modules/field/field.crud.inc).
reference_site.karac >> Cannot modify header information - headers already sent by (output started[warning]
at /usr/share/pear/drush/includes/output.inc:38) bootstrap.inc:1233
reference_site.karac >> FieldException: Cannot change an existing field's type. in field_update_field() (line 234 of /var/www/springboard-releases/mtsb/7.x-4.6.2-mtsb/modules/field/field.crud.inc).
reference_site.karac >> Drush command terminated abnormally due to an unrecoverable error. [error]

Keybase proof

I hereby claim:

  • I am dbarbar on github.
  • I am dbarbar (https://keybase.io/dbarbar) on keybase.
  • I have a public key ASChtGs1fZ0u2Yv-qu2xUH5LnnorP-1Vi38xlSX378GZ_go

To claim this, I am signing this object: