Skip to content

Instantly share code, notes, and snippets.

View lemontv's full-sized avatar
🦉
Night owl

Shiming Chen lemontv

🦉
Night owl
View GitHub Profile
@lemontv
lemontv / libsk-libfido2_BUILD_FROM_OPENSSH.md
Created April 23, 2024 02:59 — forked from thelastlin/libsk-libfido2_BUILD_FROM_OPENSSH.md
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

@lemontv
lemontv / cloudflare-ddns-update.sh
Created February 1, 2022 01:18 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@lemontv
lemontv / restart-gpg-agent.sh
Created October 4, 2021 02:12 — forked from raabf/restart-gpg-agent.sh
restarts the gpg-agent. often necessary because it is so faulty program.
#!/bin/bash
# restarts the gpg-agent
# often necessary because it is so faulty program
killall gpg-agent || true
gpg-agent --daemon