Skip to content

Instantly share code, notes, and snippets.

View shugen002's full-sized avatar
👓
Making Great News

Failing Root shugen002

👓
Making Great News
View GitHub Profile
{
"0":"[0oO]",
"1":"[1l]",
"3":"[3౩]",
"6":"[6ნ]",
"7":"(𖩈|7)",
"8":"(𐌚|8)",
"9":"[9୨]"
}
@shugen002
shugen002 / odin.hexpat
Last active April 10, 2023 17:33
imhex pattern for odin serializer (not fully function, but good enough for wall world)
#include <std/string.pat>
#include <std/mem.pat>
enum NodeType:u8 {
Invalid = 0x0,
NamedStartOfReferenceNode = 0x1,
UnnamedStartOfReferenceNode = 0x2,
NamedStartOfStructNode = 0x3,
UnnamedStartOfStructNode = 0x4,
EndOfNode = 0x5,
@shugen002
shugen002 / tar.hexpat
Created September 8, 2022 03:30
tar imhex pattern (not done ye
struct posix_header
{ /* byte offset */
char name[100]; /* 0 */
char mode[8]; /* 100 */
char uid[8]; /* 108 */
char gid[8]; /* 116 */
char size[12]; /* 124 */
char mtime[12]; /* 136 */
char chksum[8]; /* 148 */
char typeflag; /* 156 */
@shugen002
shugen002 / takeovertheworld.userscript.js
Last active April 5, 2022 18:01
try to take over the world!
// ==UserScript==
// @name try to take over the world!
// @version 0.3
// @description try to take over the world!
// @author You
// @match https://www.baidu.com/undefined
// @run-at document-start
// ==/UserScript==
(function() {

公共服务器列表

http://l11-prod-list-hk-myth.dyhxgame.com/offical_list

let
    源 = Table.FromColumns({Lines.FromBinary(Web.Contents("http://l11-prod-list-hk-myth.dyhxgame.com/offical_list"), null, null, 65001)}),
    #"解析的 JSON" = Table.TransformColumns(源,{},Json.Document),
    Column1 = #"解析的 JSON"{0}[Column1],
    server_list = Table.FromRecords(Column1[server_list]),
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
# cross compilers to use for C, C++ and Fortran
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_Fortran_COMPILER ${TOOLCHAIN_PREFIX}-gfortran)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
# target environment on the build host system
@shugen002
shugen002 / 开黑啦伪禁言.js
Created May 22, 2021 18:17
开黑啦伪禁言
function deleteMessage(id) {
fetch("https://www.kaiheila.cn/api/v2/messages/0/" + id,
{
"credentials": "include",
"headers": {
"accept": "*/*",
"accept-language": "zh-CN",
"content-type": "application/json; charset=utf-8",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
@shugen002
shugen002 / .ipynb
Last active February 22, 2021 10:54
寻找树根.ipynb
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "寻找树根.ipynb",
"provenance": [],
"collapsed_sections": [],
"include_colab_link": true
},
@shugen002
shugen002 / inject.js
Last active October 14, 2020 10:55
KaiHeiLa RongIMLib Proxy 开黑啦注入器
/**
* 开黑啦注入器
* 需要插入在lib与主程序执行之间
*
* 成功加载后可通过 window.__botInject.addEventListener('message',(e)=>{})
* 监听消息。
*
* 需要监视所有对RongIMLib的操作可以执行
* window.__botInject.dolog = true
*/
@shugen002
shugen002 / left.png
Last active April 1, 2022 13:58
←_←
left.png