https://github.com/coursier/coursier#command-line-1
Generate a read-only, personal access token for GitHub.
export GITHUB_TOKEN=XXXXXXX| # To regenerate the test key and certificates | |
| # Generate an RSA private key and convert it to PKCS8 wraped in PEM | |
| openssl genrsa 2048 | openssl pkcs8 -topk8 -inform pem -outform pem -nocrypt -out rsa.key | |
| # Generate a certificate signing request with the private key | |
| openssl req -new -key rsa.key -out rsa.csr | |
| # Sign request with private key | |
| openssl x509 -req -days 10000 -in rsa.csr -signkey rsa.key -out rsa.crt | |
https://github.com/coursier/coursier#command-line-1
Generate a read-only, personal access token for GitHub.
export GITHUB_TOKEN=XXXXXXXA checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
I use Play 2.5.6 with Scala and found several interesting modules but I think some basic and really useful features are still missing...
Here is my sample app where I do my tests :
I list here needed features (according to me) from the most needed to the least needed.
| fooapp@srv:~$ cat app/env/PLAY_OPTS | |
| export DATABASE_URL="jdbc:postgresql://127.0.0.1/foobar" | |
| # We could wire a different configuration file here | |
| # or set up a different database on the fly | |
| export PLAY_OPTS="-DapplyEvolutions.default=true -DapplyDownEvolutions.default=true -Ddb.default.url="$DATABASE_URL" -Ddb.default.user=fooapp -Ddb.default.password=fooapppw -Ddb.default.driver=org.postgresql.Driver" |
| #!/bin/bash | |
| REMOTE=play@SERVER_IP | |
| REMOTE_APP=/home/play/PROJECT_NAME/ | |
| sbt stage || exit 1; | |
| ssh $REMOTE "cd $REMOTE_APP; ./stop.sh"; | |
| rsync -va target/ $REMOTE:$REMOTE_APP/target | |
| ssh $REMOTE "cd $REMOTE_APP; ./start.sh"; |
So, there have been some discussions and angry tweets recently about irritating Scala "features" (like value discarding and auto-tupling) that can actually be turned off by selecting the right compiler flag in conjunction with -Xfatal-warnings. I highly recommend a set of options something like those below.
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8", // yes, this is 2 args
"-feature",
"-language:existentials",Setup vagrant vm
vagrant box add precise64 http://files.vagrantup.com/precise64.box
vagrant init precise64
sed -i '.bak' 's/# config.vm.network :private_network/config.vm.network :private_network/' Vagrantfile
vagrant up
vagrant sshInstall base software and apache (to have something to proxy)