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
javascript:(function(){var expandElts = document.getElementsByClassName('glimpse-expand'); [].forEach.call(expandElts, function (elt) { if(elt.className.indexOf('glimpse-collapse') <= 0){ elt.click(); } }); })(); |
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-Module WebAdministration | |
function Stop-WebAppPoolSafely | |
{ | |
<# | |
.SYNOPSIS | |
Stops an appPool and waits until it has entered the stopped state | |
.DESCRIPTION | |
Stops an appPool and waits until it has entered the stopped state. By default the poll period is 1 second. This commandlet may take an AppPool object from the pipeline. | |
.EXAMPLE |
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
data:text/html,<html contenteditable ><head><title>Notepad +++</title></head></html> |
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
/* LogParserStudio - IISLogsByUTCDateRange + AM/PM */ | |
SELECT TOP 1000 to_timestamp(date,time) as stamp-UTC, * | |
FROM '[LOGFILEPATH]' | |
WHERE to_timestamp(date,time) between timestamp('2015/10/23 07:46:00 AM', 'yyyy/MM/dd hh:mm:ss tt') and timestamp('2015/10/23 07:59:00 PM', 'yyyy/MM/dd hh:mm:ss tt') | |
ORDER BY time ASC |
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
#http://powershell.com/cs/blogs/tips/archive/2010/10/28/running-programs-as-different-user.aspx | |
Start-Process powershell -LoadUserProfile -Credential (Get-Credential) |
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
using Microsoft.VisualStudio.TestTools.WebTesting; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.ComponentModel; | |
using Tavis; | |
namespace Extensions.ExtractionRules | |
{ | |
/// <summary> |
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
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | where { -not [str | |
ing]::IsNullOrEmpty($_.DisplayName) } |
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
$uri = 'https://owner-api.teslamotors.com/oauth/token' | |
$email = "a@b.com" | |
$pw = "pw123!" | |
$json = @{ | |
grant_type = "password" | |
client_id = "81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384" | |
client_secret = "c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3" | |
email = "$email" | |
password = "$pw" |
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 jwtDecode(t) { | |
let token = {}; | |
token.raw = t; | |
token.header = JSON.parse(atob(t.toString().split('.')[0])); | |
token.payload = JSON.parse(atob(t.toString().split('.')[1])); | |
return (token); | |
} | |
console.log("JWT Decode"); | |
var jwt = jwtDecode(pm.response.json().access_token); |
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. Create a file: /etc/wsl.conf. | |
2. Put the following lines in the file in order to ensure the your DNS changes do not get blown away | |
[network] | |
generateResolvConf = false | |
3. In a cmd window, run wsl --shutdown | |
4. Restart WSL2 | |
5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file: `rm /etc/resolv.conf` | |
6. Put the following line in the file |
OlderNewer