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
import fs from 'fs' | |
import vm from 'vm' | |
import path from 'path' | |
/* | |
* cli command | |
* node --experimental-vm-modules express-hot-reload.js | |
*/ | |
const ModuleCache = new Map() |
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
package foo | |
import ( | |
"sync" | |
"time" | |
) | |
var timerPool sync.Pool | |
func PoolTimerGet(d time.Duration) *time.Timer { |
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
# Reset Windows Internet Connection Sharing by PowerShell. | |
# PowerShell.exe -ExecutionPolicy Bypass C:\Path\to\ics-reset.ps1 | |
$module = New-Object -ComObject HNetCfg.HNetShare | |
$list = New-Object System.Collections.Generic.List[System.Object] |