Skip to content

Instantly share code, notes, and snippets.

@ziceptor
ziceptor / waitForKeyElements.js
Created November 27, 2021 16:40 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@ziceptor
ziceptor / vipnet-rinetd.md
Created November 16, 2021 06:43 — forked from nextman/vipnet-rinetd.md
Доступ к ресурсу внутри сети VipNet из открытой сети с помощью VipNet клиента

Предположим, в сети VipNet есть сайт (работающий через туннель), и нам нужно дать доступ к нему для своей подсети. Но у нас в распоряжении нет координатора, а только клиент на Windows, который, однако, этот сайт видит. Решение - настроить проброс порта (в данном примере tcp 80) на машине с клиентом. В windows 7 и выше можно сделать это штатными средствами, универсальное же решение, подходящее и для Windows XP - запускать специально обученную программу - rinetd.

Итак, распаковываем rinetd.zip например в c:\bin\rinetd, там же создаем запускалку rinetd.bat со следующим содержанием:

c:\bin\rinetd\rinetd.exe -c c:\bin\rinetd\rinetd.conf
@ziceptor
ziceptor / gist:840477d313868c2d3a526e9b5cf15783
Last active November 22, 2019 02:15
Likely cause of the crash plugin: Modern contact list
Miranda Crash Report from 22 Nov 2019 9:11:53. Crash Dumper v.0.1.0.4
Likely cause of the crash plugin: Modern contact list
Exception: Access Violation at address 163EE7AA. Reading from address 0982DAD8.
Stack Trace:
---------------------------------------------------------------
163EE7AA (Clist_modern 163E0000): (filename not available) (0): (function-name not available)
163F1BD9 (Clist_modern 163E0000): (filename not available) (0): (function-name not available)
@ziceptor
ziceptor / Netlib_Recv failed error=10054
Created September 16, 2019 04:55
Netlib_Recv failed error=10054
[11:59:27 19B0] [JABBER_1] bytesParsed = 368
[11:59:46 19B0] SSL failure recieving data (10054)
[11:59:46 19B0] [JABBER_1] Netlib_Recv() failed, error=10054
[11:59:46 19B0] [JABBER_1] recvResult = 0
[11:59:46 19B0] [JABBER_1] m_iDesiredStatus reset to (40072,40072) => 40071
[11:59:46 19B0] [JABBER_1] leaving worker thread
[11:59:47 1890] KeepStatus: connection lost! (JABBER_1)
[12:00:04 18FC] [JABBER_1] No avatar
[12:00:47 1890] KeepStatus: status for JABBER_1 differs: stored = 40072, real = 40071
[12:00:47 1890] KeepStatus: assigning status 40072 (40072, 40072) to JABBER_1
[11:59:27 19B0] [JABBER_1] bytesParsed = 368
[11:59:46 19B0] SSL failure recieving data (10054)
[11:59:46 19B0] [JABBER_1] Netlib_Recv() failed, error=10054
[11:59:46 19B0] [JABBER_1] recvResult = 0
[11:59:46 19B0] [JABBER_1] m_iDesiredStatus reset to (40072,40072) => 40071
[11:59:46 19B0] [JABBER_1] leaving worker thread
[11:59:47 1890] KeepStatus: connection lost! (JABBER_1)
[12:00:04 18FC] [JABBER_1] No avatar
[12:00:47 1890] KeepStatus: status for JABBER_1 differs: stored = 40072, real = 40071
[12:00:47 1890] KeepStatus: assigning status 40072 (40072, 40072) to JABBER_1
[11:59:27 19B0] [JABBER_1] bytesParsed = 368
[11:59:46 19B0] SSL failure recieving data (10054)
[11:59:46 19B0] [JABBER_1] Netlib_Recv() failed, error=10054
[11:59:46 19B0] [JABBER_1] recvResult = 0
[11:59:46 19B0] [JABBER_1] m_iDesiredStatus reset to (40072,40072) => 40071
[11:59:46 19B0] [JABBER_1] leaving worker thread
[11:59:47 1890] KeepStatus: connection lost! (JABBER_1)
[12:00:04 18FC] [JABBER_1] No avatar
[12:00:47 1890] KeepStatus: status for JABBER_1 differs: stored = 40072, real = 40071
[12:00:47 1890] KeepStatus: assigning status 40072 (40072, 40072) to JABBER_1
@ziceptor
ziceptor / gist:5c86493a8c80856aaa4c03560940c9c5
Created September 16, 2019 04:50
Netlib_Recv() failed, error=10054
[11:59:27 19B0] [JABBER_1] bytesParsed = 368
[11:59:46 19B0] SSL failure recieving data (10054)
[11:59:46 19B0] [JABBER_1] Netlib_Recv() failed, error=10054
[11:59:46 19B0] [JABBER_1] recvResult = 0
[11:59:46 19B0] [JABBER_1] m_iDesiredStatus reset to (40072,40072) => 40071
[11:59:46 19B0] [JABBER_1] leaving worker thread
[11:59:47 1890] KeepStatus: connection lost! (JABBER_1)
[12:00:04 18FC] [JABBER_1] No avatar
[12:00:47 1890] KeepStatus: status for JABBER_1 differs: stored = 40072, real = 40071
[12:00:47 1890] KeepStatus: assigning status 40072 (40072, 40072) to JABBER_1
[06:30:14] [Server thread/INFO] [nucleus]: ziceptor ran the command: /spleef join
[06:30:14] [Server thread/ERROR] [Sponge]: Error occurred while executing command 'spleef join' for source EntityPlayerMP['ziceptor'/933, l='wn', x=349,30, y=81,00, z=-138,76]: null
java.lang.NullPointerException: null
at cloud.zeroprox.gamespleef.commands.JoinCmd.execute(JoinCmd.java:31) ~[JoinCmd.class:?]
at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:255) ~[ChildCommandElementExecutor.class:1.12.2-2705-7.1.0-BETA-33
at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:388) ~[CommandSpec.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:341) ~[SimpleDispatcher.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:329) [SpongeCommandManager.class:1.12.2-2705-7.1.
areas=[
{
area {
x1=361
x2=352
y1=80
y2=94
z1=-137
z2=-150
}
@ziceptor
ziceptor / gist:588d168594ee2c435f424811a5ddcee8
Created August 7, 2018 16:51
[Sponge]: Failed to load configuration
[00:28:33] [Server thread/INFO] [Sponge]: Checking for worlds that need to be migrated...
[00:28:33] [Server thread/INFO] [Sponge]: No worlds were found in need of migration.
[00:28:33] [Server thread/ERROR] [Sponge]: Failed to load configuration
java.io.IOException: configurate.typesafe.config.ConfigException$Parse: Reader: 18: Key 'world-generation-modifiers' may not be followed by token: '[' (if you intended '[' to be part of a key or string value, try enclosing the key or value in double quotes)
at ninja.leaping.configurate.loader.AbstractConfigurationLoader.load(AbstractConfigurationLoader.java:145) ~[spongeforge-1.12.2-2705-7.1.0-BETA-3361.jar:1.12.2-2705-7.1.0-BETA-3361]
at ninja.leaping.configurate.loader.ConfigurationLoader.load(ConfigurationLoader.java:58) ~[spongeforge-1.12.2-2705-7.1.0-BETA-3361.jar:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.config.SpongeConfig.reload(SpongeConfig.java:183) [SpongeConfig.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.config.Sponge