chromium

SSH 隧道

爷,独闯天下 提交于 2020-02-27 12:41:50
SSH 隧道 网站:链接 文章已迁移:链接 考虑到在宿舍无法直接访问工作室的网络环境,只能折腾一下各种隧道。 本地端口转发 发送到本地主机端口的请求,转发到远程主机端口 命令: -N -L 本地地址:本地端口:远程地址:远程端口 ssh -N -L 127.0.0.1:8080:101.101.101.101:443 www@101.101.101.101 -p 22 发送到 127.0.0.1:8080 的数据包会被转发到 101.101.101.101:443 远程端口转发 发送到远程主机端口的请求,转发到本地端口 命令: -N -R 远程地址:远程端口:本地地址:本地端口 ssh -N -R 101.101.101.101:443:127.0.0.1:8080 www@101.101.101.101 -p 22 发送到 101.101.101.101:443 的数据包会被转发到 127.0.0.1:8080 动态端口转发 命令: -N -D 本地地址:本地端口 ssh -N -D 127.0.0.1:8080 www@101.101.101.101 发送到 127.0.0.1:8080 的数据包,由 101.101.101.101 转发到目的地 Chromium参考:SwitchyOmega 参数列表 -N 不执行何指令 -L 建立本地到远程的隧道 -R 建立远程到本地的隧道

how to override default set of chrome command line switches in selenium

牧云@^-^@ 提交于 2020-02-27 07:54:17
问题 By default, chrome will be run with this command line: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-hang-monitor --disable-prompt-on-repost --dom-automation --full-memory-crash-report --no-default-browser-check --no-first-run --disable-background-networking --disable-sync --disable-translate --disable-web-resources --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --disable-client-side-phishing-detection --disable-component-update -

how to override default set of chrome command line switches in selenium

不打扰是莪最后的温柔 提交于 2020-02-27 07:52:25
问题 By default, chrome will be run with this command line: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-hang-monitor --disable-prompt-on-repost --dom-automation --full-memory-crash-report --no-default-browser-check --no-first-run --disable-background-networking --disable-sync --disable-translate --disable-web-resources --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --disable-client-side-phishing-detection --disable-component-update -

Kali Linux安装谷歌浏览器

让人想犯罪 __ 提交于 2020-02-26 15:39:30
Kali Linux安装谷歌浏览器 Kali Linux默认安装的是火狐浏览器。但是,很多人习惯使用谷歌浏览器。在软件源中自带了谷歌浏览器的实验版。用户直接安装即可。默认,谷歌浏览器不允许root用户启动。这里将使用普通用户登录系统,安装并启动谷歌浏览器。执行命令如下所示: C:\home\daxueba> sudo apt-get install chromium -y [sudo] daxueba 的密码: #输入daxueba用户密码 成功执行以上命令后,谷歌浏览器安装成功。然后,在菜单栏依次选择“应用程序”|“常用程序”|“互联网”“Chromium网页浏览器”命令,即可成功启动谷歌浏览器。 来源: oschina 链接: https://my.oschina.net/u/1585857/blog/3168834

Android 5.1 WebView内存泄漏问题及快速解决方法

有些话、适合烂在心里 提交于 2020-02-26 11:50:10
问题背景 在排查项目内存泄漏过程中发现了一些由WebView引起的内存泄漏,经过测试发现该部分泄漏只会出现在android 5.1及以上的机型。虽然项目使用WebView的场景并不多,但秉承着一个泄漏都不放过的精神,我们肯定要把它给解决了。 遇到的问题 项目中使用WebView的页面主要在FAQ页面,问题也出现在多次进入退出时,发现内存占用大,GC频繁。使用LeakCanary观察发现有 两个内存泄漏很频繁: 我们分析一下这两个泄漏: 从图一我们可以发现是WebView的ContentViewCore中的成员变量mContainerView引用着AccessibilityManager的mAccessibilityStateChangeListeners导致activity不能被回收造成了泄漏。 引用关系:mAccessibilityStateChangeListeners->ContentViewCore->WebView->SettingHelpActivity 从图二可以发现引用关系是: mComponentCallbacks->AwContents->WebView->SettingHelpActivity 问题分析 我们找找mAccessibilityStateChangeListeners 与 mComponentCallbacks是在什么时候注册的

