Skip to content

Instantly share code, notes, and snippets.

View aakashb95's full-sized avatar
🎯
Focusing

Aakash Bakhle aakashb95

🎯
Focusing
View GitHub Profile
@aakashb95
aakashb95 / setup.sh
Created January 22, 2025 18:33
MacOS setup
#!/bin/bash
echo "Setting up development environment for macOS..."
# Install Homebrew if not installed
if ! command -v brew &> /dev/null; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add Homebrew to PATH for Apple Silicon Macs
@aakashb95
aakashb95 / setup.sh
Last active January 22, 2025 18:35
linux basic setup
#!/bin/bash
# Install packages
sudo apt update
sudo apt install -y zsh fzf bat openssh-server
# Install NVIDIA drivers
echo "Installing NVIDIA drivers..."
sudo ubuntu-drivers autoinstall
order_array=[]
order_id=''
page = 1
try {
while(true){
var xmlHttp = new XMLHttpRequest()
xmlHttp.open( "GET", "https://www.swiggy.com/dapi/order/all?order_id="+order_id, false )
xmlHttp.send( null )
resText=xmlHttp.responseText
var resJSON = JSON.parse(resText)
IGNORE: part, desktop
music: mp3, aac, flac, ogg, wma, m4a, aiff, wav, amr
videos: flv, ogv, avi, mp4, mpg, mpeg, 3gp, mkv, ts, webm, vob, wmv
pictures: png, jpeg, gif, jpg, bmp, svg, webp, psd, tiff
archives: rar, zip, 7z, gz, bz2, tar, tgz, xz, iso, cpio
documents: txt, pdf, doc, docx, odf, xls, xlsv, xlsx, ppt, pptx, ppsx, odp, odt, ods, rtf
books: mobi, epub, chm
debpackages: deb
programs: exe, msi
rpmpackages: rpm
@aakashb95
aakashb95 / gdrive_folder_download.sh
Created January 19, 2021 13:28
Download shared folder from google drive using terminal
#!/bin/bash
fileid="$1"
filename="$2"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
## run chmod +x gdrive_folder_download.sh
## ./gdrive_folder_download.sh <fileID> <fileName>
@aakashb95
aakashb95 / whatsapp_extract.py
Last active January 2, 2021 15:20
Whatsapp group chat to excel/csv. Run python whatsapp_extract.py <filename>.txt
#Export required chat as text without media
#This supports group chats to tabular format where you have all contacts of people in the group
#todo: add regex for numbers as authors
import pandas as pd
import os
import numpy as np
import re
import sys
@aakashb95
aakashb95 / cdac_zoom.py
Created September 2, 2020 07:39
join CDAC zoom calls from terminal
# Needs geckodriver
# run: python cdac_zoom.py <link>
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
import sys, time
link = sys.argv[1]