Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Gesugao-san / Top_Public_Time_Servers.md
Created January 1, 2024 12:59 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@Gesugao-san
Gesugao-san / index.mediawiki
Last active July 25, 2023 16:40
War Thunder Store+ ru post source
@Gesugao-san
Gesugao-san / winsock_smb12_reset.cmd
Last active February 12, 2023 17:23
Reset winsock and smb v1 and v2
@REM Microsoft Windows [Version 10.0.19045.2546]
@CD /d C:\
@SETLOCAL ENABLEDELAYEDEXPANSION
@ECHO OFF
Dism /online /Get-Features /format:table | find "SMB1Protocol"
SET Arr[0]=SMB1Protocol
SET Arr[1]=SMB1Protocol-Client
SET Arr[2]=SMB1Protocol-Server
SET Arr[3]=SMB1Protocol-Deprecation
@Gesugao-san
Gesugao-san / The Imperial Gatekeeper.ct.xml
Last active November 14, 2022 13:19
The Imperial Gatekeeper (v1.75) CE (v7.3) Table. Save as "Game.ct" to associate with game.
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="38">
<CheatEntries>
<CheatEntry>
<ID>116</ID>
<Description>"&gt; Игрок (обновляется постоянно)"</Description>
<Options moHideChildren="1"/>
<LastState Value="" RealAddress="00000000"/>
<GroupHeader>1</GroupHeader>
<CheatEntries>
@Gesugao-san
Gesugao-san / dump.js
Last active May 5, 2024 21:26
Dump table content from website to local machine (csv).
(() => {
return console.log("Moved to https://github.com/GesuDatasGContactsProject/dump_html_table");
})();
@Gesugao-san
Gesugao-san / openapi_byond.yml
Last active May 5, 2024 21:28
Swagger UI OpenAPI for http://byond.com. How to use: copy content of this file, and insert in https://editor.swagger.io. For working preview use https://mybrowseraddon.com/access-control-allow-origin.html!
openapi: 3.0.0
info:
version: "1.0"
title: BYOND API
description: "Website offer a free API that provides some info for a players and about players, hubs and worlds."
termsOfService: https://www.byond.com/TOS
contact:
name: SS13HUB Team
url: http://discord.gg/HMwbBZyEum
  1. Install Python 3
  2. Install and use mod Map Writer
  3. Download the file
  4. Type this:

CLS && py mapwriter_sorter.py

this.document.querySelectorAll('[class^="member"],[class^="container"],[class^="clickable"],[data-list-item-id^="members"]')[0];
this.document.querySelectorAll('[class^="userInfoBody"]')[0].innerText.split('\n');
@Gesugao-san
Gesugao-san / _parsing.js
Last active May 5, 2024 21:27
SS13 hub parsing. Inspured by https://ss13stats.skullnet.me but it's js, for D3 in future.
// Run in Google Chrome Console. MIT Licence.
// For "http://byond.com/games/Exadv1/SpaceStation13?format=text"
function main(_input = false) {
if ((_input === false) || (_input === null) || (_input == '')) {return console.error("User cancelled the prompt.");}
console.clear();
if (verbose) console.debug(['PROCESSING START']);
let current_entry = '', _data = {}; // let tabbed = [], notTabbed = [];
//_input = _input.split('\r\n');
//if (debug) console.log('_input:', _input);
for (var i = 0; i < _input.length; i++) {
let buttLoot, buttLeave, _debug = Boolean(1);
let _store = Array.from(document.querySelectorAll('*')).find(e => e.__vue__).__vue__.$store;
// Seach for buttons to click
// https://stackoverflow.com/a/67398903/8175291
function querySelectorIncludesText(selector, text) {
if ((!selector) || (!text)) return console.error('querySelectorIncludesText error!');
return Array.from(document.querySelectorAll(selector))
.find(el => el.textContent.includes(text));
}
// Run away if player can be killed in two successfully hits.