Skip to content

Instantly share code, notes, and snippets.

View chrisarusso's full-sized avatar

Chris Russo chrisarusso

View GitHub Profile
<?php
$or = db_or();
$or->condition('n.type', 'doctor');
$or->condition('n.type', 'practice');
$and = db_and();
$and->condition('n.nid', '532', '<');
From the sweaty jungles of Gamboa, to the picturesque white sand beaches of San Blas, to the fertile and culturally dense highlands of Boquete, Panama revealed to me beauty (maybe different word/phrase) around every corner (behind every shutter… or some camera-y term). This collection features some pieces I've shown in former fine art shows, as well as more that I'm unveiling for the first time! I hope you are as captivated by the rich heritage and stunning landscapes as I was by the world's best coffee (and I don't even drink coffee!) on my first photographic trip to Central America.
object(stdClass)#218 (33) {
["uid"]=>
string(1) "1"
["name"]=>
string(8) "ecpadmin"
["pass"]=>
string(55) "$S$Dg/hguvBjn41ny5o9BilzseEhiz6NNV5/pjWSuVdCxp2wpeuxN1q"
["mail"]=>
string(28) "user+1@localhost.localdomain"
["theme"]=>
Chriss-MacBook-Pro:drupalroot chris$ ping 54.227.113.247
PING 54.227.113.247 (54.227.113.247): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
Chriss-MacBook-Pro:drupalroot chris$ nslookup bikedurham.org
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: bikedurham.org
Address: 54.235.218.55
Chriss-MacBook-Pro:drupalroot chris$ cd trc/c
Chriss-MacBook-Pro:drupalroot chris$ host bikedurham.org
@chrisarusso
chrisarusso / gist:c75ce89616499a10585e
Created October 17, 2014 15:59
Test POST from Stripe
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "invoice.payment_failed",
"object": "event",
"request": null,
"data": {
"object": {
"date": 1413483530,
ubuntu@ip-10-185-213-32:~$ composer global require drush/drush:dev-master
Changed current directory to /home/ubuntu/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing pear/console_table (1.2.0)
PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:983
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 983, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(983): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
/**
* Function to queue up text and email reminders from cron runs.
*/
function compost_customizations_queue_reminders() {
$now = time();
$tomorrow_timestamp = $now + 60 * 60 * 24;
$tomorrow = date('l', $tomorrow_timestamp);
// Somewhat arbitrary. Reminders ought to be once a week, but on certain
// weeks, like holidays, the gap will be larger or smaller. Three days seems
Chriss-MacBook-Pro:drupalroot chris$ git remote -v
origin git@github.com:AnneTee/Tilthy-Rich-Compost-Website.git (fetch)
origin git@github.com:AnneTee/Tilthy-Rich-Compost-Website.git (push)
upstream git@github.com:illmasterc/Tilthy-Rich-Compost-Website.git (fetch)
upstream git@github.com:illmasterc/Tilthy-Rich-Compost-Website.git (push)
549 drush sqlsan -y
550 ls
551 git status
552 git diff
553 ls
554 cd sites/localhost/
555 drush sqlsan -y
556 ls
557 ls
558 drush uli -l crown.l