Skip to content

Instantly share code, notes, and snippets.

View ranisalt's full-sized avatar
🦊

Ranieri Althoff ranisalt

🦊
View GitHub Profile
@ranisalt
ranisalt / tibia-launcher-manifest.json
Created April 25, 2024 15:16
Tibia launcher manifest JSON schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Tibia launcher manifest",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"files": {
"type": "array",
Sun May 22 18:36:28 CEST 2022 INFO - initAID - Set AID from STEAM_COMPAT_APP_ID to '489830'
Sun May 22 18:36:28 CEST 2022 INFO - initAID - Set OSCDP to STEAM_COMPAT_DATA_PATH '/var/games/steam/steamapps/compatdata/489830'
Sun May 22 18:36:28 CEST 2022 INFO - loadLangFile - Language from command line is 'english'
Sun May 22 18:36:28 CEST 2022 INFO - loadLangFile - SYSTEMSTLCFGDIR is '/usr/share/steamtinkerlaunch'
Sun May 22 18:36:28 CEST 2022 INFO - loadLangFile - Command line language 'english' is no file - trying to find its absolute path
Sun May 22 18:36:28 CEST 2022 INFO - loadLangFile - Loading found system wide /usr/share/steamtinkerlaunch/lang//english.txt
Sun May 22 18:36:28 CEST 2022 INFO - getCurrentCommandline - No Proton in command line arguments 'waitforexitandrun /var/games/steam/steamapps/common/Skyrim Special Edition/SkyrimSELauncher.exe'
Sun May 22 18:36:28 CEST 2022 INFO - saveOrgVars - Storing some original variables to restore them later
Sun May 22 06:36:28 PM CEST 2022 INFO - emptyVars - E
@ranisalt
ranisalt / cache.cpp
Last active November 22, 2020 23:18
hand rolled fast pow() vs std::pow()
#include <algorithm>
#include <array>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <numeric>
#include <random>
#include <vector>
#include <chrono>
#include <iostream>
#include <numeric>
int main() {
using namespace std;
using namespace std::chrono;
constexpr auto reps = numeric_limits<unsigned>::max() >> 1;
{
@ranisalt
ranisalt / rocm-opencl-headers.patch
Created June 17, 2020 05:08
ROCm OpenCL Headers diff
diff --git a/CL/cl.h b/CL/cl.h
index f33f999..c62c0eb 100644
--- a/CL/cl.h
+++ b/CL/cl.h
@@ -891,6 +891,21 @@ typedef struct _cl_name_version {
#define CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP (1 << 4)
#define CL_DEVICE_ATOMIC_SCOPE_DEVICE (1 << 5)
#define CL_DEVICE_ATOMIC_SCOPE_ALL_DEVICES (1 << 6)
+
+/* cl_device_info */
@ranisalt
ranisalt / passwordcredential.ts
Last active September 4, 2019 01:48
react context webauthn
interface PasswordCredential {
type: 'password'
id: Readonly<string>
iconURL: Readonly<string>
name: Readonly<string>
password: Readonly<string>
}
@ranisalt
ranisalt / benchmark.js
Created August 31, 2019 06:50
node-argon2 benchmarks
const { Suite } = require('sandra')
const argon2 = require('../argon2')
const main = async () => {
const defaults = argon2.defaults
const password = 'password'
const hash = await argon2.hash(password)
const suite = new Suite('argon2')
suite.push('basic hash', argon2.hash, password)
@ranisalt
ranisalt / cerberus.py
Last active September 16, 2019 03:39
Cerberus, a Hades Canyon companion
import logging
import sys
from argparse import ArgumentParser, ArgumentTypeError
from string import hexdigits
from typing import Tuple
# CSS3 COLORS
COLOR_NAMES = {
'aliceblue': '#f0f8ff',
'antiquewhite': '#faebd7',
[tool.poetry]
name = "mtm"
version = "0.1.0"
description = ""
authors = ["Ranieri Althoff <ranisalt@gmail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.5"
rows = { git = "https://github.com/turicas/rows.git", branch = "feature/plugin-pdf", extras = ["pdf"] }
[tool.poetry]
name = "swartz"
version = "0.1.0"
description = ""
authors = ["Ranieri Althoff <ranisalt@gmail.com>"]
[tool.poetry.dependencies]
python = "*"
dataclasses = "^0.6.0"
tornado = {version = "^5.0", optional = true}