Skip to content

Instantly share code, notes, and snippets.

View vegarringdal's full-sized avatar
💭
Having fun with lit-html

Vegar Ringdal vegarringdal

💭
Having fun with lit-html
View GitHub Profile
Trace file /tmp/oradiag_node/diag/clients/user_node/host_1751867021_110/trace/ora_1_140270356707072.trc
# 08/15/22 13:50:46:993 # Thread ID 140270356707072 # Entry - OCIHandleAlloc(parenth = 0x7f933800cd40, hndlp = 0x7f933cc8ab60, htype = authentication hndl, xtramem_sz =0, usermemp = (nil), flag = TRUE);
# 08/15/22 13:50:46:994 # Thread ID 140270356707072 # Exit - OCIHandleAlloc rc = OCI_SUCCESS, errnop = 0
# 08/15/22 13:50:46:994 # Thread ID 140270356707072 # Entry - OCIHandleAlloc(parenth = 0x7f933800cd40, hndlp = 0x7f933cc8ac78, htype = error hndl, xtramem_sz =0, usermemp = (nil), flag = TRUE);
# 08/15/22 13:50:46:994 # Thread ID 140270356707072 # Exit - OCIHandleAlloc rc = OCI_SUCCESS, errnop = 0
# 08/15/22 13:50:46:994 # Thread ID 140270356707072 # Entry - OCISessionGet(envhp= 0x7f933800cd40, errhp = 0x7f93381b8200, &svchp = 0x7f933400d240, authinfo = 0x7f93381ba118 , dbName = OCI:SP:5gbC9DHhAAHgU8MBDwrFfC, Dbnamelength = 29, taginfo = ,taginfoLen = 0, retTaginfo = 0x7f933cc8adc8, retTaginfoLen = 0x7f93
@vegarringdal
vegarringdal / readm.md
Created November 2, 2021 09:12
nodejs and oracle

Nodejs report react

This is a simple web report application using react and nodejs.

Frontend libraries:

  • render: react
  • state: zustand
  • router: react-router-dom
  • grid: @simple-html/grid
  • datasource: @simple-html/datasource

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
@vegarringdal
vegarringdal / 2019-https-localhost.md
Created December 25, 2019 14:38 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@vegarringdal
vegarringdal / README.md
Created August 18, 2019 20:00 — forked from treshugart/README.md
HMR for generic web components

Generic web component HMR

I'm messing around with a generic way to do hot-module-replacement with generic web components whether they be vanilla, or done in a framework like Polymer or Skate.

The idea is that you call hmr(customElementConstructor) in your module files and it will set up the proper hooks.

The const filename should be inserted at build time so that it can remember the original localName of the component for the module.

WTF is "x-layout", "Layout" and "filename"

SELECT (strftime('%j', date('2015-12-28', '-3 days', 'weekday 4')) - 1) / 7 + 1
type result = {
success: boolean;
errors: string[];
pull_high: number;
pull_low: number;
term_mark: number;
term_length: number;
};
@vegarringdal
vegarringdal / compare files.ts
Created April 26, 2019 20:07
compare files
const Excel = require('exceljs');
// local variables, for holding data
const file1 = [];
const file1Index = [];
const file2 = [];
const file2Index = [];
const errors = [];
@vegarringdal
vegarringdal / regex
Last active January 7, 2019 22:18
split cable with regex
// regex
/[ ](?=[0-9][0-9][x][0-9])|[ ](?=[0-9][x][0-9])|[ ](?=[0-9][0-9][G][0-9])|[ ](?=[0-9][G][0-9])/gi
// sample
https://regexr.com/45vsv