Skip to content

Instantly share code, notes, and snippets.

@moose56
moose56 / windows-ssh-setup.md
Created June 29, 2021 12:51
Setting up SSH for multiple Git remotes on Windows

Install OpenSSH Client optional feature

Add %SYSTEMROOT%\System32\OpenSSH\ to PATH

const AssetGraph = require('assetgraph'); // library to build dependency tree
const hashFiles = require('assetgraph-hashfiles'); // library to add hash
const del = require('del');
// top level await calls need to be inside
// an async function call
(async () => {
// remove old version of dist folder so
// we start from a clean slate and no old
@moose56
moose56 / JSF-1.2-to-2.3.md
Last active June 23, 2024 15:21
JSF 1.2 on WebLogic to JSF 2.3 on Tomcat notes

JSF 1.2 on WebLogic to JSF 2.3 on Tomcat

Some notes on the process of making this change to an application.

In addition to this other changes that have been included are:

  • Java 6/7 to Java 12
  • Usage of HTML5
  • Removal of the Trinidad component library
  • Use of Maven 3.*
  • Move from JDeveloper to Eclipse or IntelliJ IDEA

Keybase proof

I hereby claim:

  • I am moose56 on github.
  • I am moose56 (https://keybase.io/moose56) on keybase.
  • I have a public key ASAzAkxAUMWm1i0Uix2Y-V-2eyFwlZg0SoEVu0S-FtbGnwo

To claim this, I am signing this object:

layout title description tags
default
SQL Style Guide
A guide to writing clean, clear, and consistent SQL.
data
process

Purpose

function Person(name) {
this.name = name;
}
Person.prototype.greet = function() {
console.log("Hello, my name is" + this.name);
}
// as of 2015...
----------------------------------------------------------------------------
FUNCTION fw_xml_add_child(p_parent IN XMLTYPE, p_child IN XMLTYPE)
----------------------------------------------------------------------------
RETURN XMLTYPE
AS
l_parent_dom DBMS_XMLDOM.DOMDocument;
l_parent_elem DBMS_XMLDOM.DOMElement;
l_child_dom DBMS_XMLDOM.DOMDocument;
l_child_elem DBMS_XMLDOM.DOMElement;
@moose56
moose56 / image-queue.js
Last active December 24, 2021 07:52 — forked from sararob/image-queue.js
A fork of https://gist.github.com/sararob/275b252d1eda3a5baa27d6464d2f2198 to use async/await rather than callbacks
'use strict';
// Dependencies
// we can remove a dependency by using the vision
// package directly
const vision = require('@google-cloud/vision')({
projectId: 'sara-bigquery',
keyfileName: 'keyfile.json'
});
const fs = require('fs');