Skip to content

Instantly share code, notes, and snippets.

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

Sunset Mikoto SunsetMkt

💭
I may be slow to respond.
View GitHub Profile
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active July 17, 2024 15:32
A guide to force enabling Xcode LLM feature on China-SKU Macs.

Introduction

Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.

Prerequisites

  • Xcode is installed and run at least once.
  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).

Disclaimer

@thesamesam
thesamesam / xz-backdoor.md
Last active July 15, 2024 10:34
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 July 14, 2024 21:15
Blue Archive Spine Name Codes/Filenames

updated occassionally

CH

filename character
CH0058_spr 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 or this fork if main repo expired here

if GI 4.6+ use this fork on your own risk here

  • Extract zip file somewhere
chrome_bBlpF4CYiz.webm.mov
@Mirai0009
Mirai0009 / Instructions EN.md
Last active July 15, 2024 22:03
Wireless Nirkable via Brevent

SELECT LANGUAGE

INDONESIA

How to Get Gacha URL on Android via Brevent

@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 July 9, 2024 12:44
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