Skip to content

Instantly share code, notes, and snippets.

View rokobuljan's full-sized avatar

Roko C. Buljan rokobuljan

View GitHub Profile
@amdervis
amdervis / intel-vaapi-setup.sh
Last active June 25, 2025 09:38
Intel VA-API Driver Auto-Installer
#!/bin/bash
# Intel VA-API Installer with Auto Driver Detection and Environment Config
set -e
# Colors
RED='\033[0;31m'
GRN='\033[0;32m'
YLW='\033[1;33m'
@rokobuljan
rokobuljan / qson.js
Created November 20, 2023 02:02
Concurrently (simultaneously) update JSON files via queue mechanism. [nodejs] [js] [json]
import fs from "fs-extra";
/**
* Concurrently (simultaneously) update JSON files via queue
* @example
* ```js
* import { QSON } from "./qson.js";
* const qconf = new QSON("./config.json");
*
* // Clear current file's data
@emidoots
emidoots / ramblings.md
Last active December 25, 2024 04:39
Because cross-compiling binaries for Windows is easier than building natively

Because cross-compiling binaries for Windows is easier than building natively

I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.

The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.

The source of truth for the 'open source' C#, C++, Rust, and other Windows SDKs is proprietary

You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.

@myyc
myyc / arch_linux_install_guide.md
Last active July 3, 2025 21:07
Arch Linux setup with all the good stuff (Plymouth, encryption, systemd-boot etc.)

I've used this guide through 2024 despite archinstall and it's still more or less valid. After having used archinstall twice and having encountered obscure issues (luksOpen taking ages, or slow reboots in general) I switched back to a manual setup and it seems to be almost as straightforward.

Always refer to the official guide in case of doubt.

First things first

One important thing first: the environment you will encounter on the live image is very different from what you'll end up installing, some things are significantly easier there: e.g. wifi tools come

<?php
$secret = 'secret key';
list($hashAlgo, $signature) = explode('=', $_SERVER['HTTP_X_HUB_SIGNATURE']);
$payload = $HTTP_RAW_POST_DATA ?: file_get_contents('php://input');
$compute = hash_hmac($hashAlgo, $payload, $secret);
$valid = hash_equals($compute, $signature);
if ($valid === false) {
@hofmannsven
hofmannsven / README.md
Last active June 15, 2025 00:37
Git CLI Cheatsheet