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
#!/usr/bin/groovy | |
@GrabResolver(name='es', root='https://oss.sonatype.org/content/repositories/releases') | |
@Grapes([ | |
@Grab(group='org.elasticsearch', module='elasticsearch', version='0.19.0.RC2'), | |
@Grab(group='org.elasticsearch', module='elasticsearch-lang-groovy', version='1.1.0')]) | |
import org.elasticsearch.groovy.client.GClient | |
import org.elasticsearch.groovy.node.GNode |
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
#!/usr/bin/groovy | |
@Grapes([ | |
@Grab(group='com.gmongo', module='gmongo', version='0.9.2'), | |
@Grab(group='org.apache.httpcomponents', module='httpmime', version='4.1.2'), | |
@Grab(group='org.apache.httpcomponents', module='httpclient', version='4.0'), | |
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.0'), | |
@Grab(group='org.apache.httpcomponents', module='httpmime', version='4.1.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
@Grapes([ | |
@Grab(group='net.sourceforge.nekohtml', module='nekohtml', version='1.9.14'), | |
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.1'), | |
@Grab(group='xerces', module='xercesImpl', version='2.9.1') ]) | |
import groovyx.net.http.* | |
import static groovyx.net.http.ContentType.URLENC | |
import static groovyx.net.http.ContentType.* | |
import static groovyx.net.http.Method.* | |
import groovyx.net.http.* |
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
# Last used 2017-01-21, Ubuntu 16.10 | |
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSUbuntuNotes | |
http://www.slideshare.net/YusukeKomiyama/virtuoso-7-install-guide-for-ubuntu-1210-64bit | |
# | |
apt-get install dpkg-dev build-essential | |
apt-get install autoconf automake bison checkinstall flex gawk gperf libiodbc2 libiodbc2-dev libssl-dev libtool python-dev | |
git clone https://github.com/openlink/virtuoso-opensource.git |
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
Rough notes on my first new controller inside a SmartAdmin angular apps. Documentation seems very thin on the ground, so experimenting and documenting those experiments here. | |
New dir :: public/app/home with the following files | |
module.js | |
define([ | |
'angular', | |
'angular-couch-potato', | |
'angular-ui-router', |
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 net.handle.api.HSAdapterFactory | |
import net.handle.hdllib.*; | |
println("groovy -cp ./handle-client.jar test1.groovy"); | |
net.handle.api.HSAdapter hsadapter = HSAdapterFactory.newInstance() | |
def someHandle = "10.1126/science"; | |
String[] types = [] | |
int[] indexes = [] | |
HandleValue[] h = hsadapter.resolveHandle(someHandle, types, indexes); | |
println("Hello ${hsadapter}"); | |
println("Hello ${h}"); |
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.security.KeyPair; | |
import java.security.KeyPairGenerator; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.Signature; | |
import java.io.*; | |
import java.nio.*; | |
import java.security.*; | |
import java.security.spec.*; | |
import java.nio.file.Files; |
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
** Placeholder ** |
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
version: "2.0" | |
volumes: | |
pgdata: | |
mysqldata: | |
esdata: | |
virtuoso: | |
services: | |
# |
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
application.yaml | |
param1: This is param1 | |
BootStrap.groovy | |
def init = { servletContext -> | |
log.debug("test value:\"${grailsApplication.config.param1}\""); | |
} | |
OlderNewer