Skip to content

Instantly share code, notes, and snippets.

View ad1992's full-sized avatar

Aakansha Doshi ad1992

View GitHub Profile
@ad1992
ad1992 / find_duplicates.js
Last active April 26, 2024 07:59
Find duplicates in a file
const fs = require("fs");
const filePath = process.argv[2];
if (!filePath) {
console.error("Please provide a file path");
process.exit(1);
}
const data = fs.readFileSync(filePath, "utf8");
@ad1992
ad1992 / checkout_forked.sh
Created June 6, 2018 16:07
Fetch a branch from someone's fork on github
echo "moving to current directory"
cd $PWD
echo -n "Enter name of the user whose forked branch you want to checkout"
read username
echo -n "Enter the name of the repository"
read repo