摘要: Reference: [Dockerfile Security Best Practices] Container security is a broad problem space and there are many low hanging fruits one can harvest to m 阅读全文
posted @ 2020-10-23 09:05 tiantiandas 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 说明: 本文报错发生在和 GO 相关的实践中 Reference: [reddit] [stackExchange] [docker forums] 可能原因 CRLF 与 LF 差异 CGO 影响 architecture 不一致 CRLF 与 LF 差异 FROM golang COPY . / 阅读全文
posted @ 2019-11-06 17:14 tiantiandas 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 内容: [Installing Kubernetes with kops](https://kubernetes.io/docs/setup/production-environment/tools/kops/) [kops demo] 平台: AWS Installing Kubernetes w 阅读全文
posted @ 2019-07-22 22:45 tiantiandas 阅读(531) 评论(0) 推荐(0) 编辑
摘要: Reference:[Intro Guide to Dockerfile Best Practices] 最佳实践指标: 构建时间 (Build Time) 镜像大小 (Image size) 可维护性(Maintainability) 可再现性 (Reproducibility) 构建时间 在一次 阅读全文
posted @ 2019-07-22 19:00 tiantiandas 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Nginx 反向代理 nexus 的服务, 一直卡在 Initialize... 解决方式是添加一个 header X-Forwarded-Proto: proxy_set_header X-Forwarded-Proto "https"; Nginx 配置 nexus.conf upstream 阅读全文
posted @ 2018-08-08 18:01 tiantiandas 阅读(4454) 评论(0) 推荐(0) 编辑
摘要: 内容来自: 10 Ways to Generate a Random Password from the Linux Command Line Linux 好玩的事儿是达成一件事情可以用上百种方式. 即使如生成随机密码这么简单的需求都可以用一打的命令来实现. 这些命令从 Command-Line F 阅读全文
posted @ 2018-08-01 19:01 tiantiandas 阅读(1593) 评论(0) 推荐(0) 编辑
摘要: 内容全部来自: How to create/restore a slave using GTID replication in MySQL 5.6 需求说明 需求: 对于已经存在的 MySQL 主从架构, 新增加 Slave 节点. 所以需要解决的问题是保证主从数据可以同步. 遇到的问题 : 主节点 阅读全文
posted @ 2018-07-10 17:28 tiantiandas 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 搭建 shadowsocks server 假设: host: 10.0.0.1 password : sstestpasswd 安装 shadowsocks 配置 shadowsocks server 创建配置文件: server: 0.0.0.0 : 任何客户端都可以连接 server_port 阅读全文
posted @ 2018-04-13 17:18 tiantiandas 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 去年,在公共汽车上,我的孩子问我:"小驴子有舅舅吗?“他在路上看到一只小驴子;他自己的舅舅前两天刚从桂林来,开了几天会,又走了。 今年,在公共汽车上,我的孩子告诉我:“这是洒水车,这是载重车,这是老吊车……我会画大卡车。我们托儿所所有个小朋友,他画得棒极了,他什么都会画,他……” 我的孩子跟我说了不 阅读全文
posted @ 2018-01-20 21:04 tiantiandas 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 昨天晚上和几个好朋友去看了这部片子, 虽然没有像好多人那样从12年就开始期待, 但里面关于西南联大的故事一直吸引着我. 在我心里, 西南联大是战时的文化伊甸园, 所有人都积极向上, 有目标, 有大爱. 还有一方面原因是是汪曾祺的文章里面好多关于西南联大的故事. 无问西东 里面有这样一个场景: 修建机 阅读全文
posted @ 2018-01-18 14:34 tiantiandas 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 北宋诗僧慧洪所著《冷斋夜话》中提到彭几曾与人言 : 吾平生无所恨 ,所恨者五事耳 。 一恨鲥鱼多骨,第二恨金橘太酸 第三恨莼菜性冷,第四恨海棠无香, 第五恨曾子固不能作诗。 阅读全文
posted @ 2018-01-08 20:31 tiantiandas 阅读(156) 评论(0) 推荐(0) 编辑
摘要: wget 应该是最常用的下载工具了,但是其不支持多线程下载. axel 安装 epel 源有 axel 的二进制包,可以使用 yum 安装. yum install epel-release yum install axel axel 使用方法 Syntax : axel [OPTIONS] url 阅读全文
posted @ 2018-01-02 13:43 tiantiandas 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: 参考: 高级 bash 脚本编程指南 eval var1=\$$var2 变量间接引用 贴个脚本: server1=1.1.1.1 server2=1.1.1.2 server3=1.1.1.3 for s in server1 server2 server3 do eval server=\$$s 阅读全文
posted @ 2017-11-27 11:15 tiantiandas 阅读(1192) 评论(1) 推荐(0) 编辑
摘要: 显示效果 配置: command + , 开始配置 { "additional_path_items": [ "/path/to/file" // append of UNIX env variable PATH ], "auto_complete": true, "color_scheme": " 阅读全文
posted @ 2017-11-06 13:51 tiantiandas 阅读(3552) 评论(0) 推荐(0) 编辑
摘要: Reference: strace命令详解 进程无法启动,软件运行速度变慢,程序的 "SegmentFault" 等等都是让每个 Unix 系统用户头痛的问题,本文通过演示如何使用 truss, strace, ltrace 这三个常用的调试工具来快速诊断软件的"疑难杂症"。 truss / str 阅读全文
posted @ 2017-03-03 11:03 tiantiandas 阅读(10737) 评论(0) 推荐(0) 编辑
摘要: Reference:Pycharm快捷键整理 NOTE: CheatSheet is a simple but highly useful utility for OS X that provides keyboard shortcuts in an instant. Shortcuts shift 阅读全文
posted @ 2017-02-22 10:01 tiantiandas 阅读(6272) 评论(0) 推荐(0) 编辑
摘要: Reference: SecureCRT常用快捷键设置与字体设置方法 SecureCRT 设置 解决每次 login 输入密码: Navigate: Global Option → General Disable: Use Keychain Logon Actions shell commands: 阅读全文
posted @ 2016-10-30 13:01 tiantiandas 阅读(5079) 评论(0) 推荐(0) 编辑
摘要: rsyslog 日志类型 auth :(authpriv) 主要与认证有关的机制,例如 login, ssh, su 等需要帐号/密码的咚咚; cron: 就是例行性工作排程 cron/at 等产生讯息记录的地方; daemon: 与各个 daemon 有关的讯息; kern: 就是核心 (kern 阅读全文
posted @ 2016-07-01 17:49 tiantiandas 阅读(1760) 评论(1) 推荐(0) 编辑