Skip to content

Instantly share code, notes, and snippets.

View SARDONYX-sard's full-sized avatar
🌴
On vacation

SARDONYX SARDONYX-sard

🌴
On vacation
View GitHub Profile
@SARDONYX-sard
SARDONYX-sard / gist:547e7244558f4da73a153bc8b5d98dea
Last active November 18, 2021 19:27
GitHub Actionでawesome-starsを使ったときにToken Errorで詰まった件
@SARDONYX-sard
SARDONYX-sard / check-simd-support-powershell.ps1
Last active August 3, 2022 20:24
Check SIMD extension support in PowerShell on Windows 10 or 11 immediately after a clean install.
$Source = @"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Runtime.InteropServices;
public class CpuID : IDisposable
{
@SARDONYX-sard
SARDONYX-sard / start-sshd.ps1
Created July 29, 2022 09:37
How to connect to Windows via ssh using OpenSSH server
# 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")) {
@SARDONYX-sard
SARDONYX-sard / open-env-gui.ps1
Last active July 29, 2022 18:30
Useful shortcut command on Windows10, 11
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Start-Process C:\Windows\system32\rundll32.exe sysdm.cpl, EditEnvironmentVariables -Verb runas
@SARDONYX-sard
SARDONYX-sard / Node.js - セレニウムで遊ぼ!(b ・ω・).md
Last active December 25, 2022 18:19
Qiitaに投稿していた記事すべて

更新ログ

記事の既知の問題

  • 折りたたみのコードの後に「詳細」という折りたたみが居座り続ける。

前書き

  • この記事では、「アメリカのアリゾナ州の天気をテキストファイルに書き込むプログラム」を書いていきます。
@SARDONYX-sard
SARDONYX-sard / surfingkeys-settings.d.ts
Last active February 21, 2024 00:00
Surfingkeys Settings
/*
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.
@SARDONYX-sard
SARDONYX-sard / How-to-verify-commit-with-gpg-key.md
Last active March 12, 2023 22:47
GnuPGで署名済みコミットをする方法
# if    GitBash => $HOME/.gnupg
ii $HOME\AppData\Roaming\gnupg

# Warning: vscode-devcontainer read $HOME\AppData\Roaming\gnupg, not $HOME/.gnupg

注意:

  • dockerコンテナではgnupg2を手動で入れない限りまともコミットできない!
@SARDONYX-sard
SARDONYX-sard / delete.ps1
Last active September 14, 2023 21:44
My Powershell scripts(Backup savedata, delete Program files, bluetooth)
# 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

ModOrganizer Skyrim SE\mods\Enhanced Character Edit -SE キャラクリ編集画面の強化 youngNord追加\meshes\CharacterMakingExtenderにある nameList.txtに使いたい日本語の名前を入れるとキャラクリ画面で名前を変更できる

よく使うキー

  • 通常
    • 自動歩行: c
    • シャウト: z
    • ダッシュ: left-shift
  • 隠密: CapsLock
@SARDONYX-sard
SARDONYX-sard / color.py
Last active September 27, 2022 05:39
Show ansi color
#! python3
modes = {
"ColorName": 0,
" Bold": 1,
"Underline": 4,
"Invisible": 8,
" Reverse": 7,
}