Skip to content

Instantly share code, notes, and snippets.

View desmondmorris's full-sized avatar

Desmond Morris desmondmorris

View GitHub Profile
class Node extends EntityDrupalWrapper {
public function __construct($data = NULL, $info = array()) {
parent::__construct('node', $data, $info);
}
}
vagrant@precise64:/vagrant/docker-hubot$ docker login
Username (desmondmorris):
Login Succeeded
vagrant@precise64:/vagrant/docker-hubot$ docker push desmondmorris/hubot
The push refers to a repository [desmondmorris/hubot] (len: 1)
Sending image list
2014/02/02 22:11:05 Error: Status 403 trying to push repository desmondmorris/hubot: "Access denied, you don't have access to this repo"
Adds char counter to text fields in node edit form
commit 79990460f682445209ea2b449915941c99ea8c4c
tree 4ea2d17e83bfc8579508b46735075c741559ceeb
parent 42a7ffbdb86aa95b64b43d61e9383bbb0b33a4d3
author Desmond Morris <hi@desmondmorris.com> 1386018037 -0500
committer Desmond Morris <hi@desmondmorris.com> 1386018037 -0500
Adds char counter to text fields in node edit form
diff --git a/sites/all/themes/micro/micro.info b/sites/all/themes/micro/micro.info
@desmondmorris
desmondmorris / gist:8864322
Created February 7, 2014 15:02
OpenStack notes
# Install nova client
pip install python-novaclient
# Add environment variables
export OS_USERNAME=XXXXX
export OS_PASSWORD=XXXXX
export OS_AUTH_URL=http://10.240.0.141:9292/v1
export OS_COMPUTE_API_VERSION=1
export OS_AUTH_URL=http://10.240.0.141:5000/v2.0/
@desmondmorris
desmondmorris / install-node-
Created March 4, 2014 18:28
Ubuntu - Node install
#!/usr/bin/env bash
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
@desmondmorris
desmondmorris / 0_reuse_code.js
Created March 5, 2014 19:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am desmondmorris on github.
  • I am desmondmorris (https://keybase.io/desmondmorris) on keybase.
  • I have a public key whose fingerprint is 0D30 B94C A2F0 FE85 3E0A 45F5 5E44 8B9A 66B3 1B40

To claim this, I am signing this object:

curl -s https://gist.githubusercontent.com/desmondmorris/844bb652ba53b313030c/raw/c9e945b4a0ad993c4fce1b5d35ecbfb1a49e231e/jekins_server.sh | sudo sh
@desmondmorris
desmondmorris / gist:0fc39d6458f73e8867eb
Created February 25, 2015 01:02
Experiment ab test manifest
name: i am an ab test
hypothesis: I think that removing underlines from links will increases clicks
type: split
cap: 10000
audience:
- mobile
url: /^\/stories/[0-9]*\/.*/
variants:
without-underline:
affect: $('a').css('decoration', 'none');
@desmondmorris
desmondmorris / gist:babc7e5ac8c0f543ff2f
Created March 31, 2015 14:39
Installing ElasticSearch on OSX via Homebrew

Elasticsearch on OSX via Homebrew

Requirements

  • OSX with Homebrew installed

Installation

brew update