Skip to content

Instantly share code, notes, and snippets.

View rachejazz's full-sized avatar
:octocat:
Automating and hunting for loopholes

Divya Goswami rachejazz

:octocat:
Automating and hunting for loopholes
View GitHub Profile
@rachejazz
rachejazz / main.py
Last active March 14, 2022 21:28
Keka Reminder Telegram Bot. Is a telegram scheduler bot that can be used to send timely messages into chats/groups as desired
import logging
import pytz
import datetime
from telegram import Update
from telegram.ext import Updater, CommandHandler, CallbackContext
API_KEY = "API TOKEN"
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO
@rachejazz
rachejazz / neighbour2.c
Created July 24, 2020 18:38
This is process 2: He wants to finish the fight with his neighbour once and for all, thus gives the user the choice of action.
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
/*the tree is made to demonstrate some time lapse after the user inputs the action.
After the user input the process will TAKE SOMETIME to send the signal through shared memory route*/
@rachejazz
rachejazz / neighbour1.c
Last active July 25, 2020 11:16
This is process 1: He is annoying and will only stop once it receives a signal from his neighbour.
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
/*If he causes any problem, do a `kill -9 <Neighbour ID> on a separate terminal.*/