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 Start-DNSClientLog { | |
$DnsOpLog = Get-WinEvent -ListLog Microsoft-Windows-DNS-Client/Operational | |
$DnsOpLog.IsEnabled = $true | |
$DnsOpLog.SaveChanges() | |
} | |
function Get-DNSClientQueries { | |
foreach($event in (get-winevent Microsoft-Windows-DNS-Client/Operational | % { [xml]$_.ToXml() })) { | |
$Query = ($event.Event.EventData.Data | Where-Object { $_.Name -eq "QueryName" }).'#text' |
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
# empty the stash | |
$ git stash clear | |
# objects can also be reached through the reflog. | |
# while branches record the history of some project, reflogs record the history of these branches. | |
# if you amend, reset etc. commits are removed from the branch history | |
# but git keeps them around in case you realize that you made a mistake. | |
# reflogs are a convenient way to find out what destructive (and other) operations were performed | |
# on a branch (or HEAD), making it easier to undo a destructive operation. |
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
##!/usr/bin/env python3 | |
import os | |
import sys | |
from pexpect.pxssh import pxssh as PXSSH | |
import getpass | |
class Debug_PXSSH(PXSSH): | |
def sendline(self, input='') -> int: |