Skip to content

Instantly share code, notes, and snippets.

View vijayganeshpk's full-sized avatar

Vijay Ganesh P K vijayganeshpk

View GitHub Profile
@vijayganeshpk
vijayganeshpk / OracleDynamicParameters.cs
Last active February 8, 2024 09:04
OracleDynamicParameters class for Dapper
using Dapper;
using Oracle.ManagedDataAccess.Client;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
public class OracleDynamicParameters : Dapper.SqlMapper.IDynamicParameters {
private static Dictionary<SqlMapper.Identity, Action<IDbCommand, object>> paramReaderCache = new Dictionary<SqlMapper.Identity, Action<IDbCommand, object>>( );

Keybase proof

I hereby claim:

  • I am vijaysg on github.
  • I am vganesh (https://keybase.io/vganesh) on keybase.
  • I have a public key ASC_6LdHz3RaDz2_jQCWF8UXOrPj4dMpFk6TH2hqJmLDigo

To claim this, I am signing this object:

@vijayganeshpk
vijayganeshpk / gcloud-auto-update.cmd
Created April 4, 2019 00:39
Google cloud SDK auto update - For running from scheduled task
@ECHO OFF
SETLOCAL
FOR /F "delims=" %%i in ( '""C:\SDKs\Google\CloudSDK\google-cloud-sdk\bin\gcloud.cmd"" components copy-bundled-python' ) DO (
SET CLOUDSDK_PYTHON=%%i
)
CALL gcloud components update --quiet
@vijayganeshpk
vijayganeshpk / New Jwt Secret
Created April 3, 2022 04:25
Snippet for creating new JWT Secrets
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"