我尝试从Vim中保存一些选定的文本(部分行).这是一行:
此测试字符串 - SELECTED_TARGET_WORLD
其中粗体表示选择文本.我这样做:
:'<,'> w! test/selected_text
Run Code Online (Sandbox Code Playgroud)
但在文件中selected_text我找到了字符串:
THIS TEST STRING - SELECTED_TARGET_WORLD
Run Code Online (Sandbox Code Playgroud)
如何使其仅保存线的选定部分?
我在vuejs应用程序和以下代码中使用axios http客户端:
axios.get('http://localhost:8081/pets')
.then(response => {
this.pets = response.data;
})
Run Code Online (Sandbox Code Playgroud)
如果服务器返回简单的“ application / json”内容,则一切正常。但我想分别为每一行阅读“ application / stream + json”。
例如:
axios.get('http://localhost:8081/pets')
.then(response => {
this.pets.push(response.data)
})
Run Code Online (Sandbox Code Playgroud)
但是此代码(按预期方式)不起作用。
我发现 osquery 可以在交互模式 (osqueryi) 和守护进程模式 (osqueryd) 下工作,在守护进程模式下,它将在本地主机的后台定期执行 SQL 查询。远程执行 SQL 查询怎么样 - 例如,REST 服务或 JDBC 驱动程序?