Skip to content

Instantly share code, notes, and snippets.

Avatar

Vadim Peretokin vadi2

View GitHub Profile
View brew install yajl fails
compiles-Mac-Pro:~ compile$ brew install yajl
==> Installing dependencies for yajl: cmake
==> Installing yajl dependency: cmake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-2.8.11.2.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-2.8.11.2.mountain_lion.bottle.tar.gz
🍺 /usr/local/Cellar/cmake/2.8.11.2: 694 files, 34M
==> Installing yajl
==> Downloading https://github.com/lloyd/yajl/archive/2.0.4.tar.gz
######################################################################## 100.0%
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 Oct 12, 2019
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 / 4.14 raw changelog.md
Last active Nov 13, 2021
4.14 raw changelog
View 4.14 raw changelog.md

Added

  • --mirror option for logging output to console
  • option to show errors view from the toolbar
  • customization of Discord button using invite URL from GMCP or Lua
  • dark theme toggle to preferences
  • events when a speedwalk() is stopped, paused, or finishes (reaches the end)
  • IDManager and named tempTimers/event handlers from script
  • option for secure IRC connections
  • resetDiscordData() function
  • what color formats are acceptable in places it is missing in Geyser ldoc comments
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`
View vscode c++ tools debug output
textDocument/hover: /workspaces/Mudlet/src/TArea.cpp (id: 420)
cpptools/textEditorSelectionChange
cpptools/textEditorSelectionChange
cpptools/activeDocumentChange: /workspaces/Mudlet/src/TArea.cpp
cpptools/getCodeActions: /workspaces/Mudlet/src/TArea.cpp (id: 421)
cpptools/runCodeAnalysis
/home/vscode/.vscode-remote/extensions/ms-vscode.cpptools-1.8.0-insiders2/bin/../LLVM/bin/clang-tidy
--header-filter=/workspaces/Mudlet
--quiet
/workspaces/Mudlet/src/TArea.cpp
@vadi2
vadi2 / Announcer.h
Created Jul 9, 2022
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. *
* *
@vadi2
vadi2 / Mudlet TODO.md
Last active Jul 28, 2022
Vadim's Mudlet TODO
View Mudlet TODO.md