Skip to content

Instantly share code, notes, and snippets.

globe trotter

Kohsuke Kawaguchi kohsuke

globe trotter
Block or report user

Report or block kohsuke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View x
name: "javanet",
icon: "",
homepage: "",
author: { name: "Kohsuke Kawaguchi", email: ""},
license: "MIT license",
description: " scripts",
help: "how to use your command",
takes: {"input": noun_arb_text},
modifiers: {"in": noun_arb_text},
View gist:886239
# TODO: define a class with missing method receiver
class Wrapper
def method_missing(name,*args)
"#{name} #{args.inspect}"
<%=>"name", :bar=>5) %>
View gist:1126408
class B
def zot()
puts "I'm B"
class D < B
def zot()
View gist:1142061
Running InjectedTest
Exploding jenkins.war at /home/kohsuke/.m2/repository/org/jenkins-ci/main/jenkins-war/1.426-SNAPSHOT/jenkins-war-1.426-SNAPSHOT-war-for-test.jar
Aug 12, 2011 6:44:51 AM jenkins.model.Jenkins$6 onAttained
INFO: Started initialization
Aug 12, 2011 6:44:52 AM hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring /tmp/hudson7338806479721188092tmp/the.hpl because /tmp/hudson7338806479721188092tmp/the.hpl is already loaded
Aug 12, 2011 6:44:52 AM jenkins.model.Jenkins$6 onAttained
View gist:1170770
module M
def self.included(cls)
puts "xyz"
if cls.class == Module
# Quote of the day
# Kohsuke: "Did I just avoid the harm of eval?"
# NaHi: "No, this is actually worse"
View gist:1171431
eth0 / monthly
month rx | tx | total
Mar '11 15.82 GB | 55.64 GB | 71.46 GB
Apr '11 83.03 GB | 362.43 GB | 445.45 GB %:::
May '11 88.42 GB | 409.84 GB | 498.26 GB %:::
Jun '11 122.13 GB | 2.09 TB | 2.20 TB %:::::::::::::::::::::
Jul '11 105.55 GB | 1.52 TB | 1.63 TB %:::::::::::::::
Aug '11 78.95 GB | 272.93 GB | 351.89 GB %::
View gist:1178811
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No such field hudson.plugins.vmware.Root.allocationLock
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldType(
at hudson.util.RobustReflectionConverter.determineType(
at hudson.util.RobustReflectionConverter.doUnmarshal(
at hudson.util.RobustReflectionConverter.unmarshal(
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(
View gist:1222285
% bundle update
Fetching dependency information from the API at
Fetching dependency information from the API at
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
jenkins-plugin (~> 0.1.3) depends on
bundler (~> 1.0.0)
Current Bundler version:
bundler (1.1.pre.8)
View gist:1232965
An error occurred at /admin/build/views/ajax/add-item/events/calendar_ical_1/field.
Error Description: { &quot;display&quot;: &quot;\x3cform action=\&quot;/admin/build/views/ajax/add-item/events/calendar_ical_1/field\&quot; accept-charset=\&quot;UTF-8\&quot; method=\&quot;post\&quot; id=\&quot;views-ui-add-item-form\&quot;\x3e\n\x3cdiv\x3e\x3cdiv class=\&quot;form-item\&quot; id=\&quot;edit-group-wrapper\&quot;\x3e\n \x3clabel for=\&quot;edit-group\&quot;\x3eGroups: \x3c/label\x3e\n \x3cselect name=\&quot;group\&quot; class=\&quot;form-select views-master-dependent\&quot; id=\&quot;edit-group\&quot; \x3e\x3coption value=\&quot;all\&quot;\x3e\x26lt;All\x26gt;\x3c/option\x3e\x3coption value=\&quot;content\&quot;\x3eContent\x3c/option\x3e\x3coption value=\&quot;creative-commons\&quot;\x3eCreative Commons\x3c/option\x3e\x3coption value=\&quot;global\&quot;\x3eGlobal\x3c/option\x3e\x3coption value=\&quot;image\&quot;\x3eImage\x3c/option\x3e\x3coption value=\&quot;image-attach\&quot;\x3eImage attach\x3c/option\x3
You can’t perform that action at this time.