Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<Export generator="IRIS" version="26" zv="IRIS for Windows (x86-64) 2019.4.0ML (Build 147U)" ts="2019-12-23 19:53:29">
<Class name="Test.A">
<Super>%Persistent,%JSON.Adaptor</Super>
<TimeChanged>65370,71532.559211</TimeChanged>
<TimeCreated>65370,70856.941877</TimeCreated>
<Property name="A">
<Type>A</Type>
<Parameter name="%JSONINCLUDE" value="INOUT"/>
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.2</version>
<date>2019-09-06T17:21:44Z</date>
<groups>
<group>
<name>Linux servers</name>
</group>
</groups>
<templates>
@eduard93
eduard93 / %ZLANGC00.xml
Created January 24, 2019 18:41
%ZLANGC00 example
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25">
<Routine name="%ZLANGC00" type="MAC" languagemode="0"><![CDATA[
; %ZLANGC00
; custom commands for ObjectScript
; http://localhost:57772/csp/docbook/DocBook.UI.Page.cls?KEY=GSTU_customize
Quit
ZPY(command) Public
Set:$namespace'="PYTHON" $namespace = "PYTHON"
@eduard93
eduard93 / DumpHex.c
Created January 17, 2019 17:32 — forked from ccbrown/DumpHex.c
Compact C Hex Dump Function w/ASCII
#include <stdio.h>
char* DumpHex2(const void* data, size_t size) {
const int symbolSize = 100;
char* buffer = calloc(10*size, sizeof(char));
char* symbol = calloc(symbolSize, sizeof(char));
char ascii[17];
size_t i, j;
ascii[16] = '\0';
@eduard93
eduard93 / %ZSTART
Created December 24, 2018 19:22
%ZSTART routine example
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25">
<Routine name="%ZSTART" type="MAC" languagemode="0"><![CDATA[
SYSTEM
try {
new $namespace
set $namespace = "PYTHON"
do ##class(isc.py.Callout).Setup()
set $namespace = "%SYS"
@eduard93
eduard93 / Test.PubSub.xml
Created September 17, 2018 09:24
Ensemble publish subscribe sample
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2017.2 (Build 744U)" ts="2018-09-17 12:22:13">
<Class name="Test.Alert">
<Description>
Email notification about workflow tasks</Description>
<Super>%Persistent,Ens.Request</Super>
<TimeChanged>64587,65114.949429</TimeChanged>
<TimeCreated>64261,39066.833339</TimeCreated>
<Property name="to">
@eduard93
eduard93 / FieldUpdater.cs
Created June 7, 2018 18:43
Update only some fields in docx file
using System;
using System.Collections.Generic;
using Microsoft.Office.Interop.Word;
using System.Runtime.InteropServices;
namespace FieldUpdater
{
class Program
@eduard93
eduard93 / imgur.user.js
Created November 3, 2017 18:21
Removes titles from imgur posts - tampermonkey user script
// ==UserScript==
// @name imgur.com title remover
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Removes titles from imgur posts
// @author eduard93
// @match https://imgur.com/*
// @grant none
// ==/UserScript==
@eduard93
eduard93 / BlackBox.xml
Created June 17, 2017 13:32
BlackBox. What's inside?
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2016.1 (Build 656U)" ts="2017-06-17 16:26:10">
<Global>
<Node><Sub>^||%pkg</Sub>
<Node><Sub>1</Sub>
<Data>25</Data>
<Node><Sub>1</Sub>
<Data>ITPlanet.BlackBox</Data>
</Node>
<Node><Sub>21</Sub>
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2016.1 (Build 656U)" ts="2017-06-07 15:42:49">
<Class name="Cogs.Test.Child">
<Super>%Persistent,Cogs.JsonClass</Super>
<TimeChanged>64441,56292.638432</TimeChanged>
<TimeCreated>64441,56038.8048</TimeCreated>
<Property name="Parent">
<Type>Parent</Type>
</Property>