View Delhi.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Download_from_LectureNotes.js
// 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(); | |
} |
View Create_Self_Signed_Certificate.ps1
<# | |
.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 |
View Sample_Script_to_unblock_dlls.ps1
$TargetFolder = "D:\DevTest\SampleExecutable" | |
Get-ChildItem -Recurse $TargetFolder |%{ | |
Write-host Unblocking $_.FullName | |
gci $_.FullName | Unblock-File | |
} |
View bipul.in_Bulk_Email_from_Powershell.ps1
<# | |
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" |
View bipul.in_Sample_SP_CAML_Query.xml
<View> | |
<Query> | |
<Where> | |
<Eq> | |
<FieldRef Name="Title" /> | |
<Value Type="Text">Test</Value> | |
</Eq> | |
</Where> | |
<OrderBy> | |
<FieldRef Name="Title" Ascending="True" /> |
View bipul.in_Trunckate_Database_Logs.sql
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. |