Install .NET via the following script:
I advise to first do a dry run and to enable verbose mode to review if envvar DOTNET_INSTALL_DIR
is set correctly:
Install .NET via the following script:
I advise to first do a dry run and to enable verbose mode to review if envvar DOTNET_INSTALL_DIR
is set correctly:
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Security.Principal; | |
using System.Security.AccessControl; | |
using System.IO; | |
namespace RSSetDirPermissionsCS |
-- category: Bryan.Dietz | |
-- description: Jobs in msgw(wrkactjob) | |
SELECT Job_Name | |
,Subsystem | |
,Function_Type CONCAT '-' CONCAT Function AS "Function" | |
,Job_Status | |
,(SELECT Message_Text | |
FROM TABLE (Qsys2.Joblog_Info(I.Job_Name)) A | |
ORDER BY Ordinal_Position DESC |
#!/bin/sh | |
file=path/to/file | |
bucket=your-bucket | |
resource="/${bucket}/${file}" | |
contentType="application/x-compressed-tar" | |
dateValue="`date +'%a, %d %b %Y %H:%M:%S %z'`" | |
stringToSign="GET | |
${contentType} | |
${dateValue} | |
${resource}" |
#!/bin/bash | |
# This script can be used to commit changes to git repo and push to | |
# remote repo all in one command. | |
TODAY=$(date) | |
HOST=$(hostname) | |
git add . | |
git commit -m "Changes committed: $TODAY from $HOST" | |
git push | |
git pull |
#!/usr/bin/python | |
#------------------------------------------------ | |
# Script name: sqlitedbtest1.py | |
# | |
# Description: | |
# This script is a good test program for SQLite DB | |
# functionality. | |
# | |
# Parameters: | |
# P1= |
using System; | |
using System.Text; | |
using System.Data; | |
using System.Data.Odbc; | |
using System.Collections.Generic; | |
namespace OdbcCoreTest1 | |
{ | |
// https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzaik/connectkeywords.htm | |
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/rzaik/rzaikodbc64bitrestrictions.htm |
/opt/ibm/iaccess/bin/cwbtrc /dt:1 # enable trace | |
# run code to recreate here | |
/opt/ibm/iaccess/bin/cwbtrc /dt:0 # disable trace | |
/opt/ibm/iaccess/bin/cwbmedic # generate diagnostic tar file |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using IbmiXmlserviceStd; | |
namespace IbmiXmlServiceCommandSample1Cs | |
{ | |
class Program |
public string DataTableToJsonObj(DataTable dt) | |
{ | |
DataSet ds = new DataSet(); | |
ds.Merge(dt); | |
StringBuilder JsonString = new StringBuilder(); | |
if (ds != null && ds.Tables[0].Rows.Count > 0) | |
{ | |
JsonString.Append("["); | |
for (int i = 0; i < ds.Tables[0].Rows.Count; i++) | |
{ |