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 / sendmail-linux.md
Created October 18, 2016 13:40
Sendmail on Linux

Installing Sendmail on RHEL

Required packages

sudo yum install sendmail sendmail-cf m4

Overview of configurables

Configurables defined in /etc/mail/.

@vegaasen
vegaasen / fetch-artifact-artifactory.sh
Last active October 5, 2022 14:08
Fetch artifactory artifact (maven)
#!/usr/bin/bash
##
## Read more about the definitions here regarding the REST-APIs:
## https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API
##
## Note: This script uses the maven-metadata.xml-file in order to determine the latest JAR-artifact.
##
## Script properties:
## - ARTIFACTORY = https://<artifactory-domain>/artifactory
@vegaasen
vegaasen / jenkins-cheat-sheet.md
Created July 13, 2016 05:59
Tiny cheat-sheet for myself (and others)

Jenkins cheat sheet

Adding job that triggers script on Jenkins server

This is quite simple, and requires just that you add your script somewhere on the Jenkins server (you may also put shell code directly in to Jenkins, but..why). Anyway. When failing tests, you must use: exit This causes Jenkins to go in to a failed-build state :-)

@vegaasen
vegaasen / DTMFUtils.java
Created April 1, 2016 06:32
DTMFUtils for Java - based on whatever has been put into Android. Used in regards to populating the Exchange attribute "msExchUMDtmfMap"
public enum DTMFUtils {
INSTANCE;
private static final ODLLogger LOG = ODLLogger.getODLLogger(ResourceSyncConstants.LOGGER);
private static final Map<Character, Character> KEYPAD_MAP = new HashMap<>();
private static final String REGEX_ILLEGAL_CHARS = "[^\\p{IsAlphabetic}^\\p{IsDigit}]";
private static final String EMPTY = "";
static {
@vegaasen
vegaasen / oracle-weblogic-trix-in-ludo.md
Last active March 7, 2018 14:36
Trix in Ludo for Oracle-based stuff (OIM, SOA, WebLogic etc)

Guides

This is a small compilation of trix in Ludo related to Oracle products.

Configuring SSL on WebLogic for any server (server==wl based server)

Introduction

This guide helps on defining SSL on WebLogic for any servers that is running on an instance.

@vegaasen
vegaasen / supress-warning-idea.md
Created November 27, 2015 12:59
SuppressWarnings with IntelliJ Idea

@SuppressWarnings - IntelliJ modes

Information

This list may grow each year with either new versions or patches. Enjoy!

Usage

Following is an example related to the usage of the various ignore capabilities.

@vegaasen
vegaasen / shell-cheat-sheet.md
Last active January 24, 2025 11:53
Shell Cheat Sheet - my various thoughts and things-to-remember regarding shells

Shell Cheat Sheet

Using jq to find shait in a JSON-file

Using the public API from Bring https://api.bring.com/pickuppoint/api/pickuppoint/no/all I needed to find all pickup point names, and the longest name. Used jq for this:

jq '.pickupPoint[] | .name' response.json >> pickup-points.out
awk '{ if (length($0) &gt; length(longest)) longest = $0 } END { print longest }' pickup-points.out
@vegaasen
vegaasen / LDAPUtils.java
Last active May 23, 2017 12:55
Simple LDAP Utilities that I use
package com.vegaasen.fun.ldap.utils;
/**
* Simple utilities used to perform operations regarding LDAP-related tasks
*
* @author <a href="mailto:[email protected]">vegaraa</a>
* @since 18.8.2015
*/
public class LDAPUtils {
@vegaasen
vegaasen / kerberos-configuration.md
Last active October 29, 2018 23:47
Configuring Kerberos

Configuring Kerberos

Introduction

This is a brief description on how to enable Kerberos Authentication on an existing WebLogic webserver instance. It will basically describe the following portions:

  • Configure the AD
  • Configure an existing (or new) user in AD that will be the Ticket-holder
@vegaasen
vegaasen / remove-users-oim-11gr2.sql
Last active March 7, 2018 20:28
Remove users in OIM version 11gr2ps2
-- This is a simple script (TOTALLY AND UTTERLY UNSUPPORTED) which simply just removes all accounds created in OIM.
-- The users with the keys 1, 2, 3 and .. is skipped, as they are all registered as system-specific users.
--
-- Used with OIM version 11g R2 PS2
--
-- @since 01.06.2015
-- @author vegaasen
-- @version 11gR2ps2
--Custom tables