How to use Filebrowser
InstallationFilebrowser is a single binary that can be used as a standalone executable. Alternatively, you can use it with Docker or Caddy, a fantastic web server that enables HTTPS by default. Its installation is straightforward regardless of the system you use. Using Brew Note: Brew is available for both Linux and macOS. [[How to install Brew]] 123brew tap filebrowser/tapbrew install filebrowserfilebrowser -r /path/to/your/files Tip: Configure Filebrowser before running it for the first...
Install-Brew
IntroductionHomebrew is a package distribution manager for both MacOS and Linux InstallationOfficial website Just run the command below: 1/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Frequent Questions:[[How to proxy your local traffic]]
How to add user in Linux and MacOS
Linux 与 MacOS 用户管理命令详解Introduction在 Linux 系统中,使用 useradd 命令可以添加新用户。以下是一些常用的 useradd 命令的用法和示例。 基本语法1useradd [选项] 用户名 常用选项 -m:创建用户的主目录(通常在 /home/username)。 -s:指定用户的默认 shell(例如 /bin/bash)。 -G:将用户添加到一个或多个附加组(用逗号分隔)。 -d:指定用户的主目录。 -e:设置用户的过期日期。 -r:创建一个系统用户(通常没有主目录)。 示例创建一个基本用户创建一个名为 newuser 的普通用户: 1sudo useradd newuser 创建一个用户并指定主目录创建名为 newuser 的用户并创建 /home/newuser 作为主目录: 1sudo useradd -m newuser 创建一个用户并指定默认 shell创建名为 newuser 的用户,主目录为 /home/newuser,默认 shell 为 /bin/bash: 1sudo useradd -m -s...
Why MacOS Doesn't Use `systemd`?
为什么 macOS 没有像 journalctl 那样统一的日志管理方式? 设计哲学差异 macOS 的设计哲学与 Linux 不同。macOS 更注重简洁和“透明”的用户体验,许多日志和系统管理工具被设计得较为分散。launchctl、syslog 和 log 工具各自承担不同的功能,使系统组件和日志管理更加模块化。相比之下,Linux 倾向于统一管理(如 systemd 和 journalctl),通过单一工具集中管理所有服务和系统日志。 兼容性与历史原因 macOS 的内核和用户空间组件有着历史延续性,launchd 和 syslog 等工具自早期版本就已存在。而 journalctl 是随着 systemd 在现代 Linux 发行版中普及后发展起来的。macOS 架构独立,不依赖 systemd,因此也没有统一的日志管理工具。 用户层级的简化 launchctl 和 log 工具主要面向系统管理员和开发者。macOS 更倾向于为普通用户提供图形化界面(如系统偏好设置、活动监视器等),而 Linux 更注重命令行工具的强大功能。因此,launchctl...
How to penetrate NAT via FRP
Deploy FRP ServerInstall FRPOfficial Repository: FRP Download the latest release for your operating system and architecture from the Release page. Here, we use Linux amd64 as an example: 1wget https://github.com/fatedier/frp/releases/download/v0.62.1/frp_0.62.1_linux_amd64.tar.gz After downloading, you should see: 12root@cc:~/download# lsfrp_0.62.1_linux_amd64.tar.gz Extract the archive using tar (see [[tar]] for more information): 123456789root@cc:~/download# tar -zxvf...
派生
英语派生构词是通过添加前缀(prefix)或后缀(suffix)来改变单词的意义或词性,形成新的单词。这种方法是英语词汇扩展的重要途径。以下是常见的前缀和后缀的归纳,以及对应的示例。前缀(Prefix)前缀通常放在词根前面,改变单词的含义,但通常不改变单词的词性。 1. 表示否定或反义的前缀un-: 表示“否定、不”。 example: unhappy(不开心的), unable(不能的) in-/im-: 表示“否定、不”。 example: incorrect(不正确的), impossible(不可能的) il-: 表示“否定、不”(用于以 l 开头的单词)。 example: illegal(非法的) ir-: 表示“否定、不”(用于以 r 开头的单词)。 example: irregular(不规则的) dis-: 表示“否定、取消”。 example: dislike(不喜欢), disconnect(断开) non-: 表示“非、不”。 example: nonviolent(非暴力的), nonlinear(非线性的) 2....
英语构词法
派生与中文类比注意:派生并不完全等于构词法 让固定的字母组合表示某种含义,类似于偏旁部首的感觉. For example: 氵:表示和水有关: 江、河、湖、海 hydr:表示和水有关:(来自希腊语)water:(来自日耳曼语) hydrate:水合物 hydrous:含水的 英语词汇通史{:height 394, :width 687} 其中日耳曼语往往多出现于日常生活,词汇更加简单,而希腊语,拉丁文和法语则更多出现于正式场合。 希腊语 -> 英语:telephone,grammar 西班牙语 -> 英语:mosquito,tornado 意大利语 -> 英语:lava,volcano 荷兰语 -> 英语:boss,cookie 波斯语 -> 英语:paradise,chess 澳大利亚土著语 -> kangaroo 阿拉伯语:alcohol,cotton 土耳其语:coffee 日本语:kimono(和服),samurai(武士) 印地语:shampoo 因纽特语:kayak(木舟),igloo(圆顶小屋) 中文->英文:茶...
词根、前缀、后缀
英语单词构词法 前缀第1节 表示否定意义的前缀(1) 纯否定前缀a-, an-: asymmetry (不对称), anhydrous (无水的) dis-: dishonest, dislike in-, ig-, il-, im-, ir-: incapable, inability, ignoble, impossible, immoral, illegal, irregular ne-, n-: none, neither, never non-: nonsense un-: unable, unemployment (2) 表示“错误”的意义male-, mal-: malfunction, maladjustment (失调) mis-: mistake, mislead pseudo-: pseudonym (假名), pseudoscience (伪科学) (3) 表示“反动作”的意思de-: defend, demodulation (解调) dis-: disarm, disconnect un-: unload, uncover (4)...
介词
介词的原理Introduction名词和介词在现实世界中看的着摸得见,但是介词不一样,往往抽象难以理解。 牛津词典对10亿单词做出分析后,列出了英语中最常用的单词。其中最常用的30个单词中,10个就是介词。足以说明介词在英语使用中非常重要。 Official Website 据说介词这个术语来自清朝末年的语言学家马建忠老师,原话是: 凡虚字用以连实字相关之义者,曰“介词”。介字云者,犹为实字之介绍耳。 也就是说介词是为了介绍实词而存在的,其中实词代表具体的,有意义的词,甚至是看得见摸得着的东西。与实词相对的就是虚词。 在英文中,介词为:preposition,这个词本身符合英语构词法,pre表示在前的,position是位置。即前置词。介词通常是放置在名词,代词前,给他们增加附加信息的词。 介词的附加信息:时间信息,空间信息,方式信息,逻辑信息(原因, 目的,对象) 时间信息: 我在8点前吃饭。- before 我在8点时吃饭。- at 我在8点后吃饭。- after 空间信息 我在屋子里吃饭。- in 我在屋子外吃饭。- out 猫在桌子上吃饭。-...
语气
谓语动词的三大本领时间 状态 语气 语气陈述语气(Indicative Mood)描述现实:I ate the apple. 疑问语气 与陈述语气对应 Did I eat the apple? 祈使语气(Imperative Mood)命令、请求 Eat that apple. 实际上是第二人称的陈述语气的省略版 -> You eat that apple. Give me a five. -> You give me five. 虚拟语气(Subjunctive Mood)1. 表示对”不可能”的假设与现在事实相反 Chinglish: If I am a bird, I will fly to somewhere I enjoy. English: If I were a bird, I would fly to somewhere I enjoy.(这里不论人称全都用were) 与将来事实相反(将来要发生的事件可能性极小) NOTE: 这行不是虚拟语气:If I (shall) get 80 in English test next time, I...