-
https://github.com/SARDONYX-sard/awesome-starsへいってuse templateを押す。
-
https://github.com/settings/tokensへ行って
Personal Access Tokens
を押し、Generate Access Token
を押す。 -
Note欄は自由にメモを書き、以下の権限を与える
Expirationを無期限にしたらTokenエラーが発生した件。(今は90日にした。)
https://github.com/SARDONYX-sard/awesome-starsへいってuse templateを押す。
https://github.com/settings/tokensへ行ってPersonal Access Tokens
を押し、Generate Access Token
を押す。
Note欄は自由にメモを書き、以下の権限を与える
Expirationを無期限にしたらTokenエラーが発生した件。(今は90日にした。)
$Source = @" | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
public class CpuID : IDisposable | |
{ |
# How to automation ssdh? | |
# | |
# 1. Execute `compmgmt.msc` on powershell | |
# 2. Service & application -> duble click service | |
# 3. Find `OpenSSH SSH Server` | |
# 4. Select `automation` of `A kind of startup` item | |
# Are you root?(need `sudo command`. use `winget install gsudo) | |
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` | |
[Security.Principal.WindowsBuiltInRole] "Administrator")) { |
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Start-Process C:\Windows\system32\rundll32.exe sysdm.cpl, EditEnvironmentVariables -Verb runas |
更新ログ
UML
で記述。記事の既知の問題
/* | |
MIT License | |
Copyright (c) 2015 brookhong | |
- https://github.com/brookhong/Surfingkeys/blob/6d0ee1dfda4e5231920bda0a20996134d1e0ba29/docs/API.md | |
*/ | |
declare namespace api { | |
/** | |
* Create a shortcut in normal mode to execute your own action. | |
* @param keys - The key sequence for the shortcut. |
# if GitBash => $HOME/.gnupg
ii $HOME\AppData\Roaming\gnupg
# Warning: vscode-devcontainer read $HOME\AppData\Roaming\gnupg, not $HOME/.gnupg
注意:
# Usage: | |
# .\delete.ps1 | |
# Check if the script is running with administrative privileges | |
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
# Relaunch the script as an administrator | |
if (Get-Command pwsh) { | |
Start-Process pwsh -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File ./delete.ps1" -Verb RunAs | |
}else{ | |
Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File ./delete.ps1" -Verb RunAs |
#! python3 | |
modes = { | |
"ColorName": 0, | |
" Bold": 1, | |
"Underline": 4, | |
"Invisible": 8, | |
" Reverse": 7, | |
} |