Tianke Youke

A Base for Secreting and Running at Night

0%

用 Sublime Text 3 太久了,太爱这个配色了。今天上GitHub上找到了,我要把配色方案记下来:

Take a look!

Tomorrow theme variations in shown in TextMate with Ruby code and the font "Menlo".
Ruby Code in Tomorrow Night Ruby Code in Tomorrow Ruby Code in Tomorrow Night Eighties Ruby Code in Tomorrow Night Blue Ruby Code in Tomorrow Night Bright

Hex Palettes

Tomorrow Night

Tomorrow Night
Tomorrow Night

#1d1f21 Background
#282a2e Current Line
#373b41 Selection
#c5c8c6 Foreground
#969896 Comment
#cc6666 Red
#de935f Orange
#f0c674 Yellow
#b5bd68 Green
#8abeb7 Aqua
#81a2be Blue
#b294bb Purple

Tomorrow

Tomorrow
Tomorrow

#ffffff Background
#efefef Current Line
#d6d6d6 Selection
#4d4d4c Foreground
#8e908c Comment
#c82829 Red
#f5871f Orange
#eab700 Yellow
#718c00 Green
#3e999f Aqua
#4271ae Blue
#8959a8 Purple

Tomorrow Night Eighties

Tomorrow Night Eighties
Tomorrow Night Eighties

#2d2d2d Background
#393939 Current Line
#515151 Selection
#cccccc Foreground
#999999 Comment
#f2777a Red
#f99157 Orange
#ffcc66 Yellow
#99cc99 Green
#66cccc Aqua
#6699cc Blue
#cc99cc Purple

Tomorrow Night Blue

Tomorrow Night Blue
Tomorrow Night Blue

#002451 Background
#00346e Current Line
#003f8e Selection
#ffffff Foreground
#7285b7 Comment
#ff9da4 Red
#ffc58f Orange
#ffeead Yellow
#d1f1a9 Green
#99ffff Aqua
#bbdaff Blue
#ebbbff Purple

Tomorrow Night Bright

Tomorrow Night Bright
Tomorrow Night Bright

#000000 Background
#2a2a2a Current Line
#424242 Selection
#eaeaea Foreground
#969896 Comment
#d54e53 Red
#e78c45 Orange
#e7c547 Yellow
#b9ca4a Green
#70c0b1 Aqua
#7aa6da Blue
#c397d8 Purple

Oh my god. I'm so busy recently. It's stressful for me to prepare for the GRE test. And I'm going to apply for graduate schools. And I also wanna find an internship before I graduate.

But my personal server met some problems several months ago. After I bought a new server in Ali cloud, I have to configure a new certification for the https. But some weird problems always stop me.

Now I have gotten several reasons to finish these tasks:

  1. Xiao Nf is waiting for my new website.
  2. I wanna build a personal research page on my website for showing for professors.
  3. I need this place to write.
  4. My new website is really beautiful and I miss it.

Come on.

搞一下github.io网站 先用它

Well, my last post met some problem that the picture of my beautiful console can not be seen.

I find the Typora can automatically upload every pic now. It gives a custom command for me to config.

My personal server now gets some problems in configuring the https road. So I'll note the method here. After I solve the problem of the server, I'll configure a .sh file to automatically upload the pics in the markdown file, and then my website will successfully show them.

I really really hope in the future I won't forget these things.

Upload pics automatically via Typora

Custom

You could config a custom command to upload images, using tools that is not listed in above options, or event write your own tools / scripts. Typora will append all images that needs to be uploaded after the custom command you filled.

Then, Typora will fetch image urls from the last N lines of the standard output of your custom command. (N is the number of images to upload).

For example, if you write a tool upload-image.sh, then you can input [some path]/upload-image.sh in the command filed. Typora will call [some path]/upload-image.sh "image-path-1" "image-path-2" to upload two images located in image-path-1 and image-path-2. Then the command may return something like:

1
2
3
Upload Success:
http://remote-image-1.png
http://remote-image-2.png

Then Typora will get the two remote image url from the output, and replace the original local images used in the Markdown document.

You could click the “Test Uploader” button to verify your custom commands.

Use current filename / filepath in custom commands

You can use ${filename} and ${filepath} in your custom commands, they will be replace as the current markdown file name and current file path. For “untitled” files that have not been saved on your disk, they will be empty strings.

外公77了,因为脑梗的缘故,几乎是动不了了。另外他有震颤,头一直在不受控地颤动,世界一直晕晕乎乎。声带坏了,讲不了话;耳朵也不好使了,听不清声。偏偏脑子里思维很清晰。

前天带他去医院看肩膀的摔伤。早上我醒来,脑子里第一件事,忽然开始模拟外公的精神世界。跟外界信息交流几乎阻断了,外公聪明、敏感的大脑里,终日会想些什么呢。如果他想写一本自传的话……他或许也觉得,他大概再没有办法了吧?他会想写一本自传吗?没有人会去问他吧,因为大家都没有什么办法。我很悲伤。

也挂了神经内科的号,希望专家能做一个系统性的检查,外公的各种各样的病因,我们从来没有了解清楚过。几乎是被医生骂走的,他淡然说,这是衰老了,多器官系统性衰竭,没什么好办法;你们作为家属,有什么需求,可以针对性地解决。外婆说,他现在不受控地淌口水。医生说,那给脸上打几针就行。妈妈说那当然不必。

