Skip to content

Instantly share code, notes, and snippets.

View vadi2's full-sized avatar

Vadim Peretokin vadi2

View GitHub Profile
@vadi2
vadi2 / keybase.md
Last active October 10, 2017 02:12

Keybase proof

I hereby claim:

  • I am vadi2 on github.
  • I am vadimp (https://keybase.io/vadimp) on keybase.
  • I have a public key ASD0RPbn-JorK9Kf7ptXl4E54kAJLt-V7AkLMpDqYZwHXQo

To claim this, I am signing this object:

{
[":)"] = "☺️",
[":("] = "🙁",
[":c"] = "☹️",
[":O"] = "😮",
[":*"] = "😗",
[";D"] = "😉",
[";)"] = "😉",
[":P"] = "😛",
[":/"] = "😕",
@vadi2
vadi2 / purge-luaossl.sh
Created October 12, 2019 09:34
Purge luaossl Luarocks install
# In case your luaossl rock installation in LuaRocks gets corrupted and you can't remove it due to missing files, do the following:
sudo mkdir -p /usr/local/share/lua/5.1/openssl/x509
sudo mkdir -p /usr/local/share/lua/5.1/openssl/ocsp
sudo mkdir -p /usr/local/share/lua/5.1/openssl/ssl
sudo mkdir -p /usr/local/lib/lua/5.1
sudo touch /usr/local/share/lua/5.1/openssl/x509.lua
sudo touch /usr/local/share/lua/5.1/openssl/pkcs12.lua
sudo touch /usr/local/share/lua/5.1/openssl/pubkey.lua
sudo touch /usr/local/share/lua/5.1/openssl/des.lua

4 core machine with svof loaded:

| relative |               ns/op |                op/s |    err% |     total | Implementations
|---------:|--------------------:|--------------------:|--------:|----------:|:----------------
|   100.0% |          180,631.04 |            5,536.15 |    2.2% |      4.58 | `plain for loop`
|    96.9% |          186,443.52 |            5,363.55 |    3.5% |      4.55 | `std::copy_if`
|   110.4% |          163,570.31 |            6,113.58 |    1.4% |      4.00 | `tbb::parallel_for_each, no acc.`
|   108.3% |          166,760.68 |            5,996.62 |    2.6% |      4.13 | `tbb::parallel_for, automatic grain`
|   107.8% |          167,554.00 |            5,968.22 |    2.2% |      4.08 | `tbb::parallel_for, 10 grainsize`
@vadi2
vadi2 / gist:28c0a469aa3022a99f872f8765e85221
Last active January 9, 2022 16:07
How to make a oneliner install for a Mudlet package
@vadi2
vadi2 / benchmark.sh
Last active April 14, 2023 18:26
Benchmarking compilation times v0.3
#!/bin/bash
set -e
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <start_commit> <end_commit> <project_dir>"
exit 1
fi
start_commit="$1"
@vadi2
vadi2 / Mudlet TODO.md
Last active May 27, 2023 10:25
Vadim's Mudlet fun list

Short term:

  • redo windows desktop setup process
  • Add Mudlet intro tutorial
  • animation for mudlet (like rainforestqa) from fiverr
  • write post on bounty learnings
  • check out opencollective as a funds store
  • 3D mapper improvements with chatgpt / cody

Revamp testing strategy:

  • complete Busted-based CI tests
@vadi2
vadi2 / gist:6fcc05500823122143a5d45c43915ff0
Last active March 12, 2024 06:30
GMCP Authenticate sample password flow
sequenceDiagram
participant Client
participant Server
Client->>Server: Core.Supports.Set ["Char.Login 1", ...]
Server->>Client: Char.Login.Default {"type": ["password-credentials"]}
Client->>Server: Char.Login.Credentials {"character": "username", "password": "password"}
Server->>Client: Char.Login.Result {"success": true}
alt Error
Server->>Client: Char.Login.Result {"success": false, "message": "Invalid credentials"}
end