Cdn Cname Issue
今天读了篇论文Cookies Lack Integrity: Real-World Implications,里面有涉及到CDN相关的,提到了我们的服务,我就分析了下。 CDN服务商一般给客户提供一个专用域名,每个客户一个独立的子域名,子域名供不同的客户使用,假设某cdn服务商使用cname.cdn-site.com的不同子域名给不同客户提供服务: ...
今天读了篇论文Cookies Lack Integrity: Real-World Implications,里面有涉及到CDN相关的,提到了我们的服务,我就分析了下。 CDN服务商一般给客户提供一个专用域名,每个客户一个独立的子域名,子域名供不同的客户使用,假设某cdn服务商使用cname.cdn-site.com的不同子域名给不同客户提供服务: ...
我不会擅长玩游戏,从小就是。 同龄人童年时玩红白机,马里奥、双截龙之类的,我没有玩过。 大学时,同学们中见流行魔兽、红警、CS,我也没玩过,我晕3D,CS画面看着就会头晕。 工作之后很多年,手游开始流行,有一段时间同事们都在玩海岛奇兵,也玩了几个月,后来就放弃了,觉得玩法单一,也就是消磨下碎片时间。 ...
2019年了,上一篇blog是4年前。 发现每到一年开始的时候,就会想要不要重新把博客写起来,但是一直没能坚持下来。 现在的博客是用markdown写的,用pelican生成静态文件,所以操作会稍微有点麻烦,但是很方便归档管理,后果就是一直不写,但是写的东西一直都没丢,8年前到现在的blog都一直还在,今天还把历史的文章的格式整理下。 ...
都已经8012年了啊!!!
Linux shell 入门 By notsobad What is shell? Shell is a program that takes your commands from the keyboard and gives them to the operating system to perform Shell vs GUI sh, bash, dash, zsh What is bash? Bash is the GNU Project’s shell. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. Bash 语法 注释 变量定义以及使用 控制结构 循环 函数 调试 特殊字符 执行方法 Hello world. #!/bin/bash # hello world example. for i in `seq 1 10`;do echo hello world; done variables a=1 b=$a c=$a$b # or c="$a$b" or c=${a}${b} d=$(($a + $b)) echo $HOME env commands shell内置了一些命令,这些命令不需要调用外部程序,如echo, printf, cd, pwd等。 ...
阅读代码方案 wine/crossover + source insight OpenGrok Ack 命令行方案 ack ctags gnu global cscope 参考: http://adam8157.info/blog/2014/11/use-gnu-global-for-source-code-tagging
git建分支的时候,可以指定源自哪个版本 默认是从当前的HEAD git branch test 可以从某次提交 git branch test 2571682 从某个分支的HEAD git branch test dev <start-point> The new branch head will point to this commit. It may be given as a branch name, a commit-id, or a tag. If this option is omitted, the current HEAD will be used instead.
几年前做过一个爬取笑话网站的爬虫, 爬了好几个网站,抓取了几万个笑话,去年把收集到的数据,做成了一个简单的笑话网站,爱说笑. 代码扔github上了,地址。 用到的东西, scrapy做的爬虫,ui是tornado + mongodb + nginx, 中文分词用的是结巴分词, 前端用的bower + grunt + bootstrap。 ...
在追的几部美剧: 辛普森一家 疑犯追踪 国土安全 Gotham Agents of shield Modern family Z nation The walking dead 已经终结的几部不错的剧:废柴联盟,冰血暴,真探。 看的最无聊的剧是《复仇》,太拖延,太无聊了,居然还拍了四季。
blog又长草了一年,想重新拾起来了,以前的模板不是很好看,换了个新的。 markdown编写blog,pelican来静态化,修改了它自带的simple模版,样式是修改自mou的css,结果呢,就是现在这个样子,代码放到github上了 pelican自带的测试服务器不是很好用,写了个小脚本来做。 ...