Skip to content

Instantly share code, notes, and snippets.

@eetee
eetee / keybase.md
Created April 21, 2020 05:44
keybase

Keybase proof

I hereby claim:

  • I am eetee on github.
  • I am eetee (https://keybase.io/eetee) on keybase.
  • I have a public key ASCSYwVaFVahX4VtPCzLFXQfNhKX75M-BWrlNqErkoLVngo

To claim this, I am signing this object:

@eetee
eetee / .bashrc
Last active December 17, 2019 06:59
dotfiles
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@eetee
eetee / index.js
Last active October 1, 2019 01:37
Lambda callback/async test
setTimeout(()=>{
console.log('final final')
}, 3000)
/**
* Effect: a promise is not returned, nor is a callback called
* Findings: the outer setTimeout 'final final' runs to the end
*/
exports.emptiness = (event, context, callback) => {
@eetee
eetee / script.js
Created March 9, 2019 05:03
SN - Searches script fields for term
(
function() {
var DEBUG_THIS_SCRIPT = false;
var SEARCH_TERM = '';
var searchTableField = function (table, field, searchTerm) {
var gr = new GlideRecord(table);
gr.addQuery(field, 'CONTAINS', searchTerm);
gr.query();
@eetee
eetee / CatalogClientScript.js
Created January 25, 2019 02:16
SN Record Producer Retrieve Draft
function onLoad() {
var ga = new GlideAjax('**REPLACE WITH API NAME**');
ga.addParam('sysparm_name', 'getDraft');
ga.addParam('sysparm_table', '**REPLACE WITH TABLE NAME**');
ga.getXML(showMessage);
}
function showMessage(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
if (!answer) return;