This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://docs.keyoxide.org/advanced/openpgp-proofs/
[Verifying my OpenPGP key: openpgp4fpr:2168f22b84851fc265ba6af589d8325b4488070c]
| /** | |
| * @NApiVersion 2.1 | |
| * | |
| * @Description nic_validate_se_persnr_mod.js | |
| * @Solution Generic module | |
| * | |
| * @Copyright 2023 Noresca IT Consulting AB | |
| * @Author jorg.ramb <[email protected]> | |
| * | |
| * # Explanation |
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://docs.keyoxide.org/advanced/openpgp-proofs/
[Verifying my OpenPGP key: openpgp4fpr:2168f22b84851fc265ba6af589d8325b4488070c]
I hereby claim:
To claim this, I am signing this object:
| package xxcust.testClient; | |
| import javax.xml.namespace.QName; | |
| import javax.xml.soap.MessageFactory; | |
| import javax.xml.soap.MimeHeaders; | |
| import javax.xml.soap.SOAPBody; | |
| import javax.xml.soap.SOAPConnection; | |
| import javax.xml.soap.SOAPConnectionFactory; | |
| import javax.xml.soap.SOAPElement; | |
| import javax.xml.soap.SOAPEnvelope; |
| -- Levenshtein is a string distance metric | |
| -- https://en.wikipedia.org/wiki/Levenshtein_distance | |
| function levenshtein_dist(p_s varchar2, p_t varchar2) | |
| return number deterministic | |
| is | |
| type int_t is table of pls_integer index by pls_integer; | |
| type char_t is table of char(2) index by pls_integer; | |
| v0 int_t; | |
| v1 int_t; | |
| t char_t; -- copy of p_t for performance |
| select last_connect, usr.user_name, resp.responsibility_key, function_type, icx.* | |
| from apps.icx_sessions icx | |
| join apps.fnd_user usr on usr.user_id=icx.user_id | |
| left join apps.fnd_responsibility resp on resp.responsibility_id=icx.responsibility_id | |
| where last_connect>sysdate-nvl(FND_PROFILE.VALUE('ICX_SESSION_TIMEOUT'),30)/60/24 | |
| and disabled_flag != 'Y' and pseudo_flag = 'N' |
| (defn- digits [n] | |
| (map read-string (re-seq #"[0-9]" (str n)))) | |
| (defn luhn? [n] | |
| (zero? (mod | |
| (reduce + | |
| (digits (reduce str | |
| (map * (cycle [1 2]) (reverse (digits n)))))) | |
| 10))) |
| (ns wsclj.core | |
| (:gen-class) | |
| (:import [javax.jws WebService]) | |
| (:import [javax.xml.ws Endpoint])) | |
| ;; Based on a blog-comment by Jonathan Seltzer | |
| (defprotocol Calculator | |
| (hello [this yourname]) | |
| (add [this a b]) |
| all: mandelrs playc playmandel mandel.js | |
| mandelrs: mandelrs.rs | |
| playc: playc.c | |
| %: %.c | |
| gcc $^ -O2 -o $@ | |
| playmandel: playmandel.hs |
| (defn hash-password [password salt] | |
| (assert (> (count salt) 10)) ;would like to have >64 bit of salt | |
| (assert (> (count password) 6)) ;come on, how low can we go? | |
| (let [md (java.security.MessageDigest/getInstance "SHA-512") | |
| encoder (sun.misc.BASE64Encoder.)] | |
| (.update md (.getBytes salt "UTF-8")) ;assume text salt | |
| (.encode encoder | |
| (loop [mangle (.getBytes password "UTF-8") | |
| passes 1e5] ; paranoid, but are we paranoid enough? | |
| (if (= 0 passes) |