Fork me on GitHub
  1. WR720N硬改刷openwrt

    需要准备的工具:

    1. WR720N v3
    2. W25Q1238FVSSIG 16M闪存
    3. H5DU5162ETR-E3C 64M路由内存
    4. 电烙铁
    5. 热风枪
    6. 土豪金XTW100编程器
    7. 网线一根
    8. 可以插网线的电脑一台

    流程

    1. 网线连接路由后,打开 192.168 …
    read more

    There are comments.

  2. CentOS 安装 Odoo10

    postgresql

    1. 根据系统生成命令 https://www.postgresql.org/download/linux/redhat/
    2. sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    3. 禁用内置psql sudo dnf -qy module disable postgresql
    4. 安装psql sudo yum install -y …
    read more

    There are comments.

  3. Mac抓取小程序源码

    1. 安装安卓模拟器 https://mumu.163.com/
    2. 模拟器设置-开启ROOT权限
    3. 安装微信 https://weixin.qq.com/download
    4. 安装 RE文件管理器
    5. 登录微信,点击想要抓取小程序(小程序会闪退 …
    read more

    There are comments.

  4. nginx certbot 免费泛域名证书

    系统: CentOS 7

    https://certbot.eff.org/lets-encrypt/centosrhel7-nginx

    1. sudo yum install python2-certbot-dns-cloudflare
    2. yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    3. sudo yum install certbot python2-certbot-nginx
    4. sudo yum install python2-certbot-dns-cloudflare
    5. 注册并添加域名: https://dash.cloudflare.com/login
    6. 添加路径 …

    read more

    There are comments.

  5. 热敏打印机无法调整font-size

    Web前端需要连接热敏打印机打印小票,但是font-size始终无法调小,最终解决见demo:

    update:2020年12月04日

    https://medium.com/@Idan_Co/the-ultimate-print-html-template-with-header-footer-568f415f6d2a

    <!DOCTYPE HTML>
    <html>
    
    <head>
        <meta name="renderer" content="webkit">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>美问</title>
        <style type="text/css">
        @media screen {
            #printSection {
                display: none …
    read more

    There are comments.

  6. Google Chrome 控制台

    console

    console.log(object [, object, ...])

    console.info(object [, object, ...])

    console.error(object [, object, ...])

    var str = 'hello world';
    console.log('--->>>%s', str);
    

    常用格式代码:

    说明符 输出
    %s 将值格式化为字符串
    %i 或 %d 将值格式化 …
    read more

    There are comments.

links