Skip to content

Instantly share code, notes, and snippets.

View aayushdutt's full-sized avatar
there's light

Aayush Dutt aayushdutt

there's light
View GitHub Profile
@aayushdutt
aayushdutt / flac_to_mp3_concurrent.sh
Created June 2, 2023 20:55
A bash script to concurrently convert flac files to mp3
#!/bin/bash
num_concurrent=6
source_folder="<path to flac directory>"
destination_folder="<path to output mp3>"
if [ ! -d "$destination_folder" ]; then
mkdir -p "$destination_folder"
fi
@aayushdutt
aayushdutt / scrape_feynman_lectures_playlist.sh
Last active August 19, 2023 08:26
Bash script to scrape Feynman Lecture Recordings Playlist from https://www.feynmanlectures.caltech.edu/flptapes.html
#!/bin/bash
# Number of concurrent downloads
num_concurrent_downloads=9
# Function to perform curl request
perform_curl() {
local url=$1
local filename=$2
printf "\nDownloading: $filename from $url\n"
@aayushdutt
aayushdutt / cleartax-other-investments.js
Last active July 30, 2022 17:42
Capture dividend investments details from cleartax to an object to make it easier to find duplicates
const list = document.querySelector("#anyOtherDividendNarrationList > div > div.narration-items")
const rows = list.children
const getRowData = (row) => {
return {name: row.children[0].children[0].value, amount: row.children[1].children[0].value, date: row.children[2].children[0].value}
}
const res = []
Array.from(rows).forEach(row => res.push(getRowData(row)))
@aayushdutt
aayushdutt / docker-compose.yml
Last active May 3, 2020 07:03
A docker-compose file for creating Minecraft servers effortlessly
version: "3"
services:
minecraft:
image: itzg/minecraft-server
ports:
- "1000:25565"
volumes:
- "./mc:/data"
environment:
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;