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 EnableDelayedExpansion | |
pushd "%~dp0" & set "SCRIPT_BASE=%CD%" | |
echo ================================================= | |
echo 作業ブランチに特定リビジョンからマージします | |
echo ================================================= | |
echo 作業を中断する場合は Ctrl+c をクリックしてください | |
ping -n 3 localhost>nul | |
rem ------------------------- | |
rem クライアント・定数定義 |
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 | |
set "tdomain=." | |
set "tusername=username" | |
set "tpassword=password" | |
call :login "z" "\\network\folder" | |
exit /b 0 | |
:run |
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 | |
echo\ /? |
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
@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 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 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 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 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 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停止するやつ | |
docker-kill () | |
{ | |
local target=$(docker ps -q); | |
[ -n "$target" ] && docker kill $(docker ps -q); | |
docker system prune -f | |
} | |
# Dockerイメージも含めて根こそぎ消すやつ | |
docker-clean () |
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
import org.apache.tools.ant.taskdefs.condition.Os | |
String cmdLine(String cmd, Writer out = new StringWriter(), Writer err = new StringWriter()) { | |
(Os.isFamily(Os.FAMILY_WINDOWS) ? "cmd /c ${cmd}" : cmd).execute().waitForProcessOutput(out, err) | |
assert err.toString().trim().size() == 0: "$err" | |
out.toString() | |
} | |
task hello << { | |
cmdLine("echo hello") | |
} |
NewerOlder