This file contains hidden or 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
#!/bin/sh | |
EMAIL=$1 | |
if [ -z "$EMAIL" ] ; then | |
[email protected] | |
fi | |
if [ ! -e .git ] ; then | |
git init | |
fi |
This file contains hidden or 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
Set-PSDebug -Strict | |
$saveEncode = $null | |
if ([Console]::IsOutputRedirected) { | |
$saveEncode = [System.Console]::OutputEncoding | |
[System.Console]::OutputEncoding=[System.Text.Encoding]::UTF8 | |
} | |
$gitfiles = @{} | |
git ls-files | ForEach-Object { $gitfiles[ $_ ] = $true } |
This file contains hidden or 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
Set-PSDebug -Strict | |
$saveEncode = $null | |
if ([Console]::IsOutputRedirected) { | |
$saveEncode = [System.Console]::OutputEncoding | |
[System.Console]::OutputEncoding=[System.Text.Encoding]::UTF8 | |
} | |
Get-ChildItem "release_note*" | Sort-Object { Format-Hex -InputObject $_.Name } | ForEach-Object{ | |
$lang = "(English)" |
This file contains hidden or 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
CREATE TABLE datetime_test ( | |
id INTEGER PRIMARY KEY, | |
-- 文字列(TEXT)形式 | |
d_date DATE, -- "YYYY-MM-DD" | |
d_time TIME, -- "HH:MM:SS" | |
d_datetime DATETIME, -- "YYYY-MM-DD HH:MM:SS" | |
-- ISO8601拡張 (TEXT) | |
d_iso8601 TEXT, -- "YYYY-MM-DDTHH:MM:SSZ" など |
This file contains hidden or 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
Set-PSDebug -Strict | |
function Update-Exe($source){ | |
if ( -not (Test-Path $source) ){ | |
Write-Host "$source not found" | |
Exit 1 | |
} | |
$name = (Split-Path $source -Leaf) | |
This file contains hidden or 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
@setlocal | |
@set "PROMPT=$G$S" | |
if not "%~1" == "-" ( | |
start "(PostgreSQL)" "%~dpnx0" - | |
exit /b | |
) | |
pg_ctl start | |
pause | |
pg_ctl stop | |
exit |
This file contains hidden or 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
@setlocal | |
@set "PROMPT=$G$S" | |
net session >nul 2>&1 | |
if errorlevel 2 ( | |
pwsh -CommandWithArgs "start-process $args[0] -verb runas" "%~dpnx0" | |
exit /b | |
) | |
@set "SERVICE=OracleServiceXE OracleOraDB21Home1TNSListener" | |
@rem OracleOraDB21Home1MTSRecoveryService |
This file contains hidden or 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
@setlocal | |
@set "PROMPT=$G$S" | |
@set "SERVICES=MSSQL$SQLEXPRESS" | |
@rem SQLTELEMETRY$SQLEXPRESS SQLAgent$SQLEXPRESS SQLWriter SQLBrowser | |
net session >nul 2>&1 | |
if errorlevel 2 ( | |
pwsh -CommandWithArgs "start-process $args[0] -verb runas" "%~dpnx0" | |
exit /b | |
) |
This file contains hidden or 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
@setlocal | |
@set "PROMPT=$G$S" | |
if not "%~1" == "-" ( | |
start "(MySQL)" "%~dpnx0" - | |
@exit /b | |
) | |
start "(MySQL)" /b mysqld --console | |
pause | |
mysqladmin -u root shutdown | |
@exit |
This file contains hidden or 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
# For example | |
# goawk -f latest-notes.awk release_note_*.md | gh release create -d --notes-file - -t $(VERSION) $(VERSION) $(wildcard $(NAME)-$(VERSION)-*.zip) | |
match($0,/^v[0-9]+\.[0-9]+\.[0-9]+$/) > 0 { | |
flag = ++f[FILENAME] | |
if ( flag == 1 ) { | |
version = substr($0,RSTART,RLENGTH) | |
printf "\n### Changes in %s ",version | |
if (FILENAME ~ /ja/) { | |
print "(Japanese)" |
NewerOlder