This file contains 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 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 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
export * from "https://deno.land/x/nano_jsx@v0.0.30/mod.ts"; | |
import { | |
Helmet, | |
renderSSR as nanoRender, | |
} from "https://deno.land/x/nano_jsx@v0.0.30/mod.ts"; | |
import { setup } from "https://esm.sh/twind@0.16.16"; | |
import { |
This file contains 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 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; |