Skip to content

Instantly share code, notes, and snippets.

View YukiCoco's full-sized avatar
🐟
Touching fish

Kurisu YukiCoco

🐟
Touching fish
View GitHub Profile
@YukiCoco
YukiCoco / KeypairVault.rs
Last active April 16, 2025 17:58
安全在服务器储存敏感内容的算法,使用 Argon2 + AES 加密
use std::fs;
use std::path::Path;
use argon2::{
password_hash::{
rand_core::OsRng,
PasswordHasher, SaltString
},
Argon2
};
use aes_gcm::{
@YukiCoco
YukiCoco / client_exec_interactive_password.rs
Created August 16, 2024 09:59
password impl example using russh to connect server.
///
/// Run this example with:
/// cargo run --example client_exec_interactive -- -u <username> -p <password> <host> <command>
///
use std::convert::TryFrom;
use std::env;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::Duration;
@YukiCoco
YukiCoco / README.md
Last active July 20, 2024 03:59
send notifications via Cloudflare works with simple http request to telegram account.
  1. get account id and bot token via https://t.me/BotFather and https://t.me/getmyid_bot
  2. Fullfill SENDKEY MASTER_ID and TELEGRAM_BOT_TOKEN
  3. Send notifications :
curl https://yourworker.address/your_sendkey_here.send?title=short_title&desp=long_content
@YukiCoco
YukiCoco / quil_install.sh
Created May 31, 2024 09:52
Quil 安装脚本修改版
#!/bin/bash
# Step 0: Welcome
echo "✨ Welcome! This script will prepare your server for the Quilibrium node installation. ✨"
echo ""
echo "Made with 🔥 by LaMat - https://quilibrium.one"
echo "Helped by 0xOzgur.eth - https://quilibrium.space"
echo "====================================================================================="
echo ""
echo "Processing... ⏳"
@YukiCoco
YukiCoco / index.haml
Created January 12, 2024 14:32
KFAKA 跳转
.body
%span
%span
%span
%span
%span
.base
%span
.face
.longfazers
@YukiCoco
YukiCoco / index.js
Created December 5, 2022 10:26
cloudflare worker index
import { getAssetFromKV, mapRequestToAsset } from '@cloudflare/kv-asset-handler'
/**
* The DEBUG flag will do two things that help during development:
* 1. we will skip caching on the edge, which makes it easier to
* debug.
* 2. we will return an error message on exception in your Response rather
* than the default 404.html page.
*/
const DEBUG = false

Keybase proof

I hereby claim:

  • I am yukicoco on github.
  • I am sayokurisu (https://keybase.io/sayokurisu) on keybase.
  • I have a public key ASD8rP2A-vBJzvRrqTLtbv1OIG_0ApZ0XShY_U_EfId1vQo

To claim this, I am signing this object: