Skip to content

Instantly share code, notes, and snippets.

View aldrinjenson's full-sized avatar

Aldrin Jenson aldrinjenson

View GitHub Profile
#include<stdio.h>
#include<stdlib.h>
struct rrs {
int pid, atime, btime, tempb, ctime, tatime, wtime;
short isTraversed;
};
void main () {
// 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;
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active December 11, 2025 05:45
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@miguelmota
miguelmota / fingerprint.sh
Created August 19, 2020 20:52
Arch linux ThinkPad T480 fingerprint reader
yay -S python-validity-git
sudo validity-sensors-firmware
sudo systemctl start python3-validity
fprintd-enroll
@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active December 9, 2025 18:40
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@leober-ramos33
leober-ramos33 / youtube-block-ads.txt
Last active December 6, 2025 08:28
Block Ads in YouTube (uBlock Origin)
youtube.com##.ad-container
youtube.com###player-ads
youtube.com##.ytp-ad-overlay-container
youtube.com#@#.overlay-ads
youtube.com#@#.ddb
youtube.com###feed-pyv-container
youtube.com###feedmodule-PRO
youtube.com###homepage-chrome-side-promo
youtube.com###merch-shelf
youtube.com###pla-shelf
@nwade
nwade / README.md
Last active November 14, 2025 04:39
Remove SentinelOne Agent - macOS High Sierra/Mojave

Warning - use at your own risk

Remove SentinelOne agent from Mac

  1. Boot into Recovery Mode by holding Cmd+R during reboot
  2. Open Terminal from top menubar
  3. Run /Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility to open Disk Utility
  4. If your startup disk is encrypted, use Disk Utility to mount it
  5. In Terminal, run chroot /Volumes/Macintosh\ HD
  6. Execute the deletion commands or script
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active November 22, 2025 13:09
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.