Skip to content

Instantly share code, notes, and snippets.

View desmondmorris's full-sized avatar

Desmond Morris desmondmorris

View GitHub Profile
Copyright (c) YYYY Desmond Morris
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject
to the following conditions:
@desmondmorris
desmondmorris / geocode
Last active January 4, 2016 01:59
geocode VS parse responses - expected 422
curl -IL "http://api.geocod.io/v1/geocode?q=garbage+address&api_key=APIKEY"
HTTP/1.1 422 Unprocessable Entity
Date: Wed, 22 Jan 2014 01:49:34 GMT
Server: Apache
X-Powered-By: PHP/5.4.24
Cache-Control: no-cache
Access-Control-Allow-Origin: *
Content-Type: application/json
@desmondmorris
desmondmorris / gist:8552669
Last active January 4, 2016 02:09
Things we did in Barcelona

Kiosko - Awesome burgers down in El Born District

Picasso Museum- El Born District

Catalana History Museum - Born

Form Boix - Awesome Bakery

Cornelia and Co - One of my favorite places. Great food. You have to eat the Carrot cake

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:8813160
Last active March 30, 2023 16:44
Install jenkins in a docker container on ubuntu

Jenkins in Docker container on Ubuntu

Install Docker

curl -s https://get.docker.io/ubuntu/ | sudo sh

Pull jenkins docker image trusted build

sudo docker pull orchardup/jenkins

Start jenkins container

sudo docker run -d -p 80:8080 orchardup/jenkins

@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