Skip to content

Instantly share code, notes, and snippets.

@mystdeim
mystdeim / farewell.sh
Last active December 25, 2020 07:30
Count summary statistics among git repositories in the child directories. Just run it with `./gitstat.sh yourname@example.com`
DIRECTORY=.
WORKING_DIR=$PWD
TMP="$WORKING_DIR/commits"
echo "" > commits
i=0
NAME=$1
echo "Counting stats for $NAME"
class WebVerticle : CoroutineVerticle() {
suspend override fun start() {
val router = Router.router(vertx)
router.get("/api/account/:id").coroutine { account(it) }
// TODO
}
suspend internal fun account(ctx: RoutingContext) {
// TODO
}
fun Route.coroutine(coroutineHandler: suspend (RoutingContext) -> Unit): Route {
sudo java -jar hawtio-app-1.4.66.jar
[main] INFO jetty - using temp directory for jetty: /root/.hawtio/tmp
Embedded hawtio: You can use --help to show usage
Using options [
war=/tmp/hawtio-7492351143374988182.war
contextPath=/hawtio
port=8080
extraClassPath=file:/usr/lib/jvm/java-8-oracle/lib/tools.jar
plugins=plugins
openUrl=true
➜ Downloads java -jar hawtio-app-1.4.66.jar
[main] INFO jetty - using temp directory for jetty: /home/romanovi/.hawtio/tmp
Embedded hawtio: You can use --help to show usage
Using options [
war=/tmp/hawtio-571539584844446991.war
contextPath=/hawtio
port=8080
extraClassPath=file:/usr/lib/jvm/java-8-oracle/lib/tools.jar
plugins=plugins
openUrl=true
@mystdeim
mystdeim / log
Created July 21, 2013 19:35
log
TypeError (wrong argument type ActionDispatch::Http::UploadedFile (expected String)):
activerecord (4.0.0) lib/active_record/connection_adapters/postgresql/oid.rb:34:in `unescape_bytea'
activerecord (4.0.0) lib/active_record/connection_adapters/postgresql/oid.rb:34:in `type_cast'
activerecord (4.0.0) lib/active_record/connection_adapters/postgresql_adapter.rb:136:in `type_cast'
activerecord (4.0.0) lib/active_record/attribute_methods/dirty.rb:93:in `_field_changed?'
activerecord (4.0.0) lib/active_record/attribute_methods/dirty.rb:66:in `write_attribute'
activerecord (4.0.0) lib/active_record/attribute_methods/write.rb:19:in `__temp__c6f676f6='
activerecord (4.0.0) lib/active_record/attribute_assignment.rb:42:in `public_send'
activerecord (4.0.0) lib/active_record/attribute_assignment.rb:42:in `_assign_attribute'
protected_attributes (1.0.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:67:in `block in assign_attributes'