Skip to content

Instantly share code, notes, and snippets.

View davidmoffitt's full-sized avatar

David Moffitt davidmoffitt

  • Grid.
  • Rochester, NY
View GitHub Profile
<script type='text/javascript'>
var zaius = window['zaius']||(window['zaius']=[]);zaius.methods=["initialize","onload","event","entity","identify","anonymize","dispatch"];zaius.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);zaius.push(t);return zaius}};(function(){for(var i=0;i<zaius.methods.length;i++){var method=zaius.methods[i];zaius[method]=zaius.factory(method)}var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src=("https:"===document.location.protocol?"https://":"http://")+"d1igp3oop3iho5.cloudfront.net/v2/rYew11yelVotVyXawph35g/zaius-min.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})();
// Edits to this script should only be made below this line.
zaius.event('pageview');
</script>
var selects = $('select[name^=qty]');
selects.change(function() {
var value = 0;
var tickets = '';
selects.each(function() {
value += +this.value;
tickets += +('option:selected').attr('data-val'); // this is probably bad syntax for the concat
});
$('#plan_amount option').val(value);
$('#qtys').val(tickets);
<style type="text/css">
div.unsung {
width: 100%;
min-height: 609px;
background: #f7f7f6 url('/images/unsung-heroes/unsung-heroes-header-bg.jpg') center bottom no-repeat;
}
.unsung div.content-container-center {
margin: 0 auto;
padding: 0 12px;
width: 936px;
<?php
/**
* ExpressionEngine (https://expressionengine.com)
*
* @link https://expressionengine.com/
* @copyright Copyright (c) 2003-2019, EllisLab Corp. (https://ellislab.com)
* @license https://expressionengine.com/license
*/
/**
<?php if ( ! defined('SYSPATH')) exit('No direct script access allowed');
/**
* ExpressionEngine (https://expressionengine.com)
*
* @link https://expressionengine.com/
* @copyright Copyright (c) 2003-2019, EllisLab Corp. (https://ellislab.com)
* @license https://expressionengine.com/license
*/
use EllisLab\ExpressionEngine\Library\Filesystem\Filesystem;
<!-- Privacy policy at http://tag.brandcdn.com/privacy -->
<script type="text/javascript" src="//tag.brandcdn.com/autoscript/archivalmethods_vfzsumvrouvrve09/archivalmethods.js"></script>
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/00f293b32ca7d4f4aecb588c9/df22ff79dc8d596937d90f692.js");</script>
A PHP Error was encountered
Severity: Notice
Message: unserialize(): Error at offset 49129 of 49151 bytes
Filename: models/charge_log_model.php
Line Number: 147
A PHP Error was encountered
Severity: Notice
Message: unserialize(): Error at offset 49146 of 49151 bytes
Filename: models/charge_log_model.php
Line Number: 147

Keybase proof

I hereby claim:

  • I am davidmoffitt on github.
  • I am davidmoffitt (https://keybase.io/davidmoffitt) on keybase.
  • I have a public key ASBjJUBDm5nCLGsTV7LPt36l3k1ILn0pLdXRCo_4D4gOMAo

To claim this, I am signing this object:

@davidmoffitt
davidmoffitt / gist:888909
Created March 27, 2011 04:18
Expanding RAID & Partitions on Mac
Taken from http://blog.scottmroberts.com/archives/15 - mad props to the original author!!
IMPORTANT NOTE:The following procedures are ONLY for people with RAID cards who have upsized their raid array. If you have a MacBook or MacBook Pro, this is not for you! If you want to move from a smaller single drive to a larger single drive, try CarbonCopyCloner or SuperDuper .Once my raid array had finished upsizing from 5.5GB to 9.1GB, I had to resize the partition in order to actually use the space. OS X’s Disk Utility gives the oh so friendly error Partition Failed (Partition failed with the error: MediaKit reports partition (map) too small. ) Not particularly helpful, is it. All my googling has never found an answer, so I thought I’d post my solution here.
Open up a terminal
run ‘df’
Note the mount point for the drive you’re trying to expand. Mine was “/dev/disk4s1″. We’re only interested in the disk, not the slice, so I’m going to use “/dev/disk4″.