Skip to content

Instantly share code, notes, and snippets.

object KeyStoreChallenge {
private val TAG = "KeyAttestation"
/**
* How to verify see to
* https://developer.android.com/privacy-and-security/security-key-attestation?hl=zh-cn#key_attestation_ext_schema
*/
fun <T> use(alias: String, challenge: ByteArray, block: (Boolean, List<PEM>) -> T): T {
if (!this.challenge(alias, true, challenge)) {
if (!this.challenge(alias, false, challenge)) {
@macfergusson
macfergusson / SQL_Resources.md
Last active December 24, 2025 00:44
SQL Community Discord Resources
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 24, 2025 00:36
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@niuers
niuers / gist:d8c56fab8e86656e77490c4607b0844e
Created March 19, 2019 13:54 — forked from defunkt/gist:6443
Chris Wanstrath: Start your side project!
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds
keynote-y.
@jweinst1
jweinst1 / hamming_centers.cpp
Created December 24, 2025 00:31
sorting bit sets of numbers based on hamming distance
#include <array>
#include <cstdint>
#include <cstddef>
#include <cmath>
#include <cstdio>
#include <climits>
#include <vector>
#include <cassert>
#include <random>
#include <chrono>

nof1.ai Alpha Arena 提示词工程逆向分析

逆向工程说明: 本文档基于 nof1.ai Alpha Arena 的公开文档、交易行为模式、API 响应格式和社区讨论,系统性地逆向推导出其 System Prompt 和 User Prompt 的完整结构,欢迎各路大佬戳戳评论,一起来进行这个有趣的实验。

GitHub - nof0 Follow @wquguru

目录

@christofluethi
christofluethi / gist:646ae60d797a46a706a5
Last active December 24, 2025 00:29
Convert m4a to mp3 on OS X command line using ffmpeg
brew update
brew link yasm
brew link x264
brew link lame
brew link xvid
brew install ffmpeg
ffmpeg wiki:
https://trac.ffmpeg.org/wiki/Encode/MP3

Complete Recent Discord Quest

Note

This does not work in the browser for quests that require playing or streaming a game.
Use the Discord Desktop App: https://discord.com/download

Note

This is an improved version of the Discord Quest completion script originally by @aamiaa.
The script automatically completes quests one by one, continuing until the quest list is empty.
You can stack multiple quests and have them completed sequentially.

@mjnaderi
mjnaderi / install-arch.md
Last active December 24, 2025 00:20 — forked from mattiaslundberg/arch-linux-install
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.