This file contains 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
#!/bin/sh -x | |
## REST API JIRA KEY check | |
#List of projects that do not require strict JIRA KEY commits | |
#list in space and case-insensitive | |
NON_STRICT="sports" | |
# Authentication credentials | |
username=root |
This file contains 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 groovyx.net.http.*; | |
import static groovyx.net.http.ContentType.*; | |
import static groovyx.net.http.Method.*; | |
class NexusArtifactCleanup { | |
/** | |
* Settings in which to run script. | |
*/ |
This file contains 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
require 'formula' | |
class Nexus < Formula | |
homepage 'http://www.sonatype.org/nexus/' | |
url 'http://www.sonatype.org/downloads/nexus-2.0.2-bundle.tar.gz' | |
md5 '7403fbcb06eea8d20f85c5ed36661570' | |
skip_clean :all | |
def install |
This file contains 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
require 'formula' | |
class Nexus < Formula | |
homepage 'http://www.sonatype.org/nexus/' | |
url 'http://www.sonatype.org/downloads/nexus-2.0.2-bundle.tar.gz' | |
md5 '7403fbcb06eea8d20f85c5ed36661570' | |
skip_clean :all | |
def install |
This file contains 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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by GnuTLS configure 2.12.16, which was | |
generated by GNU Autoconf 2.68. Invocation command line was | |
$ ./configure --disable-debug --disable-dependency-tracking --disable-guile --disable-static --prefix=/usr/local/Cellar/gnutls/2.12.16 --with-libgcrypt --without-p11-kit | |
## --------- ## | |
## Platform. ## |
This file contains 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 javax.management.remote.JMXServiceURL | |
import javax.management.remote.JMXConnectorFactory as JmxFactory | |
import java.lang.management.* | |
def beanName = "org.terracotta:type=Terracotta Server,name=DSO" | |
def serverUrl = new JMXServiceURL('service:jmx:jmxmp://localhost:9520') | |
def server = JmxFactory.connect(serverUrl, null).MBeanServerConnection | |
def liveObjectCount = new GroovyMBean(server, beanName).LiveObjectCount |
This file contains 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
<div class="clearfix"> | |
<label for="time">Time</label> | |
<div class="input"> | |
<select class="small" name="hour" id="hour" size="1"> | |
#{list items:0..23, as:'i'}<option value="${i}" | |
#{if new Date().format('HH') == Integer.toString(i) }selected="true"#{/if}>${i}:00</option>#{/list} | |
</select> | |
</div> | |
</div> | |
<div class="clearfix"> |
This file contains 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 java.io.{FileInputStream, BufferedInputStream} | |
import scala.io.Source | |
import scala.xml.pull.{XMLEventReader, EvElemStart, EvElemEnd, EvText} | |
object GutenbergCrunch | |
{ | |
private def parseBook( parser : XMLEventReader ) : (String, String, String) = |
This file contains 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 java.io.File; | |
import java.io.FileNotFoundException; | |
import java.net.URISyntaxException; | |
public class FileLoader { | |
private static final String CLASSPATH_CONST = "classpath:"; | |
private static final String FILEPATH_CONST = "filepath:"; | |
public File loadFile(String file) throws FileNotFoundException{ |
This file contains 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
resolvers ++= Seq( | |
"Twitter repo" at "http://maven.twttr.com/", | |
"Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" | |
) |