Skip to content

Instantly share code, notes, and snippets.

View vegaasen's full-sized avatar
🤠
Howdy

Vegard Aasen vegaasen

🤠
Howdy
View GitHub Profile
@vegaasen
vegaasen / oim-11gr2ps2-11gr2ps3.stash
Last active June 12, 2018 15:34
OIM upgrade guide from 11gR2PS2 to 11gR2PS3
h1. Installation of OIM PS3
This is the task witch handles installation of the PS3 patch of OIM. The installation should be carried out in the following manner:
# Install to local development machine
# Install to test
# Install to stage
h1. Helpful links
@vegaasen
vegaasen / sql-cheat-sheet.md
Last active October 8, 2024 17:47
SQL Cheat Sheet for SQLPlus, MSSQL etc

SQL Cheat Sheet

Information

Dialects

Postgres

Misc grants

@vegaasen
vegaasen / banner.md
Last active August 29, 2015 14:21
Adding Linux banner to RHEL and Ubuntu

Adding Linux banner to RHEL and Ubuntu

Introduction

This contains information on how to actually add a banner to RHEL or Ubuntu Linux systems when logging in using ssh.

Linux distributions

Red Hat Enterprise Linux

@vegaasen
vegaasen / start-difi-service.bat
Last active August 29, 2015 14:18
Windows Service bat example
@ECHO OFF
REM
REM This script requires the following system variable to be registered:
REM key: DIFI_CONFIG_HOME
REM value: C:\path\to\difi\configuration\vefa-validator-conf-master
REM
REM @author vegaasen
REM @version 0.1
REM @since 31.03.2015
@vegaasen
vegaasen / cxf-standalone-jetty.md
Last active February 24, 2022 17:49
Simple example on how to get CXF to work with Jetty and stuff

CXF Standalone

Introduction

This is a simple example on how to get Jetty & CXF to play along with an embedded mind. Quite simple example :-). Please note that all of the stuff here is an excertp :-).

Maven configration

@vegaasen
vegaasen / maven-repo-sync.sh
Created February 11, 2015 06:42
Maven repository syncronization
#!/bin/sh
M2_HOST=mirrors.ibiblio.org;
M2_HOST_URI=maven2;
M2_LOCAL_LOCATION=/tmp/maven2;
echo "starting to syncronize all of the bits and pieces of $M2_HOST/$M2_HOST_URI. Everything will by synced to $M2_LOCAL_LOCATION";
rsync -v -t -l -r $M2_HOST::$M2_HOST_URI $M2_LOCAL_LOCATION;
<?xml version="1.0"?>
<project name="validate-cli" default="install">
<property file="../parent-build.properties"/>
<property file="build.properties"/>
<property name="src.dir" location="src/main/java"/>
<property name="build.dir" location="target"/>
<property name="build.lib.dir" location="${build.dir}/lib"/>
@vegaasen
vegaasen / disk-free-mon.sh
Created January 6, 2015 17:27
Simple disk free monitor shell script :-).
#!/bin/bash
#
# @description Simple script which just checks the current state of a mount and then checks the volume for % used. If this % used is > treshold, then it will send an email.
# @author vegaasen
# @since 06.01.2015
# @version 0.1-SNAPSHOT
#
THRESHOLD=95;
RECIPIENTS="[email protected]";
@vegaasen
vegaasen / ssl-request.cs
Last active August 29, 2015 14:07
http-ssl-request with sslv3 and tlsv1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Security.Authentication;
using System.Net.Sockets;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
@Test
public void misc() {
final SimpleDocumentBuilderHolder documentBuilderHolder = new SimpleDocumentBuilderHolder();
ExecutorService exec = Executors.newFixedThreadPool(10);
for (int i = 0; i < ROUNDS; i++) {
exec.submit(new Runnable() {
public void run() {
try {
final DocumentBuilder builder = documentBuilderHolder.allocateDocumentBuilder();