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
| Processor Information: | |
| Vendor: AuthenticAMD | |
| CPU Family: 0x10 | |
| CPU Model: 0xa | |
| CPU Stepping: 0x0 | |
| CPU Type: 0x0 | |
| Speed: 2700 Mhz | |
| 6 logical processors | |
| 6 physical processors | |
| HyperThreading: Unsupported |
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
| #!/usr/bin/env python | |
| ''' | |
| Script to generate the pom.xml dependency section for a bunch of jar files. | |
| ''' | |
| import hashlib | |
| import sys | |
| import os | |
| import json |
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
| Processor Information: | |
| Vendor: AuthenticAMD | |
| CPU Family: 0x10 | |
| CPU Model: 0xa | |
| CPU Stepping: 0x0 | |
| CPU Type: 0x0 | |
| Speed: 2700 Mhz | |
| 6 logical processors | |
| 6 physical processors | |
| HyperThreading: Unsupported |
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
| Processor Information: | |
| Vendor: AuthenticAMD | |
| CPU Family: 0x10 | |
| CPU Model: 0xa | |
| CPU Stepping: 0x0 | |
| CPU Type: 0x0 | |
| Speed: 2700 Mhz | |
| 6 logical processors | |
| 6 physical processors | |
| HyperThreading: Unsupported |
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 java.io.IOException; | |
| import java.util.Arrays; | |
| import java.util.LinkedList; | |
| import org.apache.lucene.analysis.TokenFilter; | |
| import org.apache.lucene.analysis.TokenStream; | |
| import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; | |
| import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute; | |
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
| (ns fizzbuzz) | |
| (defn evenly-divisible [number divisor] | |
| (zero? (mod number divisor)) | |
| ) | |
| (defn fizzbuzz [n] | |
| (let [diviz (partial evenly-divisible n)] | |
| (cond | |
| (and (diviz 3) (diviz 5)) |
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
| #!/bin/bash | |
| # | |
| # Script to check the number of connections in a JBoss connection pool via JMX and | |
| # invoke flush() if the connection count is over a certain limit | |
| # | |
| JBOSS_HOME=/apps/jboss-eap-4.3/jboss-as | |
| JBOSS_USER=admin | |
| JBOSS_PASSWORD=secret1 |
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
| @RequestMapping("/minuteGraph.htm") | |
| public ResponseEntity <byte []> getUpdatesByMinuteGraph() { | |
| HttpStatus responseCode = HttpStatus.OK; | |
| byte [] image = new byte[0]; | |
| Map <String,Long> updatesByMinute = reportDao.loadUpdateCountsByMinute(15); | |
| try { | |
| image = this.getUpdateCountByMinuteGraph(updatesByMinute); | |
| } catch (Exception e) { | |
| responseCode = HttpStatus.INTERNAL_SERVER_ERROR; | |
| } |
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
| package org.khill.dashboard.controller; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Locale; | |
| import java.util.Map; | |
| import java.awt.Color; |
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 pysvn | |
| import datetime | |
| import os | |
| from whoosh.index import create_in, open_dir | |
| from whoosh.fields import * | |
| from whoosh.qparser import QueryParser | |
| schema = Schema(author=TEXT(stored=True), | |
| message=TEXT(stored=True), | |
| revision=KEYWORD(stored=True), |