Skip to content

Instantly share code, notes, and snippets.

View firas-jolha's full-sized avatar
😃
Going

Firas Jolha firas-jolha

😃
Going
  • Russia/Innopolis
View GitHub Profile
/* create a file to act as a disk and format the file system residing on the disk */
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char *argv[]){
int i, fd;
@firas-jolha
firas-jolha / ex1_test.sh
Last active November 7, 2023 08:57
lab10.os.2023
mkdir folder1
echo > f1.txt
echo > f2.txt
ls folder1
cat f1.txt
echo "Hello" >> f2.txt
touch f1.txt
rm f1.txt
chmod u=w folder1
rm -r folder1
@firas-jolha
firas-jolha / input.txt
Created October 29, 2023 12:08
lab09.os.2023
W337 R490 R194 R973 R151 R425 W722 R816 W331 W760 W864 R53 R416 W170 W829 W434 W181 R731 R86 R544 R29 R559 R629 R411 W365 W368 W802 W962 R529 R833 W8 R435 R564 W94 R64 W695 W654 R913 R867 R679 W129 R773 W158 R231 W477 R118 W825 W976 R616 R395 R715 R870 W229 R687 R20 R160 R543 W231 R977 W792 R942 W680 W81 R257 R314 R374 W354 W522 W464 R410 R462 W311 W82 W648 R299 R604 W588 R527 R131 W48 R32 W682 R295 W832 W131 W35 W246 R148 R256 R970 W510 W668 R305 W356 W265 R5 R581 R436 W411 R864 R59 R444 R603 R392 R778 R42 W91 R740 W229 W774 R6 R253 R729 R182 R649 R666 R313 R198 W65 W540 W392 W420 R132 W623 W155 R119 W781 R263 R752 R385 R809 W906 R790 R270 W960 R983 R881 R320 W122 W764 W861 R806 R555 R665 R191 R160 R192 R304 W129 R586 R207 W635 R300 R776 W281 W301 R724 W619 R64 R627 W934 W943 R380 W521 R910 W67 W902 W863 R500 R140 W227 R33 W51 W707 W523 W596 W572 R816 W715 W314 R843 W861 R694 W996 R850 W945 W592 W699 R912 R284 R361 W518 R529 R850 R4 W118 R248 W976 R827 W412 R586 R817 W305 R561 R731 R877 R450 R988 W563 R901 R
@firas-jolha
firas-jolha / data.txt
Last active October 15, 2023 13:58
os-lab06-2023
idx at bt
0 5 2
1 7 6
2 20 3
3 3 8
4 2 4
5 3 1
6 10 6
@firas-jolha
firas-jolha / .wslconfig
Last active January 21, 2023 08:17
Configuring HDP Sandbox resources via .wslconfig for Docker in Windows
# NOTE: This should be stored in %UserProfile% folder which is your home folder c:/Users/<Username> in Windows
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB
# Sets the VM to use four virtual processors
processors=4