Skip to content

Instantly share code, notes, and snippets.

View Heptazhou's full-sized avatar
🌌
I may be slow to respond.

Heptazhou Heptazhou

🌌
I may be slow to respond.
  • Sol 3 / 地星
  • 15:46 (UTC)
View GitHub Profile
@Heptazhou
Heptazhou / Dark.md
Created March 6, 2023 09:39 — forked from rounk-ctrl/Dark.md
Win32 Dark Mode

Dark Mode APIs.

API Signatures.

ShouldAppsUseDarkMode()

Checks whether system is using dark mode or not.
Signature:

using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132

AllowDarkModeForWindow(In HWND hWnd, In bool allow)

const musicNotify = () => {
const m = '/storage/emulated/0/Download/WeiXin/平凡之路.mp3'
media.playMusic(m);
sleep(media.getMusicDuration());
}
const to_mall_cart = () => {
shopping_cart_btn=id('img_shopping_cart').findOne()
@Heptazhou
Heptazhou / Activate Office 2019 for macOS VoL.md
Created July 22, 2021 13:48 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@Heptazhou
Heptazhou / VTuberSoftware.md
Created May 20, 2021 13:18 — forked from emilianavt/BestVTuberSoftware.md
A list of common vtuber software

VTuber software

This is a list of the most relevant vtubing software. The information is as accurate as I could figure it out, but there might be errors or some details might change. If you find anything that needs to be corrected, please let me know.

Additional explanations:

  • iPhone means that an iPhone is basically required
  • iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
  • VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
  • Tobii means that the Tobii eye tracker is supported
@Heptazhou
Heptazhou / bilibili_extra_video_data.user.js
Created June 19, 2020 09:41 — forked from phtwo/bilibili_extra_video_data.user.js
user.js - 在b站播放页标题栏下面显示视频 av 号、bv 号及弹幕 cid
// ==UserScript==
// @name bilibili - display video av, bv number below the title bar
// @name:zh-CN b 站 - 显示视频 av 号、bv 号及弹幕 cid
// @namespace https://gist.github.com/phtwo
// @version 0.3
// @licence MIT. Copyright (c) phtwo.
// @description Display the video av, bv, cid number below the title bar of the bilibili play page, support copy short link
// @description:zh-CN 在 b 站播放页标题栏下面显示视频 av 号、bv 号及弹幕 cid,支持复制短链接
// @match *://www.bilibili.com/video/*
// @grant GM_addStyle
@Heptazhou
Heptazhou / ca.md
Created April 27, 2020 04:50 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@Heptazhou
Heptazhou / 2233.zenra.js
Created April 24, 2020 02:00 — forked from journey-ad/2233.zenra.js
哔站直播间的2233娘挂件替换为全裸版本
// ==UserScript==
// @name 哔站直播全裸2233娘
// @description 哔站直播间的2233娘挂件替换为全裸版本
// @description:zh-TW 嗶站直播間的2233娘掛件替換為全裸版本
// @description:zh-CN 哔站直播间的2233娘挂件替换为全裸版本
// @namespace https://github.com/journey-ad
// @author journey-ad
// @include *://live.bilibili.com/*
function toBaseN(num, base) {
if (num === 0) return "0"
var digits = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var len = Math.min(digits.length, base)
var result = ""
while (num > 0) {
result = digits[num % len] + result
num = parseInt(num / len, 10)
}
return result