Skip to content

Instantly share code, notes, and snippets.

# tmux plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# vim mode switching delay issue (http://superuser.com/a/252717/65504)
set -s escape-time 10
set -g mouse on
import foam.mlang.MLang;
import foam.nanos.auth.LifecycleState;
import foam.nanos.auth.User;
import foam.nanos.crunch.UserCapabilityJunction;
import foam.nanos.crunch.CapabilityJunctionStatus;
import foam.nanos.logger.PrefixLogger;
import net.nanopay.admin.model.ComplianceStatus;
/*
* Run configs
//
// Support re-triggering LEV onboarding on BusinessDetailData update
// https://github.com/nanoPayinc/NANOPAY/pull/14670
//
/* Vars */
DRY_RUN = true;
RULES_TO_UPDATE = new String[] {
"expanded-onboarding-securefact-business-lookup",
"expanded-onboarding-securefact-business-lookup-sync"
Index: src/foam/nanos/crunch/ui/UCJView.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/foam/nanos/crunch/ui/UCJView.js b/src/foam/nanos/crunch/ui/UCJView.js
--- a/src/foam/nanos/crunch/ui/UCJView.js (revision 3cd0783ae2b1bb4649d671479f07aea9112a9e66)
+++ b/src/foam/nanos/crunch/ui/UCJView.js (revision 7204d43446b32459e7d62a4c27a61d0bc24bf868)
@@ -122,7 +122,8 @@
controllerMode:
diff --git a/postman.json b/postman.json
index 47077f6e43..1131a730fa 100644
--- a/postman.json
+++ b/postman.json
@@ -1,7 +1,7 @@
{
"info":{
- "_postman_id":"26b2f067-9e25-4197-ade4-06298580580b",
- "name":"Intuit-CI-Collection-07",
+ "_postman_id":"e3ed1a3e-49a6-4478-b662-557d0c2c27a2",
@lchanmann
lchanmann / postal-codes.json
Created November 12, 2021 15:00 — forked from jamesbar2/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
diff --git a/src/foam/nanos/ruler/Rule.js b/src/foam/nanos/ruler/Rule.js
index cb01c8599..acb7bbe93 100644
--- a/src/foam/nanos/ruler/Rule.js
+++ b/src/foam/nanos/ruler/Rule.js
@@ -480,7 +480,16 @@
Subclasses of Rule should override "getUser" method to return the
appropriate user for which the permission is checked.
`,
- javaCode: 'return null;'
+ javaCode: `
Start server - development branch
> ./build.sh -wcdj -Jbr,treviso
Configure credentials
- services
- dowJones
- secureFact
- IDM
- Kotak
- afexCredentials
diff --git a/nanopay/src/net/nanopay/bank/BankHolidayService.js b/nanopay/src/net/nanopay/bank/BankHolidayService.js
index c3ee295550..87302738ae 100644
--- a/nanopay/src/net/nanopay/bank/BankHolidayService.js
+++ b/nanopay/src/net/nanopay/bank/BankHolidayService.js
@@ -28,7 +28,8 @@ foam.CLASS({
'java.time.ZoneId',
'java.time.ZoneOffset',
'java.util.Date',
- 'java.util.List',
+ 'java.util.HashSet',
@lchanmann
lchanmann / idm.jrl
Created October 8, 2019 11:30
idm response
p({"class":"net.nanopay.meter.compliance.identityMind.IdentityMindResponse","id":18,"entityType":"foam.nanos.auth.User","daoKey":"userDAO","entityId":8929,"statusCode":200,"created":"2019-10-01T13:26:32.305Z","apiName":"Consumer KYC Evaluation","requestJson":"{\"man\":\"8929\",\"tea\":\"emmanuelwhite247@gmail.com\",\"ip\":\"192.168.20.244\",\"bfn\":\"Carson\",\"bln\":\"Anthony\",\"bsn\":\"221 PO BOX 221\",\"bco\":\"US\",\"bz\":\"94046\",\"bc\":\"MOUNTAIN VIEW\",\"bs\":\"CA\",\"phn\":\"(786)6328147\",\"tid\":\"7e35a43f-65a2-35e7-9a66-d2fc82f3f31e\",\"accountCreationTime\":\"2019-09-30T13:23:03Z\",\"title\":\"Managing Director\",\"dob\":\"1964-04-06\",\"profile\":\"nanopayUS\",\"stage\":2,\"memo3\":0,\"memo4\":false}","user":"UNKNOWN","upr":"UNKNOWN","frn":"User Validation","frp":"MANUAL_REVIEW","frd":"[Fired] The user is unvalidated; The telephone number is of type NON_FIXED_VOIP which is considered safe","arpr":"DISABLED","tid":"7e35a43f-65a2-35e7-9a66-d2fc82f3f31e","erd":"Unknown User","res":"MANUAL_REVIEW",