redis config redis 配置

redis config redis 配置 sample, 单机 redis server 配置 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

nodejs basic

nodejs basic version current v14.21.3 latest v21.6.2 nvm, Node Version Manager https://github.com/nvm-sh/nvm 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 # macos install nvm brew install nvm # ubuntu 24.04 install nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash # archlinux install nvm pacman -S nvm # Due to the way nvm is designed, you have to source it before

kde config, kde 配置

kde config, kde 配置 显示器亮度问题 通过 dbus 设置亮度 1 2 3 4 5 dbus-send --session --print-reply \ --dest=org.kde.Solid.PowerManagement \ /org/kde/Solid/PowerManagement/Actions/BrightnessControl \ org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness \ int32:6000 kde idea 图标消失 Open folder /home/USERNAME/.local/share/applications/ Find jetbrains-idea.desktop Right mouse click on it, then select Properties Open Application tab Next to the Command section click Browse… button and select idea.sh file in

idea install

idea install default plugins build tool ant - disable maven gradle version control cvs - disable mercurial - disable git subversion github test tools junit testng-j - disable swing - disable android - disable othre tools plugin development - disable

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 设置密码中至少