Skip to content

Instantly share code, notes, and snippets.

View Cryolitia's full-sized avatar
🏳️‍⚧️
三天摸鱼,两天晒网

PukNgae Cryolitia Cryolitia

🏳️‍⚧️
三天摸鱼,两天晒网
View GitHub Profile
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active September 1, 2026 04:55
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@YukariChiba
YukariChiba / create-img.sh
Last active September 24, 2025 03:35
Create persistent deepin iso
#!/bin/bash
# for deepin 25.0.1 / deepin 23.1
LANG=C sed -i '0,/console=tty splash/s//persistence splash/' $1
truncate -s +8G $1
fdisk $1 <<<$'n\n\n\n\n\nw'
LIVEDEV=$(sudo losetup -f -P --show $1)
@saeziae
saeziae / custom.css
Created April 19, 2024 15:23
Visuwual Stuwudio Cowode
.editor-group-watermark > .letterpress{
background-image: url(https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png) !important;
opacity: .75;
}
@qinlili23333
qinlili23333 / xdf.user.js
Last active September 26, 2024 07:17
重磅黑科技!管他什么加密呢!能播放就能下载!
// ==UserScript==
// @name 全能视频下载器
// @namespace https://qinlili.bid
// @version 0.2
// @description 黑科技!使用MediaSouce的视频下载技术!
// @author 琴梨梨
// @match https://library.koolearn.com/*
// @match *://www.pmphmooc.com/*
// @grant none
// ==/UserScript==
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$CJKutf8]{$documentclass$}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\usepackage[top=1in,bottom=1in,left=1.25in,right=1.25in]{geometry}
\usepackage{float}
\usepackage{fontspec}
\newfontfamily\zhfont[BoldFont=STHeiti,ItalicFont=STKaiti]{STFangsong}
\newfontfamily\zhpunctfont{STFangsong}
% \setmainfont{Times New Roman}
@dtgay
dtgay / gpgwot
Created April 20, 2013 15:28
visualize GPG key web of trust
#!/bin/bash
gpg --list-sigs --keyring ~/.gnupg/pubring.gpg | sig2dot > ~/.gnupg/pubring.dot
neato -Tps ~/.gnupg/pubring.dot > ~/.gnupg/pubring.ps
convert ~/.gnupg/pubring.ps ~/.gnupg/pubring.gif
eog ~/.gnupg/pubring.gif