Skip to content

Instantly share code, notes, and snippets.

Avatar

Kyle Cunningham codeincarnate

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am codeincarnate on github.
  • I am codeincarnate (https://keybase.io/codeincarnate) on keybase.
  • I have a public key whose fingerprint is 1E49 1A6C 346E AFAB B687 1D5D 7AF6 F65C A37A 9941

To claim this, I am signing this object:

@codeincarnate
codeincarnate / drupal-SA-003-check.sh
Last active Apr 25, 2018 — forked from jerbob92/drupal-PSA-003-check.sh
Check whether Drupal 7.59 and 8.5.3 are released
View drupal-SA-003-check.sh
#!/bin/sh
url="https://ftp.drupal.org/files/projects/drupal-7.59.zip";
if curl --output /dev/null --silent --head --fail "$url"; then
kdialog --passivepopup 'Drupal 7 Patch Live' --title 'Drupalgeddon';
else
echo "URL does not exist: $url";
fi;
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip";
View keybase.md

Keybase proof

I hereby claim:

  • I am codeincarnate on github.
  • I am codeincarnate (https://keybase.io/codeincarnate) on keybase.
  • I have a public key ASD_yTbXvgrIyi0eLmrjGeKw0m7ZOz9U64L3OP3Pe7-5GAo

To claim this, I am signing this object:

@codeincarnate
codeincarnate / gist:5989357
Created Jul 13, 2013
Hilariously bad code courtesy of CiviCRM.
View gist:5989357
<?php
/**
* Returning from an eval which itself is returning a value from a function invocation.
* This is from CiviCRM 3.x and as of CiviCRM 4.x it has been removed.
*/
static function config( &$config ) {
require_once( str_replace( '_', DIRECTORY_SEPARATOR, $config->userHookClass ) . '.php' );
$null =& CRM_Core_DAO::$_nullObject;