Skip to content

Instantly share code, notes, and snippets.

#
# Archive-FileShareAccesslogs.ps1
#
# Copyright (c) 2023 tag.
#
$ScriptDir = Split-Path $MyInvocation.MyCommand.Path -Parent
Set-Location $ScriptDir
# デバッグモード
#
# Get-InstalledWindowsApps.ps1
#
# Copyright (c) 2022 tag.
#
$Hostname = $Env:COMPUTERNAME
$Target = "D:\Directory\${Hostname}.csv"
$AppList = (Get-ChildItem -Path ("HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", "HKLM:SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall", "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall") | % { Get-ItemProperty $_.PsPath } | ? { $_.DisplayName -notlike "" })
@echo off
::
:: FALterm Launcher
::
:: Copyright (c) 2021 tag. All rights reserved.
::
cd %~dp0
$CurrentDir = $(Split-Path $MyInvocation.MyCommand.Path -Parent)
Set-Location $CurrentDir
# Parameters
$DomainName = "contoso.local"
$ExpirationYear = 10
$RootCACertName = "RootCA"
$RootCAUser = ""
#!/usr/bin/python
#coding: utf-8
# Copy from https://github.com/SWITCHSCIENCE/BME280/blob/master/Python27/bme280_sample.py
# Customized by tag
import smbus
import time
import datetime
@gcch
gcch / monitor.js
Last active February 9, 2018 23:01
/**
*
* monitor.js --- Show the graph about room status (temp. / hum. / pres.) acquired from json data
*
* Copyright (c) 2018 tag.
*
*/
var express = require('express');
var router = express.Router();
# ------------------------------------------------------------------------------------------ #
#
# ユーザアカウントパスワード変更依頼通知スクリプト
#
# Copyright (c) 2017 tag.
#
# ------------------------------------------------------------------------------------------ #
# ------------------------------------------------------------------------------------------ #
#
@echo off
setlocal enabledelayedexpansion
:: ======================================================================
::
:: nslookup
::
:: Copyright (c) 2017 tag.
:: <http://karat5i.blogspot.jp>
::
Option Explicit
' ======================================================================
'
' nslookup over VBScript
'
' Copyright (c) 2017 tag.
' <http://karat5i.blogspot.jp>
'
' ======================================================================
' Product Key Retriver (before Office 2007, not after Office 2010)
'
' customized by tag
'
' ● 使い方
' [1] レジストリから DigitalProductID を抽出してください。
' 【 「レジストリ エディター」の場合 (Windows が正常に起動する場合) 】
' (1) 「レジストリ エディター」を起動してください。
' キーボードで「Windows キー + R」を押し、「regedit」と入力して [OK] を選択すると立ち上がります。
' (2) DigitalProductID の保存されている場所を開いてください。