Skip to content

Instantly share code, notes, and snippets.

View fxoz's full-sized avatar
🟡
Busy

Felix Orosz fxoz

🟡
Busy
View GitHub Profile
@fxoz
fxoz / SFML-CMakeLists.txt
Last active April 21, 2025 14:32
My CMake configuration for SFML 2D/3D development in C++ on Windows
set(SFML_TARGETS sfml-graphics sfml-window sfml-system sfml-audio sfml-network)
cmake_minimum_required(VERSION 3.15)
project(MyNewGame CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(GIT_EXECUTABLE "C:/Program Files/Git/bin/git.exe")
include(FetchContent)
@fxoz
fxoz / curl-pia-proxy.md
Last active July 12, 2025 21:18
cURL with Private Internet Access SOCKS5 proxy
@fxoz
fxoz / quiz.cpp
Created August 4, 2025 22:25
WiSe 2023-24 - Aufg. 4 (Quiz)
#include <fstream>
#include <iostream>
#include <vector>
#include <iomanip>
#include <sstream>
#include <string>
class Frage {
public:
std::string _frage;
@fxoz
fxoz / fahrzeuge.cpp
Last active August 5, 2025 14:17
WiSe 2024-25 - Aufgabe 3 (OOP) - Autos/Fahrzeuge/Garage
#include <iostream>
#include <vector>
#include <memory>
class Motor {
private:
int leistungPs;
std::string typ;
public:
Motor(int ps, const std::string& t) : leistungPs(ps), typ(t) {};
@fxoz
fxoz / cities.cpp
Created August 5, 2025 14:48
WiSe 2024-25 - Aufg. 4 I/O (Städte)
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
long long printCitiesFromCountry(const std::string& filename, const std::string& country) {
std::ifstream file(filename);
if (!file) {
std::cerr << "File opening error\n";
@fxoz
fxoz / produkt.cpp
Created August 5, 2025 16:23
WiSe 2023-24 - Aufg. 3 (Polymorphie) - Produktverwaltung
#include <iostream>
#include <string>
class Produkt {
protected:
int _id;
std::string _beschreibung;
double _preis;
public:
Produkt(int id, std::string beschr, double preis) : _id(id), _beschreibung(beschr), _preis(preis) {};
@fxoz
fxoz / analyzeNumbers.cpp
Created August 5, 2025 16:26
WiSe 2023/24 - Aufg. 6‼️Eingereicht von Tim
#include <iostream>
#include <map>
#include <algorithm>
#include <sstream>
void analyzeNumbers() {
std::map<int, int> map{};
std::string input{};
try {
@fxoz
fxoz / wordcount.cpp
Created August 5, 2025 17:08
SoSe 23 Aufg. 6‼️Eingereicht von Tim
#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
#include <sstream>
void wordcount(const std::string& text) {
std::stringstream ss(text);
std::map<std::string, unsigned> map;
@fxoz
fxoz / server.cpp
Created August 5, 2025 18:00
Simple Server C++
#include <iostream>
#include <unistd.h>
#include <arpa/inet.h>
#define MAX_BUFFER_SIZE 1024
#define PORT 8081
int main() {
std::cerr << "Hello!\n";
@fxoz
fxoz / uvicorn-ultra-performance.md
Last active August 16, 2025 12:25
Uvicorn 24x (realistically 10-12x) Performance Arguments (Windows 11, 12-thread CPU, Python 3.13)

uvicorn 24x (realistically 10-12x) Performance Arguments

uv run uvicorn main:app --log-level critical --workers 8 --http httptools --no-access-log --no-use-colors --proxy-headers

‼️Results may vary extremely depending on OS, hardware and various other factors.

‼️The benchmark I used ..\..\Downloads\hey.exe -n 1000 -z 5s http://127.0.0.1:8000 is quite theoretical and I used a very simple Hello world! script, see below.