Skip to content

Instantly share code, notes, and snippets.

View kskuhlman's full-sized avatar

k2uhl kskuhlman

View GitHub Profile
@kskuhlman
kskuhlman / ibmi_termcap_wscst.md
Created November 26, 2019 16:29
Research into creating workstation customization objects from termcap (xterm, etc) entries.

This is a dumping ground for notes on adding IBM i (#IBM) native support for xterm and other termcap/nscurses supported terminals.

$ infocmp

Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm-256color

xterm-256color|xterm with 256 colors, am, bce, ccc, km, mc5i, mir, msgr, npc, xenl, colors#256, cols#80, it#8, lines#24, pairs#32767, acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[2J, cnorm=\E[?12l\E[?25h, cr=^M,

@kskuhlman
kskuhlman / semantic_markup_options.md
Last active August 30, 2019 19:27
Notes on markup languages for technical documentation, man pages, etc.
@kskuhlman
kskuhlman / printf_joblog.md
Last active June 26, 2019 08:26
printf to the joblog, with full replacement support.

There 3 sources here.. the program, the stored proc wrapper, and a test script.

Program:

**FREE
    // C-sytle printf API, to send messages to the joblog, etc.
    //  can be called either through normal RPG calls or as
    //  as stored procedure, since the indicator DS is ignored.
    // I didn't create a copybook with the procedure interface however.
    //  right now I only care about the stored proc.
@kskuhlman
kskuhlman / git_ssl_setup.sh
Last active June 26, 2019 08:27 — forked from kadler/README.md
Set Up SSL CA Certificates for Various Git Providers on IBM i
#!/QOpenSys/usr/bin/ksh
set -e
export LC_ALL=C LANG=C
OPENSSL=$(which openssl 2> /dev/null)
if [ "$OPENSSL" = "" ]
then
echo "openssl not found"
#Cross-platform file watcher. Originally forked from:
#https://stackoverflow.com/questions/182197/how-do-i-watch-a-file-for-changes/49007649#49007649
import os
import sys
import time
import importlib
class Watcher(object):
running = True
refresh_delay_secs = 1
@kskuhlman
kskuhlman / IBMi_IDEs.md
Last active March 4, 2020 19:21
IBM i IDE Feature Comparison

RPG Editor Feature Comparison

RDi MiWorkplace ILEditor IBMiCmd VSCode Orion SEU/ADTS
Run on Mac/Linux x x x x x
File System Explorer x x x x x
Compile From Editor x x x x x
Integrated Debugger x x x
Edit IFS Files x x x x x x
Edit SRCPF Members x x x x x
@kskuhlman
kskuhlman / configure.py
Last active February 9, 2019 04:58
Configure script for creating ninja scripts for ILE programs. Using the configure script for ninja itself as the starting point.
#!/usr/bin/env python
#
# Copyright 2001 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@kskuhlman
kskuhlman / cats_and_dogs
Created January 24, 2019 00:14
A tale of cats and dogs and friends
Ma and Pa Kuhlman keep a list of animals that live on their farm.
They don't have good memories anymore, so if it's not on the list then it's probably been forgotten.
Often busy, they don't get a chance to communicate right away, so each keeps a seperate list.
They start with Dog, since loyal Fluffy is always at their feet.
At the end of the first day, Ma's list has Dog & Cat. Pa's list has Dog. After staring at eachother for a while,
they can't decide whether Ma discovered that they own a cat, or if Pa discovered that their cat had passed away. Neither one