Skip to content

Instantly share code, notes, and snippets.

View kiy0taka's full-sized avatar
🔒

Kiyotaka Oku kiy0taka

🔒
View GitHub Profile
@kiy0taka
kiy0taka / データ移行.md
Last active August 8, 2017 23:46 — forked from chihiro-adachi/データ移行.md
データ移行.md

3.0.x - > 3.nへのデータ移行

3.0.xのデータを抽出し、DataFixtureで読み込み可能なCSVへ変換する

以下の操作で3.0.xデータを3.nで移行できるようにする(イメージ)

cd /path/to/eccube30
php app/console convert::3n /path/to/eccube3n/src/Resouce/doctrine/import_csv
@Grab('org.eclipse.jetty:jetty-server:8.1.14.v20131031')
import org.eclipse.jetty.server.Server
import org.eclipse.jetty.server.handler.ContextHandler
import org.eclipse.jetty.server.handler.ResourceHandler
import org.eclipse.jetty.util.resource.FileResource
def handler = new ResourceHandler()
handler.directoriesListed = true
handler.baseResource = new FileResource(new File(args ? args[0] : System.getProperty('user.dir')).canonicalFile.toURL())
package org.jenkinsci.plugins.hoge;
import java.io.IOException;
import java.util.Date;
import javax.servlet.ServletException;
import hudson.Extension;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import com.intellij.patterns.PsiJavaPatterns
import com.intellij.patterns.PlatformPatterns
def ctx = context(
ctype: PsiJavaPatterns.psiClass().withName(PlatformPatterns.string().matches(/.*/))
)
contributor(ctx) {
def path = ""
try {
import static org.vertx.groovy.core.streams.Pump.createPump
def conf = [
"crash.auth": "simple",
"crash.auth.simple.username": "admin",
"crash.auth.simple.password": "admin",
"crash.ssh.port": "2000"
]
container.deployModule("org.crashub~vertx.shell~2.0.2", conf)
contributor(context(scope:scriptScope())) {
property name:'vertx', type:'org.vertx.java.core.impl.DefaultVertx'
}
ratpack {
modules {
register(new AbstractModule() {
protected void configure() {
MongoDatastoreConfigurer.configure("myDatabase", Book)
}
})
}
}
git clone git@github.com:kiy0taka/jggug-ws-2013-06.git
cd jggug-ws-2013-06
最初のデモ
git co refs/tags/demo1
2番目のデモ
git co refs/tags/demo2
3番目のデモ
@Grab('org.twitter4j:twitter4j-core:3.0.3')
import twitter4j.*
TwitterFactory.singleton.search(new Query(query:'ほげほげ', count:100)).tweets.each { println it.text }
@Grapes([
@Grab('org.spockframework:spock-core:0.7-groovy-2.0'),
@GrabExclude('org.codehaus.groovy:groovy-all')])
import spock.lang.*
class HelloSpock extends Specification {
def "おーるどどーなってんの?"() {
setup:
def list = [1, 2, 3]