Skip to content

Instantly share code, notes, and snippets.

@exeral
exeral / dns.ps1
Last active October 18, 2023 05:24
pull Windows DNS from WSL
# Discover things and create an $Entries object.
$NetworkInterfaces = Get-NetIPInterface -AddressFamily IPv4 | Where-Object ConnectionState -EQ 'Connected' | Where-Object NlMtu -LT 9001
$DNSServerAddresses = Get-DnsClientServerAddress -AddressFamily IPv4
$DNSClients = Get-DnsClient
$Entries = $NetworkInterfaces | ForEach-Object {
[PSCustomObject]@{
'InterfaceAlias' = $_.InterfaceAlias
'InterfaceIndex' = $_.InterfaceIndex
'InterfaceMetric' = $_.InterfaceMetric
@exeral
exeral / influxd.log
Created March 11, 2016 11:23
influx crash
runtime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abort
PC=0x7fc867320165
goroutine 0 [idle]:
goroutine 1 [chan receive, 1440 minutes]:
main.(*Main).Run(0xc20803b700, 0xc20800a010, 0x4, 0x4, 0x0, 0x0)
/tmp/tmp.r1Nea5VXEw/src/github.com/influxdb/influxdb/cmd/influxd/main.go:96 +0x7a1
main.main()