使用“ Object.create”代替“ new”

一笑奈何 提交于 2020-02-26 09:32:16
Javascript 1.9.3 / ECMAScript 5引入了 Object.create ,这是Douglas Crockford等人 提倡 的很长时间了。 如何使用 Object.create 替换下面代码中的 new ? var UserA = function(nameParam) { this.id = MY_GLOBAL.nextId(); this.name = nameParam; } UserA.prototype.sayHello = function() { console.log('Hello '+ this.name); } var bob = new UserA('bob'); bob.sayHello(); (假设存在 MY_GLOBAL.nextId )。 我能想到的最好的是: var userB = { init: function(nameParam) { this.id = MY_GLOBAL.nextId(); this.name = nameParam; }, sayHello: function() { console.log('Hello '+ this.name); } }; var bob = Object.create(userB); bob.init('Bob'); bob.sayHello(); 似乎没有任何优势

解决root用户不能打开Chromium网页浏览器

谁说我不能喝 提交于 2020-02-26 05:34:22
解决root用户不能打开Chromium网页浏览器 在Kali Linux中,安装Chromium网页浏览器后,默认只允许普通用户打开。为了方便用户更好的使用该浏览器,这里将介绍下使用root用户打开Chromium浏览器的方法。如下所示: (1)编辑Chromium网页浏览器启动器。打开/usr/ share/applications目录,找到Chromium网页浏览器项目。选择该项目,依次选择“属性”|“启动器”标签,打开启动器设置界面。修改命令文本框中的内容,在命令/usr/bin/ chromium %U的后面加上--no-sandbox --user-data-dir &。注意,命令和输入的内容之间有一个空格。 (2)重新启动Chromium网页浏览器,即可成功打开。 来源: oschina 链接: https://my.oschina.net/u/1585857/blog/3169249

Using Chromium Edge WebView2 in Delphi or C++ Builder

纵然是瞬间 提交于 2020-02-24 11:54:08
问题 Now that the Microsoft Chromium Edge is final, is it possible to use it in Delphi or C++ Builder? As I understand it is based on a WebView2 component. Is there a component such as TWebView2 or will Embarcadero provide one? Is there an example how to host WebView2 in Delphi / C++ Builder? Is it enough to install the latest Edge version so the app can utilize it? There was an example for the older version - EdgeHTML - here: Using WebView (EdgeHTML) in Delphi / C++ Builder 回答1: You can use

CSS grid behaviour different in Chrome and Firefox [duplicate]

情到浓时终转凉″ 提交于 2020-02-24 11:16:32
问题 This question already has answers here : Why does Chrome 80 cause this grid-template-rows: auto problem [duplicate] (4 answers) Closed 11 days ago . I have a css grid with 2 columns and 3 rows. The third row content is not always present because of an angular ngif clause. An image is present in the first column that spans the 3 rows. With all that said, I get 2 different results in Chrome (80.0.3987.87, which is the latest stable as I post) and Firefox. Is there a way to control the rows so

CSS grid behaviour different in Chrome and Firefox [duplicate]

雨燕双飞 提交于 2020-02-24 11:16:21
问题 This question already has answers here : Why does Chrome 80 cause this grid-template-rows: auto problem [duplicate] (4 answers) Closed 11 days ago . I have a css grid with 2 columns and 3 rows. The third row content is not always present because of an angular ngif clause. An image is present in the first column that spans the 3 rows. With all that said, I get 2 different results in Chrome (80.0.3987.87, which is the latest stable as I post) and Firefox. Is there a way to control the rows so