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
# 日付時刻と、id(int) の主キーがある場合のファイル | |
import re | |
import argparse | |
import os | |
def process_files(file1, file2): | |
# 拡張子を取得 | |
base1, ext1 = os.path.splitext(file1) | |
base2, ext2 = os.path.splitext(file2) |
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
# 証明書のドメイン名 | |
$domain = "example.com" | |
# PFX のパスワード | |
$pfxPassword = "P@sSw0rD" | |
# WSLでスクリプトを実行し、PFXファイルのパスを取得 | |
$runWSL = & wsl bash -c "~/rdp-wsl-certbot.sh" | |
$line = $runWSL -split "`n" | Where-Object { $_ -match "PFX_WINDOWS_PATH:" } | |
$pfxWindowsPath = $line -replace "PFX_WINDOWS_PATH:\s*", "" |
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 System.Diagnostics; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Diagnostics; | |
namespace Praecipua.EE | |
{ | |
public class UnityCrasher : EditorWindow | |
{ | |
[MenuItem("Window/Praecipua/[Danger] Crash Unity")] |
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 os | |
import argparse | |
import shutil | |
import tarfile | |
def extract_tar_to_folder(unitypackage_file, copy_meta, force_overwrite): | |
# Unitypackage ファイルの名前から拡張子を取り除いたフォルダを作成 | |
folder_name = os.path.splitext(unitypackage_file)[0] | |
# 上述のフォルダがすでに存在するかチェック |