Establish SSH connection through SOCKS5 proxy
1. IntroductionAs we all know, sometimes, it’s hard for us to connect our remote server directly or the connection is not stable, we have to conduct some method to access our remote server. 2. Method2.1. Using some 3rd party applicationFinalShell: We can set proxy directly 2.2. WindowsIt’s not friendly to Windows TODO 2.3. LinuxWe can use nc and ssh itself to proxy ssh trafic. 1ssh -o "ProxyCommand=nc -x socks_proxy_host:socks_proxy_port %h %p"...
Self-host remote git repository
1. IntroductionAs we all know, Github is the most famous code repository hosting and management platform, which based on Git. In the most cases, you might be never consider about the difference from git and github, but we have to know, Git and Github is not the same thing. In this page, we will not introduce more details about git and github. But sometimes, maybe you don’t want to push your code to github because you wouldn’t like publish your creativity or work. You absolutely can use the...
Connect your Remote Service from SSH forwarding
IntroductionConnect your private service from SSH is really meaningful, if you visit your Personal Document/Information/Private Key, this is a good method. 1. Start your remote service on your cloud computerWe can see that our opened service is a web service, to speak of, I have already deploy my service on https, if you have not deploy your ssl certification, the best way is accessing your service from ssh forwarding. 2. Install and Config SSH Connection3. Connect SSH and Set SSH...
Write Git commit
如何优雅地写 Git Commit写出优雅的 Git Commit 是一个持续改进的过程,不仅为了自己,更是为了团队协作和项目可维护性。 核心原则:清晰、简洁、一致、可追踪 1. Commit 结构的艺术 (必学!)标准的 Git Commit 结构包含两个主要部分:标题行(Summary Line)和主体(Body)。 标题行 (Summary Line): 简洁明了的概括 必填,且是最重要的部分。 不超过 50 个字符: 便于快速浏览。 使用祈使句(Imperative Mood): 动词开头,像给代码下达命令。例如:Add feature X,Fix bug Y。 开头大写。 不要在末尾加句号。 简洁有力: 准确概括本次提交的主要目的。 示例: Fix: Correct typo in documentation Feat: Implement user authentication Refactor: Improve performance of data processing 主体 (Body):...
Compile LaTeX code at local environment
IntroductionWhen you are writing your paper or documents on LaTeX, you have to face an inevitable issue, that is compiling you LaTeX code to pdf. As for beginners of researchers, they may choose to use Overleaf, it is very simple to use, but when your documents or paper are becoming more and more bigger, overleaf will charge to you. So why don’t I compile it by myself? In this section, I will record how to compile LaTeX code in local. 1. Prepare your LaTeX code.1.1. Edit with your...
English Preposition
介词的原理Introduction 名词和介词在现实世界中看的着摸得见,但是介词不一样,往往抽象难以理解。 牛津词典对10亿单词做出分析后,列出了英语中最常用的单词。其中最常用的30个单词中,10个就是介词。足以说明介词在英语使用中非常重要。 Official Website 据说介词这个术语来自清朝末年的语言学家马建忠老师,原话是: 凡虚字用以连实字相关之义者,曰“介词”。介字云者,犹为实字之介绍耳。 也就是说介词是为了介绍实词而存在的,其中实词代表具体的,有意义的词,甚至是看得见摸得着的东西。与实词相对的就是虚词。 在英文中,介词为:preposition,这个词本身符合[[英语构词法]],pre表示在前的,position是位置。即前置词。介词通常是放置在名词,代词前,给他们增加附加信息的词。 介词的附加信息: 时间信息,空间信息,方式信息,逻辑信息(原因, 目的,对象) 时间信息: 我在8点前吃饭。- before 我在8点时吃饭。- at 我在8点后吃饭。- after 空间信息 我在屋子里吃饭。- in 我在屋子外吃饭。-...
English-WordRoot-WordPrefix-WordSuffix
英语单词构词法 前缀第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)...
English Derivative Word
派生词英语派生构词是通过添加前缀(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(非暴力的),...
English Word Building
派生Blog: 派生词Logseq: 派生词 与中文类比 注意:派生并不完全等于构词法 让固定的字母组合表示某种含义,类似于偏旁部首的感觉。例如: 氵:表示和水有关: 江、河、湖、海 hydr:表示和水有关:(来自希腊语 water;日耳曼语) ==hydr==ate:水合物 ==hydr==ous:含水的 英语词汇通史 日耳曼语词汇多用于日常生活,词汇更加简单,而希腊语、拉丁语和法语的词汇更多出现在正式场合。 希腊语 -> 英语:telephone,grammar 西班牙语 -> 英语:mosquito,tornado 意大利语 -> 英语:lava,volcano 荷兰语 -> 英语:boss,cookie 波斯语 -> 英语:paradise,chess 澳大利亚土著语 -> 英语:kangaroo 阿拉伯语 -> 英语:alcohol,cotton 土耳其语 -> 英语:coffee 日语 ->...
English Mood
More details at Logseq 谓语动词的三大本领 时间、状态、语气 语气陈述语气(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...