Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r61/three.min.js"></script>
</head>
<body>
<script>
var camera, scene, renderer;
var geometry, material;
var meshes = [];
@PeterHancock
PeterHancock / SSH Gist URL
Created August 22, 2013 15:43
ssh gist url
[email protected]:[Gist ID].git
@PeterHancock
PeterHancock / OauthTest.groovy
Last active December 20, 2015 12:29
OAUTH client
@GrabConfig(systemClassLoader=true)
@GrabResolver(name='org.climatic', root='http://dl.bintray.com/content/climatic/climatic')
@Grab('com.sun.jersey:jersey-core:1.10')
@Grab('com.sun.jersey:jersey-client:1.10')
@Grab('com.sun.jersey.contribs.jersey-oauth:oauth-signature:1.10')
@Grab('com.sun.jersey.contribs.jersey-oauth:oauth-client:1.10')
@Grab('org.climatic:climatic-core:0.1.2')
import com.sun.jersey.api.client.Client
import com.sun.jersey.api.client.ClientResponse
mkdir ~/app-root/data/tmp
mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases > ~/app-root/data/tmp//all.sql
@PeterHancock
PeterHancock / 1.md
Last active December 16, 2015 19:59
gist.io blog