Skip to content

Instantly share code, notes, and snippets.

View Force67's full-sized avatar
๐Ÿ‘‹
Looks like you've found me.

Vincent Hengel Force67

๐Ÿ‘‹
Looks like you've found me.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am force67 on github.
* I am forcez (https://keybase.io/forcez) on keybase.
* I have a public key ASAdpwn89HvWyAc2BnLQwYHjrUgZGRJJuc6di9cQ9-g4pAo
To claim this, I am signing this object:
@Force67
Force67 / gist:38e3c96159b8b2c4ba2410007d9d7ad6
Created September 28, 2019 19:38
Send a command to the razer driver
bool drvSendMsg(const void *src, size_t size)
{
if (size > 0x69F8u)
return false;
auto* handle = OpenFileMappingW(0xF001Fu, 0, L"Global\\{74164FAD-E73C-4FA1-A9AA-70813315ED9C}");
if (handle) {
auto* data = MapViewOfFile(handle, 0xF001Fu, 0, 0, 0x69F8ui64);
if (data) {
@Force67
Force67 / dotnettweaks.lua
Created April 15, 2021 22:19
Premake5 dotnet core application application name fix.
local dotnetbase = premake.vstudio.dotnetbase
premake.override(dotnetbase, 'assemblyName', function(base, cfg)
base(cfg)
if dotnetbase.isNewFormatProject(cfg) then
_p(2,'<AssemblyName>%s</AssemblyName>', cfg.buildtarget.basename)
end
end)
@Force67
Force67 / semver.h
Created December 7, 2022 11:47
Semantic version in 64 bit int.
// Copyright (C) 2022 Vincent Hengel.
#pragma once
#include <cstdint>
#include <string>
#include <string_view>
#include <tuple>
namespace Resources
{
@Force67
Force67 / example.manifest
Created April 28, 2023 20:49
Example ST script resource
[Resource]
name = "Example Resource"
version = 1.0.0
apiset = 1.0.0
description = "Official skyrim together example resource"
keywords = ["example", "resource"]
license = "MIT"
repository = ""
homepage = "https://skyrim-together.com/"
entrypoint = "main.lua"
@Force67
Force67 / 3dp.nix
Created June 6, 2024 21:26
Cura 5.7.x on NixOS
{
inputs,
pkgs,
lib,
...
}:
# Based off the excellent post on reddit here: https://www.reddit.com/r/NixOS/comments/19b7k5e/how_to_properly_install_pkgs_to_the_latest_version/
# This is updated to work with nix 24.05, and also installs a desktop entry so cura can be found in kde start menu.
let
@Force67
Force67 / flake.nix
Created September 4, 2024 09:55
IDA Pro on NixOS
{
description = "A Nix flake for IDA Pro with libGL, GTK, and Qt/XCB support";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";