Skip to content

Instantly share code, notes, and snippets.

View vlOd2's full-sized avatar

vlOd vlOd2

View GitHub Profile
@vlOd2
vlOd2 / Dockerfile
Created August 30, 2026 22:14
Harmony Dockerfile
FROM node:lts-alpine3.24 AS builder
RUN apk add --no-cache \
build-base \
g++ \
cairo-dev \
pango-dev \
jpeg-dev \
giflib-dev \
librsvg-dev \
@vlOd2
vlOd2 / dynarray.h
Last active June 25, 2026 19:50
Simple dynamic array implementation in C
/*
MIT License
Copyright (c) 2026 vlOd
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
@vlOd2
vlOd2 / DotnetBuildWrapper.py
Created December 6, 2025 15:36
Wrapper for dotnet build intended for Kate
#!/bin/python3
import argparse
import subprocess
import os
import os.path
import re
import sys
PROJECT_PATH_PATTERN = re.compile(r"^(.+?) -> (.+)$")
@vlOd2
vlOd2 / gist:9202e85cfcecbda23de15a606b13176d
Last active December 21, 2023 21:09
ClassiCube Client important API documentation
C: Client
S: Server
== ClassiCube Login ==
C: Makes blank GET request to https://www.classicube.net/api/login/
S: Server responds with {"authenticated":false,"errors":[],"token":<random token>,"username":null} and sets a useless session cookie
C: Makes POST request to https://www.classicube.net/api/login/ with the useless session cookie and the following post data: username=<username>&password=<password>&token=<random token from previos response>&login_code=<login code (if required) or empty>
S: Replies with either {"authenticated":true,"errors":[],"token":"","username":"<username>"} (success) or {"authenticated":true,"errors":[<error1>,<error2> etc],"token":"","username":"<username>"} (failure)
S: Sets the proper session cookie on success
@vlOd2
vlOd2 / gist:1c3c15ac559c30b90cde709d84b39e60
Last active September 15, 2026 03:39
Install .NET Framework 4.0 and 4.5 on VS 2022
This guide explains how to install .NET Framework 4.0 and 4.5 on VS 2022, as it doesn't support these versions out of the box.
Microsoft says these versions are outdated but many people still need them to maintain legacy apps.
Requirements:
- VS 2022
- 7-zip (I haven't tested WinRar)
Notes:
- When .NET 4.0 is mentioned, it means .NET Framework 4.0
- When it's mentioned to open as an archive or un-zip, use 7-zip