Skip to content

Instantly share code, notes, and snippets.

View lwd-temp's full-sized avatar
💭
I may be slow to respond.

Sunset Mikoto lwd-temp

💭
I may be slow to respond.
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active May 19, 2024 20:15
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@laixintao
laixintao / decent_request.py
Last active February 20, 2024 12:05
Send HTTP requests using python-requests with timeout, tcp reuse(session) and retry.
from requests.adapters import HTTPAdapter, Retry
from requests import Session
retries = Retry(
total=5, backoff_factor=1, status_forcelist=[502, 503, 504]
)
session = Session() # reuse tcp connection
session.mount("http://", HTTPAdapter(max_retries=retries))
session.mount("https://", HTTPAdapter(max_retries=retries))
@abersheeran
abersheeran / llama2-2-7b-chat-int8-worker.js
Last active December 5, 2023 06:02
llama2-2-7b-chat-int8 in Cloudflare workers
import { Ai } from './vendor/@cloudflare/ai.js';
export default {
async fetch(request, env) {
const ai = new Ai(env.AI);
// prompt - simple completion style input
// let simple = {
// prompt: 'Tell me a joke about Cloudflare'
// };
@pkpc99
pkpc99 / BA_SpineFilenames.md
Last active April 20, 2024 19:55
Blue Archive Spine Name Codes/Filenames

updated occassionally

CH

filename character
CH0058_spra Hifumi (Swimsuit)
CH0060_spr Tsurugi (Swimsuit)
CH0063_spr Hina (Swimsuit)
CH0064_spr Iori (Swimsuit)
CH0066_spr Shun (Small)
CH0069_spr Mika

VIDEOS MIGHT OUTDATED BUT TEXT IS NOT

this guide is not meant to help with leaking or any stupid things you might do to ruin experience for other people

Downloading

  • Get latest version from Github Actions not releases from here , if you dont have account you can use site like nightly.link to download it , Latest build
  • Extract zip file somewhere
chrome_bBlpF4CYiz.webm.mov

@Mirai0009
Mirai0009 / Instructions EN.md
Last active February 29, 2024 13:37
Wireless Nirkable via Brevent

SELECT LANGUAGE

INDONESIA

How to Get Gacha URL on Android via Brevent

@cdseoo
cdseoo / emeditor.key
Created May 19, 2023 00:17
emeditor v22 lifetime key
DEMZF-UCKEE-HB222-DJDDH-594U5
DMAZF-UCKEE-A6222-8CADP-HQZ7H
DPAZF-UCKEE-FH222-ET546-DLRGT
DRNZF-UCKEE-UK222-RWNLU-XVZH7
DSBZF-UCKEE-BF222-K24JB-S9JLC
DSHZF-UCKEE-D3222-NMB93-UKSQF
DTHZF-UCKEE-BW222-Q2BKZ-NXPU8
DVAZF-UCKEE-J7222-5UHCT-QSRFE
DVEZF-UCKEE-PR222-ZAPFE-4C49Q
@yushum
yushum / Genshin Impact.yaml
Created January 25, 2023 04:14
Config for Clash.Meta
- GEOSITE,hoyoverse,Genshin Impact
- DOMAIN,overseauspider.yuanshen.com,Genshin Impact
- DOMAIN,dispatchosglobal.yuanshen.com,Genshin Impact
- DOMAIN,osasiadispatch.yuanshen.com,Genshin Impact
- DOMAIN,oseurodispatch.yuanshen.com,Genshin Impact
- DOMAIN,osusadispatch.yuanshen.com,Genshin Impact
- AND,((DST-PORT,22101-22102),(NETWORK,UDP)),Genshin Impact
# Update
- DOMAIN,autopatchhk.yuanshen.com,Genshin Impact
@Aizistral
Aizistral / AbsoluteStateOfChatReporting.md
Last active February 14, 2024 05:32
The Absolute State of Chat Reporting

The Absolute State of Chat Reporting

Originally introduced in 1.19.1, chat reporting has undergone many changes in Mojang's attempts to eliminate the exploits and make the system functional. The purpose of this paper is to document the current technical state of chat reporting on an ongoing basis, and to provide a reference for the community to use when discussing the system. To that end I will try to keep it as unbiased as possible.

The Basics

Chat reporting heavily relies on cryptographic commitments and signatures to ensure that reported chat messages are not tampered with. The basic idea is that all players sign their chat messages with their private key, and then send the signature along with the message to the server.

Chat signing keypair is not generated by the client as one could expect; instead, it is issued by Mojang's services and is tied to the player's account. This means that the keypair is shared between all clients that the player uses, and the player can't change it. The keypair is f