Skip to content

Instantly share code, notes, and snippets.

View Kuri-su's full-sized avatar
❄️
DeepIn && Focus

Kurisu_Amatist Kuri-su

❄️
DeepIn && Focus
View GitHub Profile
@Kuri-su
Kuri-su / ethToken.md
Last active March 31, 2024 01:59
#Ethereum 发币

{"title":"Ethereum 发币","type":"blogGist","show":true,"description":"Ethereum 发币过程记录"}

前置准备

  1. 浏览器安装 MetaMask ,获得一个 ETH 地址,假设地址 A

    用作支付 ges (油费)和接收币的钱包

  2. 向 ETH地址 A 中充值 0.01 左右的ETH (大概 8.5 RMB(20190112))

    用作油费

@Kuri-su
Kuri-su / devstack_install_openstack.md
Last active February 14, 2024 06:09
#ubuntu 上使用 devstack 安装 Openstack

{"title":"Ubuntu 上使用 Devstack 安装 Openstack","type":"blogGist","show":true,"description":"来自献祭了四个晚上的怨念","tag":["linux"]}

在献祭了四个晚上之后, 终于在 ubuntu 上用 devstack 成功安装 openstack, 那么请问成功的秘诀是什么, 成功的秘诀就是, 别看 CSXN 上的那些教程, 一顿操作猛如虎, 最后完全安装不上. 一个 local.conf 文件几百行, 结果最后 几行的 local.conf 更加顶用, 另外千万别设置国内的 git 镜像, 虽然拉的慢, 但是能跑! 也不要拉那些很老的稳定分支, 直接拉 master 即可.

下面将介绍如何在 Ubuntu 上安装 devstack, 绝对没有猛如虎的操作, 简单佛系低门槛安装.

  1. 准备
@Kuri-su
Kuri-su / openwrt.md
Last active May 19, 2023 09:21
#access the server under the second layer network in OpenWrt route system

{"title":"access the server under the second layer network in OpenWrt route system","type":"blogGist","show":true,"description":"在 OpenWrt 下, 访问 二层网络下的服务器","tag":["openwrt"]}

在 OpenWrt 下, 访问 二层网络下的服务器

基于 静态路由

$x$

背景

@Kuri-su
Kuri-su / ranger.guide.md
Last active February 17, 2022 08:53
#ranger

{"title":"Ranger","type":"blogGist","show":true,"description":"终端下的文件管理器","tag":["Tools"]}

Install

# Ubuntu / Debian
$ sudo apt install ranger -y
# Centos/ RHEL
@Kuri-su
Kuri-su / satis_config_summary.md
Last active February 12, 2022 22:22
#Composer/satis极速搭建Composer私有源

{"title":"composer/satis 配置文件介绍","type":"blogGist","show":true,"description":"composer/satis 搭建 Composer 私有源(BD)"}

composer/satis 极速搭建 Composer 私有源

前置操作(satis安装)

#这里的 /var/www/packagist.satis.cc 只是举个例子,以自己实际的文件夹为准
git clone https://github.com/composer/satis.git  /var/www/packagist.satis.cc
@Kuri-su
Kuri-su / mixinNetworkWhitePaper.md
Last active February 11, 2022 09:20
#Mixin Network WhitePaper [zh-CN]
@Kuri-su
Kuri-su / GowebBenchmarkTestingTips.md
Last active January 10, 2022 04:43
#Golang Web 程序 单服务压力测试要点

{"title":"Goweb Benchmark Testing Tips","type":"blogGist","show":true,"description":"Golang Web 程序 单服务压力测试要点","tag":["golang"]}

这篇文章讨论范围仅限于 Golang webApp 单服务压测, 而不涉及链路压测等场景

压测的目的

在讲 压测的指标之前,我们需要先明确一下压测的目的, 压测不是压的出最高的 QPS 就OK ... 我们还需要关注 Web App 在 各种压力下, 对应的 指标表现 . 同时, 利用压测找出 App 或 框架 最适合的 压力范围 也是 非常重要的报告内容. 基于这些 压测数据 和 报告, 我们就能更好的 选型 和 资源调配.

指标

@Kuri-su
Kuri-su / genericityInGolang_1_17.md
Last active August 21, 2021 14:21
#The difference between genericity in Golang 1.17 and genericity in others PL

{"title":"The difference between genericity in Golang 1.17 and genericity in others PL","type":"blogGist","show":true,"description":"golang 中的泛型和其他的语言中的泛型"}

Genericity in Golang 1.17

[TOC]

泛型编程(Generic Programing)是 程序设计语言 的一种风格 或者 范式, 允许开发者在 强类型语言 中 编写一些 运行时才决定的类型. 这将提升在 强类型语言 中 代码的灵活度, 并让开发者写出更加简洁的代码. 各个语言中都有各种对 泛型 的支持 :

  • C#, Java, .Net, Rust, Swift, TypeScript, Golang 中称为 泛型
  • Scala, Jiula, Haskell 中称为 参数多态
@Kuri-su
Kuri-su / opentracingNote.md
Last active June 11, 2021 10:27
#Opentracing note

{"title":"Opentracing note","type":"blogGist","show":true,"description":"Opentracing 笔记","tag":["cloudnative"]}

Opentracing note

[TOC]

Opentracing 是在分布式追踪的一个通用标准, 提供一系列 平台/厂商/具体实现 无关的 Api, 使得开发人员能够方便的添加和切换 Tracing 系统的实现.

但在此之前, 需要定义什么是 Trace, 也就是分布式追踪中的最小单位, 怎么定义一个链路, 或者一次链路.

@Kuri-su
Kuri-su / cryptonoteWhitepaper.md
Last active May 8, 2021 03:52
#Cryptonote whitepaper [zh-CN]

{"title":"(zh-CN) Cryptonote whitepaper ","type":"blogGist","show":true,"description":"Cryptonote 白皮书 中文翻译"}

点击下方链接, 阅读 PDF

link: zh_cn_cryptonote_whitepaper.pdf