• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

08 2017 档案

 
Python 反射
摘要:首先通过一个例子来看一下本文中可能用到的对象和相关概念。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #coding: UTF-8 import sys # 模块,sys指向这个模块对象 import inspect def foo(): pass # 函数,foo指向这 阅读全文
posted @ 2017-08-18 23:03 会飞の鱼 阅读(124) 评论(0) 推荐(0)
Go 类型转换
摘要:1、整形到字符串: [plain] view plain copy var i int = 1 var s string [plain] view plain copy [plain] view plain copy [plain] view plain copy s = strconv.Itoa( 阅读全文
posted @ 2017-08-10 14:46 会飞の鱼 阅读(130) 评论(0) 推荐(0)
Go and Beego Development
摘要:1. Beego wiki in en and cn https://beego.me/ For API development: https://beego.me/blog/beego_api 2. Go get to import library go get github.com/hashic 阅读全文
posted @ 2017-08-10 09:54 会飞の鱼 阅读(228) 评论(0) 推荐(0)
docker国内registry
摘要:cat /etc/docker/daemon.json {"registry-mirrors": ["http://4d6b2eb7.m.daocloud.io"]} 代理 1.52:8080 阅读全文
posted @ 2017-08-09 18:11 会飞の鱼 阅读(516) 评论(0) 推荐(0)
C++ 20170807
摘要:mesos/3rdparty/stout/include/stout/err.hpp struct Exit2{ Exit2(int _status) : status(_status) {} NORETURN ~Exit2() { std::cerr << out.str() << std::en 阅读全文
posted @ 2017-08-07 17:25 会飞の鱼 阅读(147) 评论(0) 推荐(0)
CentOS 7 调整 home分区 扩大 root分区
摘要:总体过程: 把/home内容备份,然后将/home文件系统所在的逻辑卷删除,扩大/root文件系统,新建/home ,恢复/home内容 1.查看分区 2.备份home分区文件 3.卸载/home,如果无法卸载,先终止使用/home文件系统的进程 4.删除/home所在的lv 5.扩展/root所在 阅读全文
posted @ 2017-08-07 13:11 会飞の鱼 阅读(1065) 评论(1) 推荐(0)
linux 解析json
摘要:epel源 yum install jq [root@mhc NaHan-master]# curl 127.0.0.1:5000/v2/_catalog|jq . % Total % Received % Xferd Average Speed Time Time Time Current Dlo 阅读全文
posted @ 2017-08-02 13:27 会飞の鱼 阅读(1054) 评论(0) 推荐(0)
linux 正则表达式
摘要:redis-cli INFO|tr -d '\r'|egrep -v '^(#.*)?$'|sed -E 's/^([^:]*):(.*)$/redisInfo[\1]="\2"/' redis_version:4.0.0redis_git_sha1:00000000redis_git_dirty: 阅读全文
posted @ 2017-08-02 13:18 会飞の鱼 阅读(169) 评论(0) 推荐(0)
docker私有仓库搭建
摘要:和Mavan的管理一样,Dockers不仅提供了一个中央仓库,同时也允许我们使用registry搭建本地私有仓库。 使用私有仓库有许多优点: 接下来我们就大致说一下如何在本地搭建私有仓库。 目前Docker Registry已经升级到了v2,最新版的docker已不再支持v1。Registry v2 阅读全文
posted @ 2017-08-02 10:02 会飞の鱼 阅读(387) 评论(0) 推荐(0)