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
public abstract class DaemonThread implements Runnable { | |
public static final TimedEvent DEFAULT = new TimedEvent(); | |
private static final String DAEMON_THREAD_ID = "DaemonThread@selfdef"; | |
private Thread thread; | |
private volatile boolean active; | |
private boolean daemon = true; |
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
public final class ChartTools { | |
private static final String EMPTY = ""; | |
private static final int HEIGHT = 300, WIDTH = 800; | |
private static final AxisStyle axisStyle = AxisStyle.newAxisStyle(Color.WHITE, 12, AxisTextAlignment.CENTER); | |
private ChartTools() { | |
} | |
public static String getLineChart(Map<String, List<Double>> input, final String title, final int days) { |
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.lang.reflect.Array; | |
import java.util.*; | |
/** | |
* @author <a href="mailto:[email protected]">Vegard Aasen</a> | |
* @since 3:13 PM | |
*/ | |
public final class SetUtils { | |
private static final String EMPTY = ""; |
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/bash | |
# Simple script that performs SIPS-operations on mac. This script is created to simplify the actions in regards to sips, and also so that one dont have to | |
# remember what to do each time regarding the command I always tend to forget..duh.. | |
# ENjoi! | |
# | |
# @version 0.1b | |
# @author vegaasen | |
# @since 16.11.2013 |
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/bash | |
# | |
# @author <a href="[email protected]">Vegard Aasen</a> | |
# @version 0.1 | |
host=$1; | |
allPorts=$2; | |
ports=""; |
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
.. | |
.. | |
.. | |
dataSource = new ComboPooledDataSource(); | |
dataSource.setConnectionCustomizerClassName(SchemaConnectionCustomizer.class.getSimpleName()); | |
.. | |
.. | |
.. | |
public class SchemaConnectionCustomizer extends AbstractConnectionCustomizer { |
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.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.concurrent.TimeUnit; |
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
package com.telenor.security.sso.api.service.utils; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* @author <a href="mailto:[email protected]">Vegard Aasen</a> | |
* @since 21:38 | |
*/ |
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 org.slf4j.LoggerFactory; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; | |
import ch.qos.logback.classic.LoggerContext; | |
import ch.qos.logback.classic.encoder.PatternLayoutEncoder; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.FileAppender; | |
public class Loggerutils { |
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
package com.vegaasen.playhouse.cert.run; | |
import com.telenor.sec.certificate.cert.CertificateUtils; | |
import com.telenor.sec.certificate.common.CertificateProperties; | |
import javax.net.ssl.HttpsURLConnection; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.IOException; | |
import java.net.URL; | |
import java.security.cert.Certificate; |
OlderNewer