Fork me on GitHub
  1. 小米路由3G刷老毛子

    准备:

    • 小米路由3G
    • Windows或Mac电脑网线连接路由
    • U盘(FAT/FAT32格式)

    注:

    使用网线连接路由后进行操作 不保证内容的正确性,不承担带来的风险和后果

    一、刷开发版 …

    read more

    There are comments.

  2. gitstats代码统计

    brew install gnuplot
    
    git clone https://github.com/hoxu/gitstats.git
    
    python gitstats/gitstats "git路径" "git路径" "生成路径"
    
    如: python gitstats/gitstats -c project_name="name" -c start_date=2017-10-1 "git/code1" "git/code2" out
    
    统计git/code1,git/code2代码,时间从2017-10-1号开始,项目名为name …
    read more

    There are comments.

  3. Fire TV stick 4K

    准备

    • 梯子
    • 电视HDMI输入

    开箱

    未命名 3

    51546331835_.pi

    设置

    2

    软件安装

    • 电脑安装ADB
    • 下载apk
    • $ adb connect 192.168.1.xx(盒子IP)
    • $ adb install -r xxx.apk
    • 成功

    1

    81546331836_.pi

    read more

    There are comments.

  4. nginx 配置https

    update: 2018-08-20

    已支持泛域名申请:https://certbot.eff.org/

    Trying to get a wildcard certificate? Please use the dropdown menus below to get instructions specific to your system, and read those instructions carefully.


    $ sudo apt-get update
    $ sudo apt-get install software-properties-common
    $ sudo add-apt-repository ppa:certbot/certbot …
    read more

    There are comments.

  5. Git Commit Msg

    <type>(<scope>): <subject>
    
    <body>
    
    <footer>
    

    Example

    fix(middleware): ensure Range headers adhere more closely to RFC 2616
    
    Add one new dependency, use `range-parser` (Express dependency) to compute
    range. It is more well-tested in the wild.
    
    Fixes #2310
    

    Allowed values:

    • feat 针对用户来时的新功能 …
    read more

    There are comments.

  6. yarn puppeteer错误

    error /app/node_modules/puppeteer: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /app/node_modules/puppeteer Output: ERROR: Failed to download Chromium r579032! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. { Error: connect ETIMEDOUT 216.58.221.240:443 at Object._errnoException (util.js:992:11) at _exceptionWithHostPort (util …

    read more

    There are comments.

  7. npm version

    版本示例:1.2.3 MAJOR.MINOR.PATCH:
    
    1.2.3
    ┬ ┬ ┬
    │ │ │
    │ │ └ 补丁版本:bug修复,向后兼容
    │ └── 次要版本:新增功能,向后兼容
    └──── 主要版本:修改不向后兼容的api
    
    示例
      1 …
    read more

    There are comments.

  8. CommonJS和AMD/CMD

    CommonJS根据JS的表现制定规范:

    {模块引用(require)} {模块定义(exports)} {模块标识(module)}

    NodeJS遵循了CommonJS规范,写法如下:

    // foo.js
    
    module.exports = function(x) {
        console.log(x);
    };
    
    // index.js
    
    let foo = require('./foo')
    foo(1);
    

    CommonJS主要为了JS在后端制 …

    read more

    There are comments.

links