Skip to content

Instantly share code, notes, and snippets.

Avatar

Vadim Peretokin vadi2

View GitHub Profile
View gist:7907abef56ab66c8d8eb68f4477c0f6e
Add a global event listener: `*` and Lua interpreter cleanup (#4091)
Add a separate getHTTP operation and associated events (#4003)
Add ability to override speedwalk path generation (#4156)
Add ansi2string to strip ANSI colours (#4092)
Add background image to mini/main console (#4064)
Add cfeedTriggers, dfeedTriggers, and hfeedTriggers (#3974)
Add color run length to getFgColor+getBgColor (#4108)
Add custom Input/Command lines (#4055)
Add dummy functions for TTS if Mudlet was compiled with TTS disabled (#3958)
Add getClipboardText and setClipboardText Lua functions (#3869)
@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
View Smiley to Emoji mapping.lua
{
[":)"] = "☺️",
[":("] = "🙁",
[":c"] = "☹️",
[":O"] = "😮",
[":*"] = "😗",
[";D"] = "😉",
[";)"] = "😉",
[":P"] = "😛",
[":/"] = "😕",
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:

@vadi2
vadi2 / gist:28c0a469aa3022a99f872f8765e85221
Last active Jun 13, 2017
How to make a oneliner install for a Mudlet package
View gist:df131203a5601160cd13eda8062fb3f8
<!DOCTYPE html>
<html>
<body>
<p>
<input value="20" />
<button>Fibonacci</button>
</p>
<p class="result"></p>
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 0001-Fixes-cinsertText.patch
From 37070795da2f653f3d012b10cce4d4b97a36a82d Mon Sep 17 00:00:00 2001
From: Andrea Piccinelli <frasten@gmail.com>
Date: Tue, 12 Jul 2011 14:02:38 +0200
Subject: [PATCH] Fixes cinsertText().
Signed-off-by: Andrea Piccinelli <frasten@gmail.com>
---
src/mudlet-lua/lua/GUIUtils.lua | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
You can’t perform that action at this time.