最后什么也没做,就悻悻地从诊室出来了。我止不住地哭。妈妈和外婆劝我,外公老了,这很正常;但是你看,外公思路清晰着呢,内脏也没有大碍,外婆好好照顾着,还能活好久好久。可是我难过的正是这个不是吗?外公终日会想些什么呢?他过去会作画作文,捣鼓电路,养狗养花,骑着他心爱的古董摩托,带我去看新建的桥……如今他终日会想些什么呢?他自尊心仍极强,拒绝在小区里坐轮椅,拒绝在人前被喂饭……如今仍然用摇头来表达抗拒,却也别无他法了。

肩上的摔伤查出是骨折,一周以来只当扭伤处理,已经错位到需要手术了。家人和医生商量,外公点头同意,决定保守治疗:不手术了,兜住静养,两个月后畸形愈合。我又流泪。妈妈说因为脑梗本来就不能动了,外公这么大年纪,何苦承受手术的折磨。可是,这意味着再一次不可逆的改变,外公的右臂再也不可能动了啊;可是,明明是还有希望通过手术复原的……

我想不通的大概是,为什么衰老过后,一切判断的标准仿佛都已经不一样了?他们为什么都能如此轻易接受一些东西,放弃一些东西?我想起自传,假若外公真的想写一本自传,假若我们真的问了他,那真的找不到办法吗?我们都想尽力对外公好,可是尽力是什么?我感到我的幼稚……可我能想通吗,外公近在眼前,可我甚至无法知道,外公终日会想些什么呢?

捣鼓了两天,终于迁移过来了。碰到一些小坑,但还好,还算顺利。hexo还是挺舒服的,但是我目前还有问题没解决,就是图片存储位置的问题。

TODO:

  • [] 图片是放到阿里云上了,但是GitHub到时候咋引用呢?两边都放嘛?反正我图不多
  • [] 尼玛,主页文章没有自动截断诶
  • [] WordPress的一个无敌强的功能:邮箱发文。配合iPhone的捷径,我随时可以发文到博客里,比hexo这个必须用电脑,还得用命令行输好几个命令,不知道方便到哪里去了,唉唉唉。再想想办法

就这样吧,老婆等着我跟她聊天,一起睡觉呢。

Sublime Text 3 Package Control 报错 OSError: The specified item could not be found in the keychain解决了,喜大普奔。

他妈的,这是什么天坑。花了我一整天,好多根头发,最后的解决方法是:在钥匙串中把Apple Worldwide Developer Relations Certification Authority这个证书的信任权限从系统默认改为始终信任

我迄今也不太清楚这个证书是干嘛用的,也来不及去搞清楚了。我猜测肯定是系统咋的一更新,出于安全考虑,这个证书的权限被降低了;一般的程序不管是用curl还是用urllib来访问url的时候,一旦遇上https类型的,就需要跟OS沟通来签相关证书,但在这个时候被OS给拒绝了。

网上搜来搜去也没有直接提到这个问题的解决方案的。记录一下我的debug思路吧,多机智啊:

  1. 解锁新技能,把Package Control.sublime-package后缀改成.zip(网上说.sublime-package本质上就是.zip压缩文件,只是改了个后缀,好的吧…),解压看了源码,然后发现不管是通过curl还是通过urllib来使用package control,都会出现同样的错,排除了sublime text源码的问题,确认问题出在OS上。
  2. 另一方面我看源码的时候发现好像得是https类型的url才会触发这个证书签发的机制,灵机一动把channels手动改成http类型的,发现果然成功了。
  3. 所以我定位到了问题,搜了一下“urllib https 报错The specified item could not be found in the keychain”,终于找到github一个issue里有人提到了这个证书Apple Worldwide Developer Relations Certification Authority。
  4. 打开钥匙串,找到这个证书,随便改了一下权限,发现ok了。

网络空间安全成立
世上人心不齐
一把横放的吉他
会受损吗
我不在意
窗外的小区楼
晚饭后变得嘈杂
那好 无人听见我的琴声
电子书落了尘埃
当天的考试沉甸甸
吉他心律不齐
我的状态:
伸手接过空无一物

说起享乐观,享乐大抵是我的生活追求,只是设有一个底线,有一类享乐不会去接触:极致的,一旦体验过一次,生活再回不了头的。

三年前的今天高考出分,北京难得的大雨夜,魏公村常年疏水不畅的下水道,积水没过鞋面。十一二点我跟朋友从ktv出来,几个人各怀心事,没人说很深的话。人生中第一次喝酒是在这次,四瓶忘了是啥的啤酒,喝完清醒得不得了。知道考砸了,栽跟头了,一下子所有都已经不一样了。

却不知道命运那头是什么样。这头是一股脑走下去了,懂承担选择的责任了,也多了股反叛味儿在骨子里。问起后悔我是不承认的,只是一丁点儿也不愿再回忆高中时期了,一切都蒙着灰,带着愊忆。三年里路过高中校门很多次,一次也没去看望过老师,暂时是无所谓了。

情绪一直没我妈担忧的差,糟糕的高考分,糟糕的选校,糟糕的专业,竟然就自然地度过了。说来有点玩味,支撑我的可能是那晚一句偏颇的领悟,被我奉为圭臬了:人生还是痛苦多。

后来发挥这种精神,痛苦的晚上喝点酒,什么也不想,就过去了,我觉得这是我的成年。