0%

In the One and only Ivan, there is a grilla named Ivan. All the people in the mall thinks he is a calm, cute and smart grilla. But actually, Ivan gets mad and angry and fustrayted in one of the moments in the story. I found this quite unexpected, I myself, when reading this part of the book, is awstuck by this temper Ivan was having.

Extract

I bounce off the walls. I screech and bellow. I beat and beat and beat my chest. Bob hides under Not-Tag, his paws over his ears. I’m angry, at last. I have some one to protect.

安装

一个名为 “Vim-plug” 的 Vim 插件管理器。

Vim-plug 是一个自由、开源、速度非常快的、极简的 vim 插件管理器。它可以并行地安装或更新插件。你还可以回滚更新。

安装只需打开终端并运行以下命令:

1
2
3
4
mkdir ~/.vim
mkdir ~/.vim/autoload
mkdir ~/.vim/plugged
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

安装插件

要安装插件,你必须如下所示首先在 Vim 配置文件中声明它们。一般 Vim 的配置文件是 ~/.vimrc,在配置文件中声明插件时,列表应该以

1
call plug#begin(PLUGIN_DIRECTORY) 

开始,并以

1
plug#end()

结束。

例如,安装 “lightline.vim” 插件。为此,需在 ~/.vimrc 的顶部添加以下行。

1
2
3
call plug#begin('~/.vim/plugged')
Plug 'itchyny/lightline.vim'
call plug#end()

在 vim 配置文件中添加上面的行后,通过输入以下命令重新加载:

1
:source ~/.vimrc

或者,只需重新加载 Vim 编辑器。

打开 vim 编辑器,使用以下命令检查状态:

1
:PlugStatus

然后输入下面的命令,然后按回车键安装之前在配置文件中声明的插件。

1
:PlugInstall

更新插件

要更新插件,请运行:

1
:PlugUpdate

更新插件后,按下 d 查看更改。或者,你可以之后输入 :PlugDiff

审查插件

有时,更新的插件可能有新的 bug 或无法正常工作。要解决这个问题,可以简单地回滚有问题的插件。输入 :PlugDiff 命令,然后按回车键查看上次 :PlugUpdate的更改,并在每个段落上按 X 将每个插件回滚到更新前的前一个状态。

删除插件

删除一个插件删除或注释掉你以前在你的 vim 配置文件中添加的 plug 命令。然后,运行:source ~/.vimrc或重启 Vim 编辑器。最后,运行以下命令卸载插件:
:PlugClean
该命令将删除 vim 配置文件中所有未声明的插件。

升级 Vim-plug

要升级vim-plug本身,请输入:
:PlugUpgrade

以上文章摘自链接:https://www.jianshu.com/p/0c83e6aed270

在网上看到中文格言库,觉得不错,于是就在树莓派上学习了fortune的安装与使用,发现并改正了一个小问题。

安装

sudo apt-get install fortune

设置

使用方法可以通过 man fortune查看。

使用过程中,发现从别处git clone来的数据文件有问题,无法显示,需要重新生成索引文件。命令是:

1
2
cd /usr/share/games/fortunes/
strfile -c % <datafile> <datafile.dat>

如果要添加新的fortune文件,可以编辑新文本文件,段与段之间用单独一行的%分割,然后用上面的strfile语句生成索引文件即可。

下一步准备做一个拉丁语格言库,并把它添加到motd中。

电脑ssh连接Termux

安装openssh

同样也需要openssh才可以

pkg install openssh

启动sshd

安装完成后,sshd服务默认没有启动,所以得手动启动下:

sshd

因为手机上面低的端口有安全限制,所以这里的openssh默认的sshd默认的服务是8022端口上的.ssh的用户名用whoami命令看下.

可以看到sshd启动后,端口才可以看到.

PC端生成公钥

ssh登录是key公钥模式登录,首先在PC端生成秘钥:

ssh-keygen -t rsa

执行完成后,会在家目录下创建3个文件

id_rsa, id_rsa.pub , known_hosts

拷贝公钥到手机

然后把公钥id_rsa.pub拷贝到手机的data\data\com.termux\files\home.ssh文件夹中.

将公钥拷贝到验证文件中

在Termux下操作

