Ben Chuanlong Du's Blog

It is never too late to learn.

Make a Rust Project Both a Library and a Binary

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

.
├── Cargo.toml
└── src
    ├── main.rs
    │   
    └── lib.rs
[package]
name = "package_name"
version = "0.0.1"
authors = ["me <me@gmail.com>"]

[lib]
name = "lib_name"
path = "src/lib.rs"

[[bin]]
name = "binary_name"
path = "src …

Comparison of GitHub Tokens and Keys

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Name Short Description Scope Permission Protocol
GitHub
SSH Key
A SSH public key All repos Read and Write SSH
GitHub
Deploy Key
A SSH public key Any repo
configures
the key …

FTP on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation in Ubuntu

wajig install ftp

FTP

  1. Most FTP severs accpets only SFTP connections, which means that you have to log into those servers using sftp instead of ftp. The tricky …

Fake Face Using AI

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://faceswap.dev/ Faceswap is the leading free and Open Source multi-platform Deepfakes software.

https://github.com/iperov/DeepFaceLab DeepFaceLab is the leading software for creating deepfakes.