Skip to content

Instantly share code, notes, and snippets.

View anubhavranjan's full-sized avatar
👨‍💻
Happily Coding!

Anubhav Ranjan anubhavranjan

👨‍💻
Happily Coding!
View GitHub Profile
@anubhavranjan
anubhavranjan / files.js
Created May 1, 2023 09:04
Azure DevOps Commit Files
let count = $(".repos-changes-viewer").childElementCount;
let files = [];
for (let i = 0; i < count; i++) {
files.push($(".repos-changes-viewer").children[i].children[0].children[1].children[1].children[1].textContent);
//console.log($(".repos-changes-viewer").children[i].children[0].children[1].children[1].children[1].textContent);
}
console.log(files.join('\n'))
@anubhavranjan
anubhavranjan / GitHub Actions
Created July 21, 2022 15:10
SFTP Deployment using GitHub Actions
name: CI-SFTP
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
@anubhavranjan
anubhavranjan / nginxproxy.md
Created June 27, 2018 15:05 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@anubhavranjan
anubhavranjan / Troubleshoot
Created November 29, 2016 03:51
System.Runtime.dll
Error:
Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Solution
Install-Package Microsoft.NETCore.UniversalWindowsPlatform