I hereby claim:
- I am sdorra on github.
- I am sdorra (https://keybase.io/sdorra) on keybase.
- I have a public key ASAqzQv8znLxEcLWEJWrQUhXib91ha5mwDspYuZST9C6Xwo
To claim this, I am signing this object:
openssl ecparam -name prime256v1 -genkey -noout -out private.pem | |
openssl ec -in private.pem -pubout -out public.pem |
import org.bouncycastle.bcpg.ArmoredInputStream; | |
import org.bouncycastle.bcpg.ArmoredOutputStream; | |
import org.bouncycastle.bcpg.BCPGOutputStream; | |
import org.bouncycastle.bcpg.HashAlgorithmTags; | |
import org.bouncycastle.jce.provider.BouncyCastleProvider; | |
import org.bouncycastle.openpgp.PGPException; | |
import org.bouncycastle.openpgp.PGPKeyPair; | |
import org.bouncycastle.openpgp.PGPObjectFactory; | |
import org.bouncycastle.openpgp.PGPPrivateKey; | |
import org.bouncycastle.openpgp.PGPPublicKey; |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "freebsd/FreeBSD-12.0-STABLE" | |
# forward SCM-Manager port to host | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
# add some more memory |
@Grab(group='org.eclipse.jetty', module='jetty-server', version='9.1.6.v20160112') | |
@Grab(group='org.eclipse.jetty', module='jetty-servlet', version='9.1.6.v20160112') | |
@Grab(group='org.eclipse.jetty', module='jetty-proxy', version='9.1.6.v20160112') | |
@Grab(group='com.google.guava', module='guava', version='29.0-jre') | |
import com.google.common.io.ByteStreams; | |
import org.eclipse.jetty.client.api.Request; | |
import org.eclipse.jetty.client.util.BytesContentProvider; | |
import org.eclipse.jetty.proxy.ProxyServlet; | |
import org.eclipse.jetty.server.Server; |
I hereby claim:
To claim this, I am signing this object:
node('docker') { | |
stage 'start database' | |
docker.image('redis:3.0.7-alpine').withRun { c -> | |
def ip = hostIp(c) | |
stage 'client set' | |
docker.image('redis:3.0.7-alpine').inside { | |
sh "redis-cli -h ${ip} set test 123" |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"log" | |
"math/big" |
public class App { | |
public static void main(String[] args) { | |
Type type = new Type("hg", "Mercurial"); | |
Repository repository = new Repository("42", "scm", type, "SCM-Manager", "SCM-Manager Repository Hosting"); | |
System.out.println(JSON.asString(repository)); | |
System.out.println(JSON.asString(repository, "id", "desc")); | |
System.out.println(JSON.asString(repository, "id", "name", "type", "type.name", "displayName")); | |
} |
/* | |
* Genarate rsa keys. | |
*/ | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" |
package main | |
import ( | |
"io" | |
"strconv" | |
"time" | |
"github.com/gin-gonic/gin" | |
) |