grafana

grafana 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 docker pull grafana/grafana:12.0.2 docker run -d --name=grafana -e "GF_SECURITY_ADMIN_PASSWORD=password0" -p 3000:3000 -v grafana-storage:/var/lib/grafana -v /etc/localtime:/etc/localtime:ro grafana/grafana:12.0.2 # podman podman run \ -d \ --name=grafana \ -e "GF_SERVER_ROOT_URL=http://grafana.wiloon.com" \ -e "GF_SECURITY_ADMIN_PASSWORD=password0" \ -p 3100:3000 \ -v grafana-storage:/var/lib/grafana \ -v /etc/localtime:/etc/localtime:ro \ grafana/grafana:8.5.6 # in

RSSX

RSSX A RSS Reader redis key 某一个feed的 所有 news id,按时间排序的 key: feed_news:feedId0 type: sort set, zset value: newsId 文章内容 key: news:newsId0 type: hash value: 文章内容, 数据量最大 记录用户阅读位置 用已读索引和

telegraf

telegraf 1 2 # archlinux, telegraf yay -S telegraf-bin ubuntu && debian 1 2 3 4 5 6 7 # influxdata-archive_compat.key GPG fingerprint: # 9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E wget -q https://repos.influxdata.com/influxdata-archive_compat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list sudo apt-get update && sudo

Ceph

Ceph Ceph是一个统一的分布式存储系统,设计初衷是提供较好的性能、可靠性和可扩展性。 Ceph项目最早起源于Sage就读博士期间的工作(最早的成

Java 压缩字符串

Java 压缩字符串 https://www.cnblogs.com/EasonJim/p/8256906.html 说明: 一般来说要实现压缩,那么返回方式一般是用byte[]数组。 研究发现byte[]数组在转成可读的String时,大小会还原

usb win10

usb win10 https://www.microsoft.com/zh-cn/software-download/windows10ISO Rufus https://rufus.ie/ 简单几步制作 Windows 10 正式版U盘可启动安装盘图文教程 (全新安装Win10) https://www.iplaysoft.com/windows-10-udisk-install.html/embed#?secret=a084u1M2LZ

let's encrypt, nginx, debian

let’s encrypt, nginx, debian sudo apt-get install certbot python-certbot-nginx -t stretch-backports sudo certbot –nginx https://certbot.eff.org/lets-encrypt/debianstretch-nginx https://www.jianshu.com/p/c5c9d071e395

网络唤醒, Wake On LAN, WAL

网络唤醒, Wake On LAN, WAL 华硕 BIOS 设置 1 Advanced> APM Configuration> Power on by PCI-E/PCI 1 2 3 4 5 6 # archlinux, wol pacman -S wol wol -i 192.168.50.255 -p 9 1c:b7:2c:af:9a:6a # -i 192.168.50.255, 广播地址 # -p 9, 端口 9,大多数以太网卡都支持 9, 也可以尝

aliyun oss, 对象存储, ossutil

aliyun oss, 对象存储, ossutil aliyun oss, ossutil install ossutil 1 sudo -v ; curl https://gosspublic.alicdn.com/ossutil/install.sh | sudo bash 1 2 3 4 5 # 生成配置文件, stsToken 可以置空 ossutil config ./ossutil cp a -f oss://my-bucket/path ./ossutil64 cp /root/tmp/wordpress.sql -f oss://wiloon-backup/ https://help.aliyun.com/document_detail/50561.html?spm=a2c4g.11186623.6.1283.2e0655b7qtA1Md https://help.aliyun.com/document_detail/120075.html

procd

procd https://openwrt.org/docs/guide-developer/procd-init-scripts https://blog.csdn.net/liangdsing/article/details/53906445 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #!/bin/sh /etc/rc.common # Copyright (C) 2008 OpenWrt.org #执行的顺序,按照字符串顺序排序并不是数字排序 START=98 #使用

介词, Preposition, prep.

介词, Preposition, prep 介词(Preposition 简写prep.) 介词又被称作前置词,是表示名词、代词等与句中其他单词之间的关系的词汇,在句中不能单独作

aliyun ddns

aliyun ddns https://github.com/honwen/aliyun-ddns-cli 1 2 3 4 5 6 7 8 9 aliyun-ddns-cli --access-key-id=ak0 --access-key-secret=sk0 auto-update --domain=domain0.wiloon.com --redo=600 docker run -d \ -e "AKID=[ALIYUN's AccessKey-ID]" \ -e "AKSCT=[ALIYUN's AccessKey-Secret]" \ -e "DOMAIN=ddns.aliyun.win" \ -e "REDO=600" \ -e "TTL=600" \ chenhw2/aliyun-ddns-cli jeessy2/ddns-go https://github.com/jeessy2/ddns-go

owncloud,cozy, nextcloud, Cloudreve

owncloud,cozy, nextcloud, Cloudreve Cloudreve ☁️ 支持本机、从机、七牛、阿里云 OSS、腾讯云 COS、又拍云、OneDrive (包括世纪互联版) 作为存储端 📤 上传/下载 支持客户端直传

Linux密码策略

Linux密码策略 1 authconfig --passminlen=8 --passmaxrepeat=3 --enablereqlower --enablerequpper --enablereqdigit --enablereqother --update 基于RHEL的系统 (RHEL CentOS Scientific) RHEL7,CentOS7,Scientific7 设置密码中至少包含一个小写字符,执行命令: authconfig -enablereqlower -update 查看设置: grep “^lcredit” /etc/security/pwquality.conf 设置密码中至少

golang file,文件操作

golang file,文件操作 文件大小 1 2 3 4 5 6 7 func main() { fi,err:=os.Stat("water") if err ==nil { fmt.Println("file size is ",fi.Size(),err) } } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

WebDAV

WebDAV Web 分布式创作和版本管理 (WebDAV) 是 HTTP 协议的扩展,支持将 Web 服务器显示为标准的网络驱动器。WebDAV 客户端默认安装在大部分常见的操作系统上,可用于直

raspberry pi nfs server

raspberry pi nfs server 1 2 3 4 5 6 7 8 9 10 11 12 13 #安装 NFS 服务器 sudo apt install nfs-kernel-server vim /etc/exports # 添加如下内容以允许所有可以访问 NAS 云盘的设备挂载存储: /nas/data *(rw,sync,no_subtree_check) # restart nfs server systemctl restart nfs-kernel-server # 在另一

ACL (Access Control List)

ACL (Access Control List) https://www.cnblogs.com/sparkdev/p/5536868.html ACL的全称是 Access Control List (访问控制列表) ,一个针对文件/目录的访问控制列表。它在UGO权限管理的基础上为文件系统提供一个额外的、更灵活