cat id_rsa.pub > authorized_keys

PC端连接手机termux

ssh -p8022 u0_a119@192.168.1.3

以上内容转自网络,网址为http://www.sohu.com/a/230807930_354899

印象中以前曾经配置成功过,然后今天准备使用时,不知为何总是无法连接。后来考虑,可能是我在电脑上换了客户端,导致秘钥发生了变化所致。一气之下,干脆把原来的秘钥清空,重新生成在git bash客户端下的秘钥,然后就配置成功并成功登陆了。

Some people believe that famous sports people are paid too much money, wheras others think famous sports people are not paid too much money. I personally believe famous people are not paid too much money.

Firstly, famous sports people provide us with huge entertainment. We will always cheer them on in front of the TV screen, and we will hoot and hollar. All of this are their doing to make us excited.

Secondly, famous sports people work very hard. They will train for years and years just for a prize at a competition. We can use a frase to describe them. “For one minute on stage, for ten years to train under stage.” So they are living a hard life.

And moreover, the famous sports people can teach us things we need to know in our lifetime, such as “No pains no gains”.

To sum up, famous sports people are not paid to much money.

Dear Sir,

I notice this advertisement in the online magazine Global Food yesterday, and I think I might be suitable for the job as a Restaurant reviewer.

I have a tood taste with the restaurant’s view, so my pictures are the best. My photos are excellent in the light and I have learnt from a famous photographer how to beautify the photographs that I have taken.

And also I am really interested in and memorize the different types of food qround the globe. Recently, I have been training to be a brilliant gastrologist. And I already love tasting food and estimate them. The evaluation I make is the most real.

Moreover, the level of English I have is great. I can use English to speak to foreigners and I am very familiar with the dollars they use. My English is perfect.

I hope you can give this job to me, thank you.

Yours sincerely,

X-woman

Jun. 4, 2019

Dear sir,

I noticed this advertisement about working in a holiday club for English speaking children in our yesterday’s local newspaper and I think I might be qualified for this job as a volunteer.

I have a wonderful experience of working with children because in the present, I am constantly helping out at our local kindergarten. The children and teachers all like me because I tell wonderful stories and I am a great teacher.

My knowledge of English I cannot say is the best, but is better than most people of my age.{I dare not to say that my knowledge of English is the best, but it must be better than most people in my age.} I have attended many competitions about the English language and have always won prizes.

And also, I would be suitable for the job because I am patient and fun, I can teach the children enjoyable English games and word puzzles to get their attentions. I can always tell them a joke or two to cheer them up when they are under the weather.

I hope you can give me this job,if so, I will be very geateful.

Yours sincerely,

X-woman

Jun.4,2019

Many people say that the private lives of famous people should be made public, however others say the private lives of famous people should not be made public and I personally agree with this opinion.

Firstly, I couldn’t hide the fact that the public have great interest in famous people. They are always asking for an autograph or wanting to take a photo of the famous people they meet. Normal people would think this a honor, but the people who are famous don’t think so, they fell uneasy under this circumstance. The same with their private lives.

Secondly, famous people are role models for us. Any one would want to be like them, and they want to learn from the famous people. They are like, heros, to us normal people. So they don’t always want to say their real identity.

To sum up, the private lives of famous people should not be made public, I think.

七點五十八,

商量--

八點二十發。

A rusted car drove noisily up the street in front of an old fashioned apartment. The driver side door is hanging on its edges. A person got out, he is skinny and black, he worn glasses too. He walked up to the door and tried to open it, no luck, the person cursed, than he shouted with all his strength: “Armpit!”

A huge black guy wearing only patched up pajamas appeared at the door, he said sleepily: “ Hey X-ray! Man, you are early.” X-ray smiled: “I wouldn’t have been early if you are not my best friend!” X-ray and Armpit have known each at camp green lake, “So, you are going to dine out with your girl friend and me?” “Zzzzz…” “Armpit dude!” “Oh! What? Yeah, we are going to a place called China town.” Armpit yawned and said, on the verge of sleeping, “ Oh, man! you can come in a moment. If you don’t mind, I am having a pillow lust at the moment.” With these words, he went up the creaking staircase and closed the door.

“ Well, I think I should take a nap too. Zzzz……”