- There are three types of permissions in files and folders in unix
- Read (r)
- Write (w)
- Execute (x)
- And, there is a classification of users called UGO (explained bellow):
- U ~> User (usually, you)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Gets the webpage | |
| Converts the HTML to a readable HTML using readability | |
| Extracts the text and saves it to a text file. | |
| usage - python url_to_txt.py http://example.com | |
| """ | |
| from readability import Document | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urlparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include "lc4_memory.h" | |
| short unsigned int dest_register(struct row_of_memory* opcodeMatch) | |
| { | |
| short unsigned int ddd = (opcodeMatch->contents>>9 & 0b0000111) ; | |
| return ddd ; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "lc4_memory.h" | |
| struct row_of_memory* add_to_list (struct row_of_memory* head, | |
| short unsigned int address, | |
| short unsigned int contents) | |
| { | |
| /* allocate memory for a single node */ | |
| struct row_of_memory *new_row = malloc (sizeof(struct row_of_memory)) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "lc4_memory.h" | |
| #include <string.h> | |
| /* declarations of functions that must defined in lc4_loader.c */ | |
| FILE* get_file() | |
| { |