Skip to content

Instantly share code, notes, and snippets.

View aldrinjenson's full-sized avatar

Aldrin Jenson aldrinjenson

View GitHub Profile
@aldrinjenson
aldrinjenson / wifi-crack.sh
Created January 19, 2023 21:26
Custom script wo automate wifi cracking in kali linux
#!/bin/sh
# Script to automate wifi cracking
# requires kali linux or airmon-ng tools
# written to run with dmenu. (apt install dmenu)
echo "Scanning and identifying available wifi networks. Choose from dmenu prompt"
availableWifiSsids=$(nmcli -t -f ssid d wifi)
ssid=$(echo "$availableWifiSsids" | dmenu -p "Choose an SSID:")
if [ -z "$ssid" ]; then
@aldrinjenson
aldrinjenson / rentRide.js
Last active October 20, 2022 10:34
Car Ride booking
const CHARGE_PER_KM = 8
const MIN_RATING = 4
let counter = 0
class Driver {
constructor({ name = '', ssn = Math.random(), rating = 2, distance = 49 }) {
this.name = name
this.ssn = ssn
this.rating = rating
const BREAK_DURATION = 1
const INTERVIEW_DURATION = 2
const START_TIME = 9
const BREAK_START_HOUR = 14
const MEETING_END_TIME = 18
class Room {
currTime = START_TIME;
constructor(roomName = '') {
this.roomName = roomName
// Program to input an array of processes with their arrival times & burst times, and schedule them using Round Robin CPU Scheduling
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
#define MAX_LENGTH 10
typedef struct
{
int id;
int arrivalTime;
// Program to input an array of processes with their arrival times & burst times, and schedule them using to Shortest Job First CPU Scheduling
#include <stdio.h>
#include <limits.h>
typedef struct
{
int id;
int arrivalTime;
int burstTime;
int completionTime;
@aldrinjenson
aldrinjenson / stateDistrictAPI.js
Created September 4, 2021 07:22
Custom API for states and districts of India. Example usage given at the bottom
const districts = {
"Andhra Pradesh": [
"Anantapur",
"Chittoor",
"East Godavari",
"Guntur",
"Kadapa",
"Krishna",
"Kurnool",
"Nellore",