This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#------------------------------------------------ | |
# Script name: sqlitedbtest1.py | |
# | |
# Description: | |
# This script is a good test program for SQLite DB | |
# functionality. | |
# | |
# Parameters: | |
# P1= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using IbmiXmlserviceStd; | |
namespace IbmiXmlServiceCommandSample1Cs | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder