Skip to content

Instantly share code, notes, and snippets.

View jadiagaurang's full-sized avatar
🎯
Focusing

Gaurang Jadia jadiagaurang

🎯
Focusing
View GitHub Profile
// Find all Send to Card Buttons
let arrayElements = document.querySelectorAll(".coupon-action.button-blue.sc-send-to-card-action");
// Declare a Looping Function to Delay Click Event!
function loopThroughNodes(arrayElements) {
let intDelay = 2000; // 2 Seconds Timeout to
for (var i = 0; i < arrayElements.length; i++) {
(function (i) {
let timeoutID = window.setTimeout(function () {
@jadiagaurang
jadiagaurang / pfx_to_pem.ps1
Created May 12, 2022 00:44
Convert PFX files from a folder to PEM using OpenSSL
# Clear Terminal
Clear-Host
# Declare iVars
$pfxPasswd = "scott/tiger"
$root_directory = "C:\SSLs"
$files = Get-ChildItem $root_directory -Filter *.pfx
# Change Directory to RootDirectory
Set-Location $root_directory
--To Add Assembly to MSSQL
EXEC sp_configure 'clr strict security'; --Check Current Config
--Enable
EXEC sp_configure 'clr strict security', 1;
RECONFIGURE;
--Disable
EXEC sp_configure 'clr strict security', 0;
RECONFIGURE;
@jadiagaurang
jadiagaurang / ENCRYPT-DECRYPT.sql
Created September 13, 2020 02:47
ENCRYPT-DECRYPT Varbinary
DECLARE @CC VARBINARY(1000);
SET @CC = ENCRYPTBYPASSPHRASE('secretcode','1212704331100');
SELECT CONVERT(VARCHAR(100), DECRYPTBYPASSPHRASE('secretcode', @CC));