Skip to content

Instantly share code, notes, and snippets.

@nayuta
nayuta / diagren.bat
Created June 25, 2021 03:17
Inutne Collected Diagnostics Rename Batch
REN Rename Downloaded Files
REN
REN Copy this file in extracted folder (like DiagLogs-COMPUTERNAME-20200101T000000Z) and double click it.
REN
REN Write by nayuta
ren 1 "1_RegistryKeys_HKLM_Software_Microsoft_IntuneManagementExtension"
ren 2 "2_RegistryKeys_HKLM_SOFTWARE_Microsoft_SystemCertificates_AuthRoot"
ren 3 "3_RegistryKeys_HKLM_SOFTWARE_Microsoft_Windows_Endpoint"
ren 4 "4_RegistryKeys_HKLM_SOFTWARE_Microsoft_Windows_CurrentVersion_Authentication_LogonUI"
@nayuta
nayuta / gist:c9f109a87f557b86cc4a9bf3056d0ef3
Last active August 19, 2020 16:24
Google Spreadsheet で選択しているセルの文字列を任意に置換する
function myFunction() {
// 下記の文字列のサンプルでは半角英字を全角英字に変換している。
const from = "ABCDEFG"; // 置換元文字列
const to = "ABCDEFG"; // 置換先文字列(置換元と同じ並びにする)
const activeRange = SpreadsheetApp.getActiveSheet().getActiveRange(); // 今選択している部分を取得
let values = activeRange.getValues(); // 今選択している部分を配列で取得
const re = new RegExp('[' + from + ']', 'g'); // 置換文字列をさがすための正規表現を生成
@nayuta
nayuta / echo.sh
Created August 20, 2014 03:54
docker imageに一時的に修正を入れて使う ref: http://qiita.com/inayuta/items/68c4097c4f18658538fe
#!/bin/sh
docker run nayuta/working-image echo "What's up?"