Skip to content

Instantly share code, notes, and snippets.

View bradleybeddoes's full-sized avatar
👋
Hello!

Bradley Beddoes bradleybeddoes

👋
Hello!
View GitHub Profile
@bradleybeddoes
bradleybeddoes / 0.bash
Last active August 29, 2015 13:57
Add the ability to checkout Github pull request with number XXXX as local branches across all projects you maintain
$> git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pull/*"
$> cd ~/development/myproj
~/development/myproj [develop] $> git checkout pull/XXXX
Branch pull/XXXX set up to track remote branch pull/XXXX from origin.
Switched to a new branch 'pull/XXXX'
~/development/myproj [pull/XXXX $] $>
@bradleybeddoes
bradleybeddoes / 0.readme.txt
Created April 12, 2014 09:22
Textual App script for announcing iTunes current track
Hacked on from original at http://hawkee.com/snippet/9027/
Save np.scpt at ~/Library/Application Scripts/com.codeux.irc.textual/np.scpt
Removed stuff I didn't need and fixed a bug
np.scpt:160:165: script error: Expected “then”, etc. but found identifier. (-2741) Y0
Enjoy.
<?xml version="1.0" encoding="UTF-8"?>
<afp:AttributeFilterPolicyGroup id="ShibbolethFilterPolicy"
xmlns:afp="urn:mace:shibboleth:2.0:afp"
xmlns:basic="urn:mace:shibboleth:2.0:afp:mf:basic"
xmlns:saml="urn:mace:shibboleth:2.0:afp:mf:saml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:mace:shibboleth:2.0:afp classpath:/schema/shibboleth-2.0-afp.xsd
urn:mace:shibboleth:2.0:afp:mf:basic classpath:/schema/shibboleth-2.0-afp-mf-basic.xsd
urn:mace:shibboleth:2.0:afp:mf:saml classpath:/schema/shibboleth-2.0-afp-mf-saml.xsd">
2009-11-03 18:08:08,453 [http-8080-1] DEBUG impl.SessionImpl - opened session at timestamp: 5149637379903488
2009-11-03 18:08:08,459 [http-8080-1] DEBUG impl.SessionImpl - opened session at timestamp: 5149637379928064
2009-11-03 18:08:08,470 [http-8080-1] DEBUG engine.StatefulPersistenceContext - initializing non-lazy collections
2009-11-03 18:08:08,471 [http-8080-1] DEBUG jdbc.ConnectionManager - transaction completed on session with on_close connection release mode; be sure to close the session to release JDBC resources!
2009-11-03 18:08:08,472 [http-8080-1] DEBUG def.AbstractFlushingEventListener - processing flush-time cascades
2009-11-03 18:08:08,472 [http-8080-1] DEBUG def.AbstractFlushingEventListener - dirty checking collections
2009-11-03 18:08:08,472 [http-8080-1] DEBUG engine.Collections - Collection found: [intient.nimble.domain.UserBase.follows#2], was: [intient.nimble.domain.UserBase.follows#2] (uninitialized)
2009-11-03 18:08:08,472 [http-8080-1] DEBUG engine.Collections - Collection fo
class wordpressmu {
file { "/var/www/apps/wordpressmu":
ensure => directory,
owner => "root",
group => "root",
mode => 755,
}
file { "/root/puppet-tars/wordpress-2.7.1.tar.gz":
ensure => directory,
mavenCentral()
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'Spring Source bundles release'
descriptor = 'optional'
checkmodified = true
addIvyPattern 'http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]'
addArtifactPattern 'http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]'
}
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
grails-app/conf/BuildConfig.groovy
// Local Plugins
basePath=new File("../")
grails.plugin.location.saml2orm="${basePath.absolutePath}/saml2orm"
grails.plugin.location.federationcore="${basePath.absolutePath}/federationcore"
grails.plugin.location.federationcompliance="${basePath.absolutePath}/federationcompliance"
// Nimble Dev
grails.plugin.location.nimble="../../nimble"
def setup() {
def profile = new ProfileBase()
user = new UserBase(username:'testuser', profile: profile).save()
processService.metaClass.authenticatedUser = user
minimalDefinition = new File('test/data/minimal.pr').getText()
}
groovy> [null, ""].sort
Exception thrown: null
java.lang.NullPointerException
at ConsoleScript31.run(ConsoleScript31:1)
Condition not satisfied: task.errors.getFieldError('execute').code == 'task.validation.execute.controller.invalid.definition' | | | | | | | | | false | | | | 8 differences (84% similarity) | | | | task.validation.execute.(se--)r(vic)e(-).invalid.definition | | | | task.validation.execute.(cont)r(oll)e(r).invalid.definition | | | task.validation.execute.service.invalid.definition | | Field error in object 'fedreg.workflow.Task' on field 'execute': rejected value [{service=testService, method=testMethod, someTest=testVal}]; codes [fedreg.workflow.Task.execute.validator.error.fedreg.workflow.Task.execute,fedreg.workflow.Task.execute.validator.error.execute,fedreg.workflow.Task.execute.validator.error.java.util.Map,fedreg.workflow.Task.execute.validator.error,task.execute.validator.error.fedreg.workflow.Task.execute,task.execute.validator.error.execute,task.execute.validator.error.java.util.Map,task.execute.validator.error,fedreg.workflow.Task.execute.task.validation.execute.service.invalid.definition.fedreg.work