Usage: SCF-GetFace.bat <ShortcutFile>
Usage: SCF-SetFace.bat <ShortcutFile> <FontFace>
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
#!/usr/bin/gawk -f | |
BEGIN { | |
bad_sector = non_split = non_trimmed = finished = non_tried = 0; | |
} | |
$3 == "-" {bad_sector += strtonum($2);} | |
$3 == "/" {non_split += strtonum($2);} | |
$3 == "*" {non_trimmed += strtonum($2);} | |
$3 == "+" {finished += strtonum($2);} | |
$3 == "?" {non_tried += strtonum($2);} |
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
@ECHO OFF | |
SETLOCAL | |
REM Check the permission | |
openfiles >NUL 2>&1 | |
IF %ERRORLEVEL% == 0 GOTO ;MAIN | |
REM Elevate with UAC | |
powershell -C start-process %0 -verb runas | |
GOTO :EOF |
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
#!/usr/bin/env bash | |
function usage () | |
{ | |
cat <<-EOD | |
Usage: ${0##*/} [options] <pdffile>... | |
Drop password from PDF file. | |
Output: | |
\${@%.*}_nopw.pdf | |
Environment variables: |
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
#!/usr/bin/env bash | |
# | |
# checkkey.sh - Check key about GNUPG. | |
# Copyright (c) 2022 Koichi OKADA. All rights reserved. | |
# This script is distributed under the MIT license. | |
# | |
SGR0="\e[0m" | |
SGR1="\e[1m" | |
SGR31="\e[31m" |
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
<# :: | |
@REM shebang4powershell.bat - shebang for PowerShell by Batch file. | |
@REM Copyright 2022 (c) Koichi OKADA. All rights reserved. | |
@REM This script is destributed under the MIT license. | |
@REM References: | |
@REM https://qiita.com/earthdiver1/items/cab769aad623a03a0f2d | |
@REM https://stackoverflow.com/q/2609985 | |
@ | |
@SETLOCAL | |
@SET ARGS=%* |
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
#!/usr/bin/env ruby | |
# | |
# wordwc.rb - wc for Microsoft Word | |
# Copyright (c) 2021 Koichi OKADA. All rights reserved. | |
# This script is distributed under the MIT license. | |
# | |
require 'win32ole' | |
require 'optparse' |
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
/** | |
* Simple Calendar | |
* Copyright (c) 2021 Koichi OKADA. All rights reserved. | |
* This script is distributed under the MIT license. | |
*/ | |
(function(){ | |
let wd0 = 0; // week day of the first cell in calendar | |
let pad = (s,w,c="0")=>(Array(w).fill(c).join("")+s).slice(-w); | |
let isSameMonth = (d1,d2) => d1.getMonth() == d2.getMonth(); | |
let today = new Date(); |
NewerOlder