Skip to content

Instantly share code, notes, and snippets.

Avatar

Vadim Peretokin vadi2

View GitHub Profile
@vadi2
vadi2 / gist:28c0a469aa3022a99f872f8765e85221
Last active January 9, 2022 16:07
How to make a oneliner install for a Mudlet package
@vadi2
vadi2 / keybase.md
Last active October 10, 2017 02:12
View keybase.md

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:

View Smiley to Emoji mapping.lua
{
[":)"] = "☺️",
[":("] = "🙁",
[":c"] = "☹️",
[":O"] = "😮",
[":*"] = "😗",
[";D"] = "😉",
[";)"] = "😉",
[":P"] = "😛",
[":/"] = "😕",
@vadi2
vadi2 / purge-luaossl.sh
Created October 12, 2019 09:34
Purge luaossl Luarocks install
View purge-luaossl.sh
# 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
@vadi2
vadi2 / Mudlet TODO.md
Last active March 7, 2023 20:05
Vadim's Mudlet TODO
View Mudlet TODO.md

Short term:

  • release 4.16
  • redo windows desktop setup process
  • organise and post Mudlet giveaway
  • animation for mudlet (like rainforestqa) from fiverr
  • write post on bounty learnings

Revamp testing strategy:

  • complete Busted-based CI tests
  • get more people on PTBs, ~30 on Windows
View Mudlet multicore benchmarking results.md

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 / Announcer.h
Created July 9, 2022 08:42
How to do call UiaRaiseNotificationEvent on Windows
View Announcer.h
/***************************************************************************
* Copyright 2019-2022 Leonard de Ruijter, James Teh - OSARA *
* Copyright 2017 The Qt Company Ltd. *
* Copyright (C) 2022 by Vadim Peretokin - vadim.peretokin@mudlet.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *