This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SVN_REPO=https://svn.apache.org/repos/asf/incubator/deft/sandbox/ | |
| export SVN_REPO | |
| GIT_REPO=https://github.com/rschildmeijer/deft.git | |
| export GIT_REPO | |
| # init to set SSL cert if needed | |
| svn log -l 1 $SVN_REPO | |
| git svn clone $SVN_REPO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [03/24/11 21:59:38] [SSH] Opening SSH connection to minerva.apache.org:22. | |
| [03/24/11 21:59:41] [SSH] Authenticating as hudson with /home/hudson/.ssh/id_rsa. | |
| [03/24/11 21:59:41] [SSH] Authentication successful. | |
| [03/24/11 21:59:41] [SSH] The remote users environment is: | |
| BASH=/bin/bash | |
| BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath | |
| BASH_ALIASES=() | |
| BASH_ARGC=() | |
| BASH_ARGV=() | |
| BASH_CMDS=() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <generator version="3.3.3 (.3 5)">Alfresco (Enterprise)</generator> | |
| <title>VGR Published documents feed for content modified between Fri, 04 Feb 2011 12:04:21 GMT and Fri, 04 Feb 2011 13:34:21 GMT</title> | |
| <updated>2011-02-04T14:34:21.165+01:00</updated> | |
| <icon>http://vgdb0206.vgregion.se:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon> | |
| <author> | |
| <name>unknown</name> | |
| </author> | |
| </feed> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Random rnd = new Random(); | |
| int wins = 0; | |
| int runs = 100000; | |
| for(int r = 0; r<runs; r++) { | |
| boolean[] doors = new boolean[3]; | |
| doors[rnd.nextInt(3)] = true; | |
| int choosen = rnd.nextInt(3); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.pdfbox.examples.fdf.PrintFields; | |
| import org.apache.pdfbox.pdmodel.PDDocument; | |
| import org.apache.pdfbox.pdmodel.PDDocumentCatalog; | |
| import org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm; | |
| import org.apache.pdfbox.pdmodel.interactive.form.PDCheckbox; | |
| import org.apache.pdfbox.pdmodel.interactive.form.PDTextbox; | |
| public class Main { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NamingEnumeration<NameClassPair> e = kivSchema.list("AttributeDefinition"); | |
| while(e.hasMore()) { | |
| String kivAttributeName = e.next().getName(); | |
| String fullName = "AttributeDefinition/" + kivAttributeName; | |
| Attributes attributes = kivSchema.getAttributes(fullName); | |
| String attrName = (String) attributes.get("NAME").get(); | |
| if(attrName.startsWith("hsa")) { | |
| System.out.println(attrName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hudsonInstance = hudson.model.Hudson.instance | |
| allItems = hudsonInstance.items | |
| activeJobs = allItems.findAll{job -> job.isBuildable()} | |
| defaultFailBuild = false | |
| println "Cur | Est | Name" | |
| activeJobs.each { job -> | |
| // Get the Timeout-PlugIn | |
| wrapper = job.getBuildWrappersList().findAll{it instanceof hudson.plugins.build_timeout.BuildTimeoutWrapper }[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hudsonInstance = hudson.model.Hudson.instance | |
| allItems = hudsonInstance.items | |
| activeJobs = allItems.findAll{job -> job.isBuildable()} | |
| println "Cur | Est | Name" | |
| activeJobs.each { job -> | |
| wrapper = job.getBuildWrappersList().findAll{it instanceof hudson.plugins.build_timeout.BuildTimeoutWrapper }[0] | |
| currentTimeout = (wrapper != null) ? wrapper.timeoutMinutes : "" |
NewerOlder