memos是一个类似flomo的轻量笔记软件,使用golang编写,笔记格式使用Markdown,数据库使用sqlite存储,官方自带Docker image,非常适合自用做简单的笔记或者文本分享服务。官网 https://usememos.com/源码 https://github.com/usememos/memos![memos_demo_op]()安装推荐使用Docker进行安装version: "3.0" services: memos: image: neosmemo/memos:latest container_name: memos volumes: - /var/memos/:/var/opt/memos #修改/var/memos 到常用的文件存储路径,便于定期备份 ports: - 5230:5230自定义的配置1. memos 隐藏 askai 按钮#版本 0.11.2 header > div.w-full.px-2.py-2.flex.flex-col.justify-st
使用Cloudflare Tunnel配合Loon或者Surge安全访问家里的网络内网穿透的方案很多,Cloudflare的ZeroTrust产品中Tunnel的功能也是比较常用的那种,虽然速度不快,但是稳定性还可以。本篇记录一下我如何使用Cloudflare tunnel进行内网穿透。Tunnel的穿透功能主要有两种,一种是public host,即将服务暴露在公网,简单方便添加,默认支持HTTPS访问,应急使用一下还是不错的。另一个是Private network,即私密网络,需要安装Cloudflare WARP客户端(1.1.1.1)才能访问。一、安装Cloudflared访问zerotrust,点击create tunnel 按照其中指引在本地设备例如NAS或者openwrt路由器上安装以下是我的compose文件,供参考version: "3" services: tunnel: container_name: cloudflared-tunnel image: cloudflare/cloudflared network_m
由于最近需要在Linux服务器上跑一个较长时间执行的脚本,在NAS上安装了一个Python的docker容器,之前想使用nohup执行,但是nohup后,无法再进行交互,于是想到试一下使用screen.安装screen需要在运行命令的环境里面安装screen,即在docker的python容器中安装screen, screen是一个老的软件了,官方员中就有,使用如下命令就可以完成安装。sudo apt update && apt install -y screen基本使用使用screen bash 即可以打开一个新的bash命令窗口。安装ctrl+a,松开a,再按d,即可退出当前会话。screen -ls 查看所有活动的会话。第一个数字就是会话的pidscreen -r 挂载上次的会话。如果上次意外关闭窗口,导致上次的会话是attached的状态的话,可以运行 screen -d pid将会话取消挂载,再运行screen -r pid将会话挂载到当前会话。
还是使用一个内容管理工具吧。安装使用的Docker安装的 typecho,主要就是不用配置环境,数据库也是使用的 SQLite,也没有访问量,也没有什么文章内容,不需要安装一个那么功能完整的数据库。启动 Docker 时需要注意的就是要执行一下修改文件夹权限,否则写 SQLite 的文件会出现问题。登录到容器的命令行中,然后执行如下命令,再重启一下容器。chown -R www-data:www-data /app/usr参考 https://blog.laoda.de/archives/docker-compose-install-typecho/index.html主题使用的是https://github.com/liaocp666/Jasmine 这个主题,不过主题的字体都是粗体,看上去有点奇怪。
lizhimiao
加油