System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
This file contains hidden or 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
# https://blog.51cto.com/lixiaosong/1689886 | |
function send-weixin { | |
Param( | |
[Parameter(Mandatory = $True, Position = 1)] | |
[String]$Username, | |
[Parameter(Mandatory = $True, Position = 2)] | |
[String]$Content | |
) | |
$auth_string = https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=【你自己的Corpid】&corpsecret= 【你自己的密码】 | |
$auth_values = Invoke-RestMethod $auth_string |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using AutoGuru.Client.Shared; | |
using AutoGuru.Client.Shared.Dtos; | |
using AutoGuru.Client.Shared.Models; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; |
bool LogAndPropagate(this ILogger logger, Exception exception, string message, params object[] args)
{
logger.LogError(exception, message, args);
return false;
}
bool LogAndHandle(this ILogger logger, Exception exception, string message, params object[] args)
- Brave: "C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\Brave.exe"
- MS Edge: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
- with profile: --profile-directory="Profile 2"
- with incognito: --incognito
- with dev tools: --auto-open-devtools-for-tabs