This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |