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
#!/bin/bash | |
# | |
# This assumes you are using "Chrome" from the official Google site via the .deb or .rpm | |
# This may or may not work with your distributions "Chromium" or "Chrome" package! | |
# | |
# Run this script then restart Chrome, you will see it is no longer bound to UDP:5353 | |
# | |
mkdir -p /etc/opt/chrome/policies/{managed,recommended} || echo FAIL, ARE YOU ROOT | |
chmod go-w /etc/opt/chrome/policies/managed || echo FAIL, ARE YOU ROOT | |
cat > /etc/opt/chrome/policies/managed/managed_policy.json << 'EOF' |
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
$ node stream-heap.js | |
Readable 358.53592 134 | |
Writable 623.37824 258 | |
Transform 709.05584 1310 | |
$ node pull-heap.js | |
values 155.2692 70 | |
map 84.50328 7 |
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
# Important note: this enables REMOTE DESKTOP! Use good passwords! | |
## function definitions | |
function Set-Reg($key, $name, $value, $type) { | |
If (-Not (Test-Path "$key")) { | |
New-Item -Path "$key" -ItemType RegistryKey -Force | Out-Null | |
} | |
if ($type -eq $null) { | |
Set-ItemProperty -path "$key" -Name "$name" -Value $value | |
} else { |