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
image: java:8-jdk | |
stages: | |
- build | |
- test | |
- deploy | |
before_script: | |
# - echo `pwd` # debug | |
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug |
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
// UDP Sample Client | |
// UDP 接続先 | |
var host = "localhost"; | |
var c_port = 41234; | |
var dgram = require("dgram"); | |
var client = dgram.createSocket("udp4"); | |
// サーバに送信するメッセージ | |
// var message = new Buffer("hello"); |
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
//all job name | |
jenkins.model.Jenkins.instance.items.each { | |
println "Job: ${it.name}" | |
} | |
//method list of Jenkins instance | |
jenkins.model.Jenkins.instance.class.methods.each { | |
println "Jenkins method: ${it.name}" | |
} |
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
ProxyCommand "C:\Program Files\git\bin\connect.exe" -H proxy.example.com:8080 %h %p | |
Host github.com | |
HostName ssh.github.com | |
Port 443 | |
IdentityFile C:\Users\hoge\.ssh\id_rsa | |
Host bitbucket.org | |
HostName altssh.bitbucket.org | |
Port 443 | |
IdentityFile C:\Users\hoge\.ssh\id_rsa |
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
function zip ($zipFilePath, $targetDir) { | |
# load Ionic.Zip.dll | |
[System.Reflection.Assembly]::LoadFrom(path\to\Ionic.Zip.dll) | |
$encoding = [System.Text.Encoding]::GetEncoding("shift_jis") # 日本語のファイルを扱うために必要 | |
$zipfile = new-object Ionic.Zip.ZipFile($encoding) | |
$zipfile.AddDirectory($targetDir) | |
if (!(test-path (split-path $zipFilePath -parent))) { | |
mkdir (split-path $zipFilePath -parent) |
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 | |
set PROXY_SERVER="proxy.example.com:80" | |
set PROXY_OVERRIDE="172.30.*" | |
echo *** Set proxy config *** | |
echo PROXY_ENABLE | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "ProxyEnable" /t REG_DWORD /d "1" /f |
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 | |
ruby -S -x %0 %* | |
goto end | |
#! ruby | |
# some ruby code | |
__END__ | |
:end | |
pause |
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
buildscript { | |
ext { | |
springBootVersion = '1.4.0.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} |
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
# encoding: utf-8 | |
# | |
# Prerequisite: | |
# gem install ruby-oci8 | |
require 'oci8' | |
def log(message) | |
puts "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")} #{message}" | |
end |
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
// Proxy 設定は %USERPROFILE%\.groovy\preinit.bat に JAVA_OPTS として記述する。 | |
// ex.) | |
// set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=proxyserver -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=secret | |
// set JAVA_OPTS=%JAVA_OPTS% -Dhttps.proxyHost=proxyserver -Dhttps.proxyPort=8080 -Dhttps.proxyUser=username -Dhttps.proxyPassword=secret | |
@GrabResolver(name="kobo", root="https://repository-kobo.forge.cloudbees.com/release") | |
@Grab("org.jggug.kobo:gexcelapi:0.3") | |
import org.jggug.kobo.gexcelapi.GExcel | |
def book = GExcel.open(args[0]) |
NewerOlder