This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MdTooltipDirective($timeout, $window, $$rAF, $document, $interpolate, | |
$mdUtil, $mdPanel, $$mdTooltipRegistry) { | |
var ENTER_EVENTS = 'focus touchstart mouseenter'; | |
var LEAVE_EVENTS = 'blur touchcancel mouseleave'; | |
var TOOLTIP_DEFAULT_Z_INDEX = 100; | |
var TOOLTIP_DEFAULT_SHOW_DELAY = 0; | |
var TOOLTIP_DEFAULT_DIRECTION = 'bottom'; | |
var TOOLTIP_DIRECTIONS = { | |
top: { x: $mdPanel.xPosition.CENTER, y: $mdPanel.yPosition.ABOVE }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// save as index.js | |
// npm install https://github.com/GoogleChrome/puppeteer/ | |
// node index.js URL | |
const puppeteer = require('puppeteer'); | |
(async () => { | |
const url = process.argv[2]; | |
const browser = await puppeteer.launch(); | |
// use tor | |
//const browser = await puppeteer.launch({args:['--proxy-server=socks5://127.0.0.1:9050']}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh advfirewall firewall set rule group="remote administration" new enable=yes | |
netsh advfirewall firewall add rule name="Open Port 5985" dir=in action=allow protocol=TCP localport=5985 | |
winrm quickconfig -q | |
winrm quickconfig -transport:http | |
winrm set winrm/config '@{MaxTimeoutms="7200000"}' | |
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}' | |
winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}' | |
winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}' | |
winrm set winrm/config/service '@{AllowUnencrypted="true"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download the recent version from nodejs.org | |
2. Run `msiexec /qn /l* node-log.txt /i node-vX.X.XX-x64.msi` |