This guide uses NetworkManager and firewalld. Both of these are installed and used by default on current versions of Red Hat Enterprise Linux and Fedora.
First, test that NetworkManager is in use:
# nmcli
cmake_minimum_required(VERSION 3.28) | |
project(untitled C ASM) | |
set(CMAKE_CXX_STANDARD 17) | |
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreaded "") | |
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL "") | |
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebug "") | |
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebugDLL "") |
/* MIT License | |
* | |
* Copyright (c) namazso 2018 | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
{ | |
"match": [ | |
{ | |
"host": [ | |
"matrix.yourdomain.com" | |
], | |
"path": [ | |
"/_matrix/media/*/download/*/*", | |
"/_matrix/media/*/download/*/*/*", | |
"/_matrix/media/*/thumbnail/*/*" |
// Copyright (c) 2022 namazso <admin@namazso.eu> | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in all |
#define _CRT_SECURE_NO_WARNINGS | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
enum { kSectorSize = 512 }; |
#define _CRT_SECURE_NO_WARNINGS | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdint.h> | |
#include <stdio.h> | |
/* while these are standard C functions used properly, your platform may require additional macros or | |
* settings to enable proper handling of files larger than 2 or 4 GB */ | |
uint64_t large_getsize(FILE* fp) | |
{ | |
fseek(fp, 0, SEEK_END); |
meta: | |
id: coff | |
title: Common Object Format File | |
file-extension: | |
- obj | |
license: CC0-1.0 | |
ks-version: 0.9 | |
endian: le | |
doc-ref: https://wiki.osdev.org/COFF | |
seq: |
{ | |
"commandline": "cmd /c \"set MSYSTEM=MINGW32 && set LOGINSHELL=bash && C:\\msys64\\usr\\bin\\bash.exe --login\"", | |
"name": "MSYS2 MinGW 32-bit", | |
"icon": "C:\\msys64\\mingw32.ico" | |
}, | |
{ | |
"commandline": "cmd /c \"set MSYSTEM=MINGW64 && set LOGINSHELL=bash && C:\\msys64\\usr\\bin\\bash.exe --login\"", | |
"name": "MSYS2 MinGW 64-bit", | |
"icon": "C:\\msys64\\mingw64.ico" | |
}, |