Skip to content

Instantly share code, notes, and snippets.

View kskuhlman's full-sized avatar

k2uhl kskuhlman

View GitHub Profile
@proudlygeek
proudlygeek / nfs-tunnel.md
Last active June 17, 2024 01:38
Mount NFS Folder via SSH Tunnel

1. Install NFS on Server

Install the required packages (Ubuntu 12.04):

apt-get install nfs-kernel-server portmap

2. Share NFS Folder

Open the exports file:

vim /etc/exports
@greghelton
greghelton / 1. TACTHROW.rpgle
Last active December 16, 2021 21:29
This code shows Throw and Catch in RPG based on my 2005 article in the iSeries News magazine. <br/><br/> RPG's MONITOR & ON-ERROR clause were great additions to the RPG language. They capture program exceptions so a program's error handling can be grouped in an ON-ERROR clause thus allowing error handling logic to be separated from business logi…
h nomain option(*srcstmt:*nodebugio)
d throw pr extproc('throw')
d messageID 7 CONST
d messageData 200 CONST VARYING options(*nopass)
d messageFile 10 CONST options(*nopass)
P throw b EXPORT
d pi
d messageID 7 const
@lost-theory
lost-theory / 01_intro.md
Last active March 26, 2019 15:52
Monitorama 2014 notes

Monitorama 2014 notes

http://monitorama.com/

Best talks day 1:

  • Please, no More Minutes, Milliseconds, Monoliths... or Monitoring Tools! - Adrian Cockcroft
    • gave 5 good rules for monitoring systems, showed what cloud / microservices monitoring looks like @ Netflix
  • Simple math to get some signal out of your noisy sea of data - Toufic Boubez
  • explains why static alert thresholds don't work and gave 3 techniques to use instead
@untergeek
untergeek / kibana.json
Last active March 27, 2019 01:09
Simple Kibana dashboard for collectd stats
{
"title": "Collectd: Blackbox",
"services": {
"query": {
"list": {
"0": {
"query": "plugin:\"load\"",
"alias": "Load",
"color": "#7EB26D",
"id": 0,
@DevoKun
DevoKun / ibmi.xml
Created January 10, 2015 14:33
IBM i (as/400, iSeries) CLP Language Syntax Highlighting for NotePad++
<!-- Add to userDefineLang.xml -->
<NotepadPlus>
<UserLang name="CLP" ext="clp clle">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="yes" words2="yes" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&apos;00&apos;00</Keywords>
* NAME API_OBJ
* TYPE *NONE
* SRCF QRPGLESRC
* TEXT API - Gestion des objets
* -------------------------------------------------------------------------
* API de gestion des objets
* Change Library List (QLICHGLL) API
* Change Object Description (QLICOBJD)
* List Objects (QUSLOBJ) API
* Rename Object (QLIRNMO) API
@greghelton
greghelton / LOGSTASHER.RPGLE
Last active August 28, 2023 14:03
Reads AS400 Journals and creates tables for reading by Java client of Logstash app.
* Logstasher - program to run as RCVJRNE exit point.
* It will create tables of journal records in which the blob
* field JOESD is parsed into the fields of the record that
* is the subject of the journal record.
* - - - - - - - - - - - - - - - - - - - - - - - -
* dependencies
* 1. LOGSTASH Data Area provides properties
* 2. FLATFILE Physical File required for compile
* 3. QCMDEXC
* 4. SQL
@greghelton
greghelton / DATAQTESTS.rpgle
Last active March 27, 2019 21:50
Using an AS400 data queue to function as one or more arrays.
ctl-opt Main(Main) option(*srcstmt:*nodebugio:*nounref);
// **************************************************************
// CRTDTAQ DTAQ(qtemp/DTAQ512) MAXLEN(526) SEQ(*KEYED) KEYLEN(14)
// crtpgm dataqtests module(dataqtests dataqueues)
// **************************************************************
dcl-proc Main;
dcl-pi *N;
end-pi;
dcl-pr arrayPut INT(10) extproc(*DCLCASE);