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/bash | |
| # Docker インストール | |
| type -f docker > /dev/null && { | |
| docker -v | |
| } || { | |
| ( | |
| echo "[info] 'docker' is not found. start install..." | |
| sudo apt-get update | |
| sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
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 EnableDelayedExpansion | |
| pushd "%~dp0" & set "SCRIPT_BASE=%CD%" | |
| echo ================================================= | |
| echo 作業ブランチに特定リビジョンからマージします | |
| echo ================================================= | |
| echo 作業を中断する場合は Ctrl+c をクリックしてください | |
| ping -n 3 localhost>nul | |
| rem ------------------------- | |
| rem クライアント・定数定義 |
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 "tdomain=." | |
| set "tusername=username" | |
| set "tpassword=password" | |
| call :login "z" "\\network\folder" | |
| exit /b 0 | |
| :run |
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 | |
| echo\ /? |
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
| @if(0)==(0) echo off | |
| setlocal | |
| call cscript //nologo /E:JScript "%~f0" %CD:\=/% | |
| exit /b | |
| @end | |
| var folder = "file:///" + WScript.Arguments(0); | |
| var shellWindows = (new ActiveXObject("Shell.Application")).Windows(); | |
| if (shellWindows != null) { | |
| for (var win = new Enumerator(shellWindows); !win.atEnd(); win.moveNext()) { | |
| if (folder == win.item().LocationUrl) win.item().Quit(); |
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
| Option Explicit | |
| '' ======================================================== | |
| '' Excelのシート一覧を表示します | |
| '' -------------------------------------------------------- | |
| '' 引数: | |
| '' ファイルパス | |
| '' ======================================================== | |
| Dim objFso, fileExcel | |
| Set objFso = CreateObject("Scripting.FileSystemObject") | |
| fileExcel = objFso.GetAbsolutePathName(WScript.Arguments(0)) |
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 EnableDelayedExpansion | |
| set "TARGETS=" | |
| for /f "usebackq tokens=*" %%i in ( `docker ps -q` ) do set "TARGETS=!TARGETS! %%i" | |
| if not "x!TARGETS!"=="x" if not "x!TARGETS: =!"=="x" docker kill !TARGETS! | |
| docker system prune -f | |
| set "DANG_TARGETS=" | |
| set "TARGETS=" |
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
| apply from: "slack-report.gradle" | |
| slack { | |
| workspace = "your-slack-workspace" | |
| channel = ~/^your-channel/ | |
| email = "example@example.com" | |
| password = "yourpassword" | |
| template = { "test" } | |
| } |
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
| apply from: "jboss-mocule-checker.gradle" | |
| check { | |
| deploymentStructure = "C:/path/to/jboss-deployment-structure.xml" | |
| jbossHome = "C:/path/to/jboss-eap-7.2" | |
| } |
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
| docker-kill() { | |
| # usage: docker-kill | |
| # kill all active docker processes | |
| local target="$(docker ps -q)" | |
| [[ -n "$target" ]] && { | |
| echo "$target" | xargs -i docker kill {} | |
| } | |
| } | |
| docker-clean() { |
NewerOlder