Skip to content

Instantly share code, notes, and snippets.

View asifajrof's full-sized avatar
😪
ghummm.....

Asif Ajrof asifajrof

😪
ghummm.....
  • Dhaka, Bangladesh
View GitHub Profile
@asifajrof
asifajrof / download_gofile.sh
Last active February 11, 2024 04:55 — forked from shawnli87/download_gofile.sh
Bash script to download files from gofile.io
#!/bin/bash
url="$1"
file_names="${@:2}"
read -ra file_names_list <<< "$file_names"
#prompt for url if not provided
until [ ! -z "$url" ] ; do
read -p "url=" url
@asifajrof
asifajrof / fetch.c
Last active January 22, 2022 12:21 — forked from Tahmeed156/fetch.c
Modification of a test file taken from https://www.cs.virginia.edu/~cr4bd/4414/S2021/lottery.html for `xv6` scheduling
#include "types.h"
#include "user.h"
#include "param.h"
#include "pstat.h"
#undef USE_YIELD
#define MAX_CHILDREN 32
#define LARGE_TICKET_COUNT 100000
#define MAX_YIELDS_FOR_SETUP 100