Skip to content

Instantly share code, notes, and snippets.

View thelastlin's full-sized avatar
🐺
🎇

Xavier Hsinyuan thelastlin

🐺
🎇
  • 17:32 (UTC +08:00)
View GitHub Profile
@thelastlin
thelastlin / inet_wait.cxx
Last active August 28, 2023 05:25
demo: launchd with inetdCompatibility
#include <arpa/inet.h>
#include <cstdlib>
#include <memory>
#include <syslog.h>
#include <thread>
#include <unistd.h>
int main()
{
openlog("demod", LOG_PID, LOG_DAEMON);
@thelastlin
thelastlin / libsk-libfido2_BUILD_FROM_OPENSSH.md
Last active August 24, 2024 11:48
Build libsk-libfido2.so from OpenSSH-portable

Tested on macOS Sonoma Developer beta 2 (23A5276g)

Build libsk-libfido2.so

Prerequisite

  1. Download openssh-portable source code, install libcrypto, libfido2;
  2. Configure openssh-portable build system by ./configure # [options].

Apply patch

@thelastlin
thelastlin / caps_ctrl.json
Last active December 23, 2021 10:56
karabiner configure: Use FN+Caps as Caps, Caps as Right Control
{
"title": "",
"rules": [
{
"description": "Fn+Caps Lock as Caps Lock",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {