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 **************************************************************************** | |
rem SVNから差分ファイルをエクスポートするバッチファイル | |
rem 使い方: | |
rem $ diffexport <FromRev> <ToRev> <WorkDir> <OutputDir> | |
rem 例: | |
rem $ diffexport 0 HEAD "c:\project" "c:\output" | |
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
/* | |
* 例としてセレニウムの HTML テストケース本番環境用を開発環境用に書換え。<br> | |
* 本番は{@code https://}から始まるが、開発環境用は{@code http://}で始まる。 | |
*/ | |
def fromDir = new File('/selenium/production/') | |
def toDir = new File('/selenium/develop') | |
fromDir.eachFile { fromFile -> | |
if (fromFile.name ==~ /^.*\.html$/) { | |
def toWriter = new File(toDir, fromFile.name).newWriter() | |
fromFile.eachLine { |
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
@Grab('net.schmizz:sshj:0.9.0') | |
import net.schmizz.sshj.SSHClient | |
import net.schmizz.sshj.common.IOUtils | |
import net.schmizz.sshj.transport.verification.HostKeyVerifier | |
def ssh = new SSHClient() | |
// これを記述しないと TransportException が発生 | |
// どうやら ssh-rsa を確認しているらしい | |
ssh.addHostKeyVerifier({ s, i, k -> true } as HostKeyVerifier) | |
ssh.connect '127.0.0.1', 2222 |
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
@Grab('com.jcraft:jsch:0.1.50') | |
@Grab('commons-io:commons-io:2.4') | |
import com.jcraft.jsch.ChannelExec | |
import com.jcraft.jsch.JSch | |
import com.jcraft.jsch.Session | |
import org.apache.commons.io.IOUtils | |
JSch.config = [StrictHostKeyChecking:'no'] | |
Session session = null | |
ChannelExec channel = null |
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
@Grab(group = 'org.tmatesoft.svnkit', module = 'svnkit', version = '1.7.8') | |
import org.tmatesoft.svn.core.* | |
import org.tmatesoft.svn.core.auth.* | |
import org.tmatesoft.svn.core.io.* | |
import org.tmatesoft.svn.core.wc.* | |
def svnRepositoryUrl = 'http://svn.svnkit.com/repos/svnkit/trunk' | |
def name = 'anonymous' | |
def password = 'anonymous' |
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
@Grab(group='org.gebish', module='geb-core', version='2.1') | |
@Grab(group='org.seleniumhq.selenium', module='selenium-api', version='3.11.0') | |
@Grab(group='org.seleniumhq.selenium', module='selenium-firefox-driver', version='3.11.0') | |
import geb.* | |
System.properties['webdriver.gecko.driver'] = './geckodriver.exe' | |
class ThisGistPage extends Page { | |
// 何故か this.url が空になるのでブラウザから現在の url を取得 |
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
#!/bin/sh | |
#========================================================= | |
# 対象SVNリポジトリの参照チケット番号一覧を出力します | |
# その際Tracから対象のチケットタイトルも取得します | |
# | |
# 引数) | |
# 第1引数: 開始リビジョン番号 | |
# 第2引数: 終了リビジョン番号(任意) | |
# 第3引数: SVNリポジトリURL(任意) | |
# 第4引数: Trac URL(任意) |
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 java.io.Serializable; | |
import java.io.StringWriter; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.core.Filter; | |
import org.apache.logging.log4j.core.Layout; | |
import org.apache.logging.log4j.core.LogEvent; | |
import org.apache.logging.log4j.core.Logger; | |
import org.apache.logging.log4j.core.appender.AbstractAppender; | |
import org.apache.logging.log4j.core.layout.PatternLayout; |
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
package sample; | |
import jdk.nashorn.api.scripting.ScriptObjectMirror; | |
import org.junit.Ignore; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.experimental.runners.Enclosed; | |
import org.junit.rules.ExternalResource; | |
import org.junit.rules.TemporaryFolder; | |
import org.junit.runner.RunWith; |
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
#!/bin/sh | |
# ========================================================= | |
# Shibboleth 3.0.2 FastCGI Bugfix script. | |
# -- | |
# Please use this script untill bug [SSPCPP-834] fixed. | |
# ========================================================= | |
_SHIBBOLETH_VERSION=3.0.2 | |
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} |
OlderNewer