Skip to content

Instantly share code, notes, and snippets.

@kevinguto
kevinguto / remove.js
Created December 12, 2022 15:21 — forked from riston/remove.js
Remove empty objects from object, recursive
var removeEmpty = function(object) {
if (!_.isObject(object)) {
return;
}
_.keys(object).forEach(function(key) {
var localObj = object[key];
@kevinguto
kevinguto / colormap.sh
Created April 25, 2023 17:25 — forked from rkumar/colormap.sh
colormap.sh - bash color mappings
export NONE=''
export BLACK='\\033[0;30m'
export RED='\\033[0;31m'
export GREEN='\\033[0;32m'
export BROWN='\\033[0;33m'
export BLUE='\\033[0;34m'
export PURPLE='\\033[0;35m'
export CYAN='\\033[0;36m'
export LIGHT_GREY='\\033[0;37m'
export DARK_GREY='\\033[1;30m'
/* this.editor = new Ext.ux.grid.RowEditor({
saveText: 'Update',
clicksToEdit: 20
});*/
/*this.editor.on('beforeedit', this.onEditOperation, this);
this.editor.on('afteredit', this.onAddRecord, this);
this.editor.on('canceledit', this.onEditCancelled, this);*/
this.nameField = new Ext.form.TextField({
@kevinguto
kevinguto / colorize-tomcat-logs.sh
Last active February 6, 2024 08:53 — forked from zakmac/colorize-tomcat-logs.sh
Colorize Tomcat
#!/bin/bash
# ABOUT
# Add color to your Catalina output logs for [info, warn, error, severe, startup]
# - This isn't the smartest, so if there is a match for any of the listed statuses in an
# output you can bet it'll be colorized
# USAGE
# catalina run 2>&1 | bash ~/colorize-tomcat-logs.sh
class RepeatTableHeadersHandler extends Paged.Handler {
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller)
this.splitTablesRefs = []
}
afterPageLayout(pageElement, page, breakToken, chunker) {
this.chunker = chunker
this.splitTablesRefs = []
@kevinguto
kevinguto / setup-dev.sh
Created May 31, 2024 06:31
UtilityScripts
curl -s "https://get.sdkman.io" | bash
sdk install groovy 2.4.15
sdk install grails 3.3.9
sdk install gradle 3.1