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
| //go:build orgxwidth | |
| package moji | |
| import ( | |
| "unicode" | |
| "golang.org/x/text/width" | |
| ) |
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
| @echo off | |
| @setlocal | |
| @set PROMPT=$G$S | |
| if "%~1" == "" goto :clean | |
| @echo on | |
| go1.20.14 work init | |
| go1.20.14 work use %* | |
| @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
| @echo off | |
| if exist ".github\workflows\go.yml" goawk "/^module /{ printf '[](https://%%s/actions/workflows/go.yml)\n',$2,$2 }" go.mod | |
| if exist LICENSE findstr "^MIT License" LICENSE >nul 2>&1 && goawk "/^module /{ printf '[](https://%%s/blob/master/LICENSE)\n',$2}" go.mod | |
| goawk "/^module /{ printf '[](https://pkg.go.dev/%%s)\n',$2,$2}" go.mod | |
| rem gist https://gist.github.com/hymkor/af624060b243b74aef5bf563a95a1e96 |
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=3752189+hymkor@users.noreply.github.com | |
| 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 | |
| } | |
| $blanklines = $null | |
| Get-ChildItem "release_note*.md" -Recurse | Sort-Object { Format-Hex -InputObject $_.FullName } | ForEach-Object{ |
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 |
NewerOlder