text 节点表达主机firebase技巧

保存自https://stackoverflow.com/questions/44461082/how-to-configure-rewrite-rules-inside-firebase-hosting-to-route-certain-requests

firebase2
var functions = require('firebase-functions');
var express = require('express');

var app = express();
var router = express.Router();

router.post('/register', registerFunction);
router.post('/verify', verifyFunction);

app.use('/fns', router);

exports.fns = functions.https.onRequest(app);

text 托管技巧Express Firebase

保存自https://stackoverflow.com/questions/44461082/how-to-configure-rewrite-rules-inside-firebase-hosting-to-route-certain-requests

firebase1
{
  "database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "build/default/public",
    "rewrites": [
      {
        "source": "/fns/**",
        "function": "fns"
      },
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

text 转储数据库

cmd
sudo mysqldump -u root -p dbname > db.sql

text 显示所有数据库

cmd
SHOW DATABASES;

text 调试

txt
GST_DEBUG=1 ./deepstream-test2-app file:///media/sumit/MemoryCard/input_videos/stop-sign.mp4

text 将docker容器保存为图像

commit
docker commit upbeat_panini testredis:example  

text 安装mongo

mongo-install
yay -S mongodb34-bin
systemctl enable --now mongodb

text 问题驱动或方法驱动

保存自https://www.zhihu.com/people/xiaolong-wang-60/activities

or
常见的科学研究要么是问题驱动,比如“如何解决ImageNet分类问题”;要么是方法驱动,如 “RBM可以用来干什么”。当时的我同时锁死了要解决的问题和用来解决问题的方案,成功的可能性自然不高。如果我在多看一看当时整个领域的各种思路,比如Lecun在很早的时候就已经做end to end,或许结局会不那么一样吧。

text ubuntu版本

.txt
cat /etc/os-release

text 鲸脂22

blubber 22