Skip to content

Instantly share code, notes, and snippets.

View yuangezhizao's full-sized avatar
🤔
Vegetable - Verified by GitHub

远哥制造 yuangezhizao

🤔
Vegetable - Verified by GitHub
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active April 25, 2024 23:45
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

@frostming
frostming / fly.toml
Last active October 13, 2023 03:33
A Fly.io config file for OpenCat™ for Team that can be deployed directly
# fly.toml file generated for still-snowflake-6351 on 2023-03-30T09:53:40+08:00
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "sin"
processes = []
[build]
image = "bayedev/opencatd"
@yojohanshinwataikei
yojohanshinwataikei / main.ts
Last active March 25, 2024 01:23
Arcaea score prober backend
import fs = require("fs-extra")
import path = require("path")
import net = require("net")
import https = require("https")
import child = require("child_process")
import util = require("util")
import WebSocket = require("ws")
import brotli = require("brotli")
import mysql2 = require("mysql2/promise")
import sqlite3 = require("better-sqlite3")
// ==UserScript==
// @name Abema 强制 1080p
// @description 把其他清晰度的播放列表强制指向1080p
// @version 1.1.0
// @run-at document-start
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// ==/UserScript==
@niw
niw / README.en.md
Last active February 13, 2024 04:24
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!

NOTE: that this is current, 10/1/2021 state.

Running Windows 10 on ARM

  1. Install Xcode from App Store or install Command Line Tools on your Mac
@enegaard
enegaard / hassos-rpi-camera-howto.md
Last active April 13, 2024 11:24
Getting the Raspberry Pi Camera to Work on HASSOS

Getting the Raspberry Pi Camera to Work on HASSOS

Enabling the Raspberry Pi camera on HASSOS installations is unfortunately not as simple as connecting the camera and configuring Home Assistant as described at https://www.home-assistant.io/integrations/rpi_camera.

For the camera to work at all, an alternate firmware needs to be loaded when the Raspberry Pi boots. On Raspberry Pi OS (and many others), the alternate firmware is included with the OS installation image, and switching to the alternate firmware is accomplished by running raspi-config and selecting "Enable Camera" from the menu. HASSOS does not include either the alternate firmware or the raspi-config program, so all of the steps need to be done manually.

The steps below attempt to describe the steps that need to be performed. They have worked for me on a Raspberry Pi 3B+ running HASSOS 4.11 through 4.15. If you have a different setup your mileage may vary (but hopefully you'll get enough hints from the below to get it working).

As of HASSOS 6

@myjian
myjian / collect-score.js
Last active March 17, 2024 16:36
Collect score from maimai dx net
/*
收集並複製 maimai 成績
Collect score from maimai dx net.
使用方法:
1. 登入 maimai dx net
2. 畫面停留在首頁就行
3. 按下 F12 開啟網頁開發者工具
4. 切換到開發者工具的 Console 分頁
5. 複製並貼上以下程式碼到 Console 內
@ak1ra-komj
ak1ra-komj / settings.json
Last active August 11, 2023 07:03
vscode-settings-with-background
{
"background.customImages": [
"https://i.loli.net/2020/06/11/sHdtowgryvk8Qeq.png",
"https://i.loli.net/2020/06/11/yfTGIBVMWXxR5cE.png",
"https://i.loli.net/2020/06/11/eSnE3mQYukBKsPt.png",
"https://i.loli.net/2020/06/11/29x4PdKmi7ApehI.png",
"https://i.loli.net/2020/06/11/YqjZbIB5hv4PKS3.png",
"https://i.loli.net/2020/06/11/Ru84bz5NnADWZLw.png",
"https://i.loli.net/2020/06/11/lswOX1IemtUrL6c.png",
"https://i.loli.net/2020/06/11/HrAeG5PqyfvnhwL.png",
@ilufang
ilufang / yt-chunithm-perspective.user.js
Last active July 3, 2020 16:43
Chunithm Chart Perspective Tool for YouTube
// ==UserScript==
// @name Chunithm Chart Perspective Tool for YouTube
// @namespace https://fang.lu/
// @version 1.1
// @description Reverse 3D perspective back to a flat falling chart.
// @author ilufang
// @match https://www.youtube.com/watch?*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js
// @downloadURL https://gist.githubusercontent.com/ilufang/1651c4e4af2ba122f09407886e55d826/raw/yt-chunithm-perspective.user.js