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
| # Install and enable apache2 dav features | |
| sudo apt install -y apache2 | |
| sudo a2enmod dav dav_fs dav_lock | |
| sudo systemctl restart apache2 | |
| # Create your shared directory with perms | |
| sudo mkdir -p /var/www/webdav | |
| sudo chown -R www-data:www-data /var/www/webdav |
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
| // Allow "your_user" to mount drives without authentication | |
| polkit.addRule(function (action, subject) { | |
| const isAction = action.id == "org.freedesktop.udisks2.filesystem-mount" || | |
| action.id == "org.freedesktop.udisks2.filesystem-unmount" || | |
| action.id == "org.freedesktop.udisks2.filesystem-mount-other-seat"; | |
| if (isAction && subject.user == "your_user") { | |
| return polkit.Result.YES; | |
| } |
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
| Computer Information: | |
| Manufacturer: Gigabyte Technology Co., Ltd. | |
| Model: B150M-D3H-CF | |
| Form Factor: Desktop | |
| No Touch Input Detected | |
| Processor Information: | |
| CPU Vendor: GenuineIntel | |
| CPU Brand: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | |
| CPU Family: 0x6 |
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> | |
| static char *read_stdin(void) | |
| { | |
| size_t cap = 4096, /* Initial capacity for the char buffer */ | |
| len = 0; /* Current offset of the buffer */ | |
| char *buffer = malloc(cap * sizeof(char)); |
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> | |
| static char *read_stdin(void) | |
| { | |
| size_t cap = 4096, /* Initial capacity for the char buffer */ | |
| len = 0; /* Current offset of the buffer */ | |
| char *buffer = malloc(cap * sizeof(char)); | |
| int c; |