Skip to content

Instantly share code, notes, and snippets.

View debdutgoswami's full-sized avatar
🏡
Working remotely

Debdut Goswami debdutgoswami

🏡
Working remotely
View GitHub Profile
@debdutgoswami
debdutgoswami / vaccine.py
Created November 9, 2021 08:09
Script to send email to the recipients when ever there is slot available for vaccine
import datetime as dt
import requests
from smtplib import SMTP
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import time
import pandas as pd
from requests.sessions import session
SENDER_EMAIL = "sender-email@mail.com"
@debdutgoswami
debdutgoswami / commands.sh
Created December 23, 2020 13:49
One Place for all commonly used docker commands
# build an image
docker build .
# build docker image with a tag (recommended)
docker build -t <tag> .
# run an image
docker run <image/tag>
# run an image in background
@debdutgoswami
debdutgoswami / create-assignment.sh
Last active December 19, 2020 10:53
This is simple shell script written to help create PDF from all of the java codes in a directory. All you need to do is pass in your directory path and target name and that's it.
#!/bin/bash
## Usage:
## `./create-assignment.sh <directory> <target> <extension>`
## Example:
## `./create-assignment.sh Assignment-1/Day-1 23_Hello_world_A7 java`
directory=$1
target=$2
extension=$3
@debdutgoswami
debdutgoswami / README.md
Last active December 24, 2020 07:44
Moodle using docker-compose
@debdutgoswami
debdutgoswami / README.md
Created April 6, 2020 21:35
Cloud Function Python code to store emails in a Google Sheet.

Subscribe with Email

This is simple implementation for a mini project wherein there is an option for the users to subscribe to a mailing list. This directly adds the user's email to Google Sheets.


@debdutgoswami
debdutgoswami / automaticdm.py
Last active April 4, 2020 09:30
Python script for sending out messages to various users. Just create a txt file with a list of usernames and then simply run the script. Note that this does not use Twitter API.
# imports
from selenium.webdriver import Chrome
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
import time
# TWITTER
URL = "https://twitter.com"
# message