Skip to content

Instantly share code, notes, and snippets.

View thadguidry's full-sized avatar
🏠
Home, likely researching

Thad Guidry thadguidry

🏠
Home, likely researching
View GitHub Profile
@thadguidry
thadguidry / BuildRustWithCygwin
Created April 30, 2013 02:25
Trying to build Rust on Cygwin i686-pc-mingw32 with LLVM-Clang 3.3 (trunk)
Thad@Thad-Windows ~/rust
$ ./configure --enable-clang --llvm-root=~/build/Debug+Asserts/bin --build-triple=i686-pc-mingw32
configure: looking for configure programs
configure: found cmp
configure: found mkdir
configure: found printf
configure: found cut
configure: found head
configure: found grep
@thadguidry
thadguidry / BuildRust WIthCygwinClang
Created May 1, 2013 01:54
against Incoming. with Clang 3.3 and building LLVM as part of Rust build.
Thad@Thad-Windows ~/rust
$ ./configure --enable-clang --build-triple=i686-pc-mingw32
configure: looking for configure programs
configure: found cmp
configure: found mkdir
configure: found printf
configure: found cut
configure: found head
configure: found grep
configure: found xargs
Thad@Thad-Windows ~/rust
$ clang -dM -E - </dev/null
#define _X86_ 1
#define __ATOMIC_ACQUIRE 2
#define __ATOMIC_ACQ_REL 4
#define __ATOMIC_CONSUME 1
#define __ATOMIC_RELAXED 0
#define __ATOMIC_RELEASE 3
#define __ATOMIC_SEQ_CST 5
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
@thadguidry
thadguidry / PlasticSurgeryProvider
Created January 28, 2015 22:46
JSON-LD example extension to Schema.org
{
"@context": {
"@vocab": "http://schema.org",
"myVocab": "http://example.org/myVocab#",
"PlasticSurgeryProvider": "myVocab:PlasticSurgeryProvider",
"proceduresPerformed": "myVocab:proceduresPerformed"
},
"@graph": [{
"@id": "myVocab:PlasticSurgeryProvider",
"@type": "rdfs:Class",
@thadguidry
thadguidry / build.gradle
Created October 21, 2015 19:47
Example Gradle build for multi-project Java that copies jar files to specific paths
apply plugin: 'eclipse'
allprojects {
}
subprojects { apply plugin: 'java' }
project(':DMTableInput') {
dependencies { compile project(':DMUtils') }
}
@thadguidry
thadguidry / gist:e7350f2264ad2f69e259ede371da742f
Last active July 2, 2017 14:41
Donations page idea for Open Source Projects using Github Pages
FROM: THAD GUIDRY
Hello Github Pages Support,
It would be nice if there was more information or some module, theme, framework officially maintained by Github Pages that allows easy plug and play of a Donation page for Open Source projects.
For instance, Antergos Linux has a really nice page that allows donations https://antergos.com/donate from multiple places and has a unified donate experience for all of them. They used the Divi build https://www.elegantthemes.com/plugins/divi-builder/# to customize this.
It would be fantastic if somehow a theme or configurable dialog could be dropped into any Github pages account to expose this functionality.... saving time, frustration, etc.. for all the Open Source projects that now run on Github and use Github pages.
#!groovy​
// Jenkins job parameters:
// BRANCH
node {
def server = Artifactory.server "Artifactory_DC1"
def rtGradle = Artifactory.newGradleBuild()
def buildInfo = Artifactory.newBuildInfo()
@thadguidry
thadguidry / gist:ccb8dce6bc363dbc17a810d7198661be
Created October 6, 2017 21:37
Jenkins Pipeline Groovy snippet
#!groovy
import hudson.tasks.test.*
import hudson.model.Actionable
import groovy.json.*
def getJunitData() {
testResults = withContext(hudson.tasks.test.TestObject)
echo "describe " + testResults.getFullName()
def jsonStr = '';
if (testResults != null) {
@thadguidry
thadguidry / keybase.md
Created November 10, 2017 00:16
myproof

Keybase proof

I hereby claim:

  • I am thadguidry on github.
  • I am guido1st (https://keybase.io/guido1st) on keybase.
  • I have a public key ASDpaKTPbxbFHnHPlw-YSlIyp3h2sxL9zqGbmfKyDVk9pgo

To claim this, I am signing this object:

@thadguidry
thadguidry / debug_grape
Created November 30, 2017 15:18
groovy grape error
-bash-4.2$ grape -Dgroovy.grape.report.downloads=true install org.codehaus.groovy.modules.http-builder http-builder 0.7
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)
Caused by: groovy.lang.MissingMethodException: No signature of method: groovyjarjarcommonscli.Options.getOptionProperties() is applicable for argument types: (java.lang.String) values: [D]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)