Skip to content

Instantly share code, notes, and snippets.

@yuchangyuan
yuchangyuan / ceph.org
Created February 6, 2015 12:44
ceph notes

Ceph setup

Setup

Write config

Create /etc/ceph/ceph.conf

[global]
auth cluster required = none
auth service required = none
auth client required = none
@yuchangyuan
yuchangyuan / gnus-from-completion.el
Created April 8, 2017 10:53
gnus from field auto completion
(defvar my-smtp-list
'(("aa@bb" "AA BB")
("cc@dd" "西西滴滴")
("ee@ff" "EeFf"))
"A list of smtp account.")
(defun my-complete-sender ()
"Complete email sender, from `my-smtp-list'."
(interactive)
(let* ((lst (mapcar
@yuchangyuan
yuchangyuan / generic.nix
Created May 30, 2017 11:52
modified version of generic.nix for ceph v10
{ stdenv, ensureNewerSourcesHook, autoconf, automake, makeWrapper, pkgconfig
, libtool, which, git
, boost, python2Packages, libxml2, zlib
# Optional Dependencies
, snappy ? null, leveldb ? null, yasm ? null, fcgi ? null, expat ? null
, curl ? null, fuse ? null, accelio ? null, libibverbs ? null, librdmacm ? null
, libedit ? null, libatomic_ops ? null, kinetic-cpp-client ? null
, rocksdb ? null, libs3 ? null
@yuchangyuan
yuchangyuan / fix-pythonpath.patch
Created May 30, 2017 11:54
fix-pythonpath.patch for ceph v10
diff -uwr a/src/ceph-detect-init/Makefile.am b/src/ceph-detect-init/Makefile.am
--- a/src/ceph-detect-init/Makefile.am 2017-05-22 21:37:40.616023663 +0800
+++ b/src/ceph-detect-init/Makefile.am 2017-05-22 22:11:14.728173931 +0800
@@ -69,12 +69,13 @@
if test "$(DESTDIR)" ; then \
if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \
options=--install-layout=deb ; \
- else \
- options=--prefix=/usr ; \
fi ; \
@yuchangyuan
yuchangyuan / ceph-v10.nix
Created May 30, 2017 11:55
nix package of ceph v10
pkgs.callPackage ./generic.nix (rec {
version = "10.2.7";
src = pkgs.fetchgit {
url = "https://github.com/ceph/ceph.git";
rev = "refs/tags/v${version}";
sha256 = "0q49mkkphl2wlvbix09kbyj9sgv838zhi96dx3zs79kqmacn2mm6";
};
patches = [ ./fix-pythonpath.patch ];
0xdca7569ae1206435959e332a1a2aa936a2d52ae5
@yuchangyuan
yuchangyuan / ceph.org
Created November 14, 2017 06:49
ceph notes

Ceph setup

Setup

Write config

Create /etc/ceph/ceph.conf

[global]
auth cluster required = none
auth service required = none
auth client required = none
@yuchangyuan
yuchangyuan / dweb_l504.org
Created May 4, 2021 05:45
dweb 2020-05-04 note

DWeb社区的讨论

jiang、Yu Changyuan, 2021-05-04

关于DWeb Community Call活动

  • 坚持大约每月1次的频度,只要有人参加,人稍微少点没关系;
  • 坚持每次分享者和参与者的交流形式,而非报告者和听众单向灌输的形式;
  • 要求外国朋友进行分享,但社区需要给分享者足够的反馈;

关于dweb china的域名的使用

  • dweb china这个域名(网站)定位于国内(或汉语圈)DWeb相关信息的聚合网站;
apikey="API_KEY TO FILL"
function up_txt {
host="$1"
val="$2"
remote="https://zonomi.com/app/dns/dyndns.jsp"
url="${remote}?host=${host}&api_key=${apikey}&ttl=300&type=TXT&value=${val}"
#curl -k -s "$url" &> "/var/lib/letsencrypt/dns_txt.${host}.log"

Keybase proof

I hereby claim:

  • I am yuchangyuan on github.
  • I am yuchangyuan (https://keybase.io/yuchangyuan) on keybase.
  • I have a public key ASAlhyo5o7BImRtexaY7gWkFrIgh8ZRczCMsegZYv6_4aQo

To claim this, I am signing this object: