Skip to content

Instantly share code, notes, and snippets.

View dwcramer's full-sized avatar

David Cramer dwcramer

  • Apple Inc.
  • Austin
View GitHub Profile
@dwcramer
dwcramer / gist:57901031f08c2d1eac8b
Last active August 29, 2015 14:04
Minecraft mod problem
./gradlew cleanEclipse eclipse --debug
19:37:18.466 [DEBUG] [org.gradle.internal.resource.transport.http.JavaSystemPropertiesHttpProxySettings] Found java system property 'http.nonProxyHosts': local|*.local|169.254/16|*.169.254/16. Will ignore proxy settings for these hosts.
19:37:18.558 [INFO] [org.gradle.BuildLogger] Starting Build
19:37:18.560 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/david.cramer/.gradle
19:37:18.560 [DEBUG] [org.gradle.BuildLogger] Current dir: /Users/david.cramer/Minecraft/forge-1.7.10-10.13.0.1180-src
19:37:18.561 [DEBUG] [org.gradle.BuildLogger] Settings file: null
19:37:18.562 [DEBUG] [org.gradle.BuildLogger] Build file: null
19:37:18.584 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Starting to build the build sources.
19:37:18.586 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Gradle source dir does not exist. We leave.
#!/usr/bin/python
# Chunk a big markdown file into smaller files
# at the h2 level. Throw away anything above that.
# This assumes a 'well-formed' file. I.e. if you put an
# h1 below an h2, this happily sticks it in the file
# for it's parent h2.
# Name output files based on heading names, replacing
# spaces with - and adding ".html.md". No other bad characters

Keybase proof

I hereby claim:

  • I am dwcramer on github.
  • I am dcramer (https://keybase.io/dcramer) on keybase.
  • I have a public key whose fingerprint is 0755 8849 F254 F737 A1D2 E13F C1DE 4971 BB69 F521

To claim this, I am signing this object:

@dwcramer
dwcramer / gist:1886299
Created February 22, 2012 17:52
Example of using executions in your pom
<build>
<plugins>
<plugin>
<groupId>com.rackspace.cloud.api</groupId>
<artifactId>clouddocs-maven-plugin</artifactId>
<version>1.0.10</version>
<executions>
<execution>
<id>g1</id>
<goals>
@dwcramer
dwcramer / jenkins-slave.yml
Created October 9, 2015 18:35
Launch a Jenkins Slave on OpenStack
---
- hosts: localhost
user: "{{ linuxUser }}"
roles:
- role: launch_instance
cloud: openstack
node_name: jenkins-slave2.xbudev.org
flavor_id: 2ad22f89-86b5-43fd-bea5-7b89a7d9b6e6
network_id: 05706879-d518-4fe2-9113-627e514c23b5
attach_volume: false
@dwcramer
dwcramer / gist:3744610
Created September 18, 2012 17:50
Recursion in wadl example
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://wadl.dev.java.net/2009/02"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<resources base="http://localhost:9999/">
<resource type="#anyGet" path="{any}">
<param type="xs:string" style="template" name="any"/>
</resource>
</resources>
<resource_type id="anyGet">
<method name="GET"/>
@dwcramer
dwcramer / gist:3750661
Created September 19, 2012 16:37
Turtles...
From this:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://wadl.dev.java.net/2009/02"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<resources base="http://localhost:9999/">
<resource type="#anyGet" path="{any}" bar="blaz">
<param type="xs:string" style="template" name="any"/>
</resource>
</resources>
@dwcramer
dwcramer / gist:4199240
Created December 4, 2012 00:06
templates to create a revhistory table
<xsl:template match="processing-instruction('rax')[normalize-space(.) = 'revhistory']" mode="preprocess">
<xsl:if test="//d:revhistory[1]/d:revision">
<informaltable rules="all">
<col width="20%"/>
<col width="80%"/>
<thead>
<tr>
<td align="center">Revision Date</td>
<td align="center">Summary of Changes</td>
</tr>
@dwcramer
dwcramer / gist:5033644
Created February 25, 2013 21:48
Docbkx windows build errors
[ERROR] \Users\david.cramer\Documents\GitHub\clouddocs-maven-plugin\target\gener
ated-sources\com\agilejava\docbkx\maven\DocbkxEpubMojo.java:[3261,16] error: can
not find symbol
[ERROR] \Users\david.cramer\Documents\GitHub\clouddocs-maven-plugin\target\gener
ated-sources\com\agilejava\docbkx\maven\DocbkxEpubMojo.java:[3265,16] error: can
not find symbol
[ERROR] \Users\david.cramer\Documents\GitHub\clouddocs-maven-plugin\target\gener
ated-sources\com\agilejava\docbkx\maven\DocbkxEpubMojo.java:[3269,16] error: can
not find symbol
[ERROR] \Users\david.cramer\Documents\GitHub\clouddocs-maven-plugin\target\gener
{
"group": {
"launchConfiguration": {
"args": {
"loadBalancers": [
{
"port": 8080,
"loadBalancerId": 9099
}
],