Skip to content

Instantly share code, notes, and snippets.

name: Bipul.App.Web.NextJs
on:
push:
paths:
- 'Bipul.App/Bipul.App.Web.NextJs/**'
branches:
- main
workflow_dispatch:
<#
Script for bulk emailing by getting data from CSV
Author: Bipul Raman
#>
$MailingList = Import-Csv E:\MailingList.csv
#SMTP Server and port may differ for different email service provider
$SMTPServer = "smtp.gmail.com"
$SMTPPort = "587"
@BipulRaman
BipulRaman / Viva_Learning_Resources.md
Last active November 18, 2021 04:18
Microsoft Viva Learning Resources - Docs and Videos.
<#
.SYNOPSIS
To install software in bulk
.DESCRIPTION
To install software in bulk through Chocolaty
.NOTES
Created by: Bipul Raman @BipulRaman
Modified by: Bipul Raman @BipulRaman
Modified: 30/06/2020 10:00 AM IST
.EXAMPLE
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BipulRaman
BipulRaman / Download_from_LectureNotes.js
Last active August 22, 2020 07:27
Download from LectureNotes
// Make sure all the pages are loaded before you run the script from browser console.
var images = Array.from(document.getElementsByTagName('main')[0].getElementsByTagName('img'));
console.log(images);
images.forEach(eachImg => {
if (eachImg.alt.startsWith('page')) {
var download = document.createElement('a');
download.href = eachImg.src;
download.download = eachImg.alt + '.png';
download.click();
}
@BipulRaman
BipulRaman / Create_Self_Signed_Certificate.ps1
Last active April 6, 2019 03:28
Create Self Signed Certificate Using PowerShell
<#
.Synopsis
Script to Create Self Signed Certificate.
.DESCRIPTION
Script to Create Self Signed X.509 Certificate and add to trusted root. This certificate can be used for certificate based authnetication in Azure App Registration.
This Script has been released under the MIT (OSI) License as per the LICENSE file stored here: https://github.com/BipulRaman/PowerShell/blob/master/LICENSE
.NOTES
Created by: @BipulRaman
Modified by: @BipulRaman
Modified: April 5, 2019
@BipulRaman
BipulRaman / Sample_Script_to_unblock_dlls.ps1
Last active April 4, 2019 05:45
Sample_Script_to_unblock_dlls.ps1
$TargetFolder = "D:\DevTest\SampleExecutable"
Get-ChildItem -Recurse $TargetFolder |%{
Write-host Unblocking $_.FullName
gci $_.FullName | Unblock-File
}
USE WSS_Content_DB
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE WSS_Content_DB
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (WSS_Content_DB_Log, 1);
GO
-- Reset the database recovery model.