View SmileToJson.java
package com.tersesystems.buffer.serde; | |
import com.fasterxml.jackson.core.JsonFactory; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.dataformat.smile.SmileFactory; | |
import com.fasterxml.jackson.dataformat.smile.SmileParser; | |
import java.io.ByteArrayOutputStream; | |
import java.util.function.Function; |
View ToFlatBuffer.java
package com.tersesystems.rifter.spi; | |
import com.google.flatbuffers.ArrayReadWriteBuf; | |
import com.google.flatbuffers.FlatBufferBuilder; | |
import com.google.flatbuffers.FlexBuffersBuilder; | |
import java.nio.ByteBuffer; | |
import java.util.function.Consumer; | |
import static com.tersesystems.rifter.spi.LogInstant.createLogInstant; |
View medical.txt
LPT everything you need to know about medical insurance to avoid getting screwed over, based on 25 years of experience | |
By | |
U | |
reddit.com | |
5 min | |
View Original | |
I worked for a Blue Cross affiliate for nearly three decades and frequently see questions here about medical insurance. I wanted to share some helpful tips about some common roadblocks people run into. | |
Firstly, medical insurance has many, many policies in place, but you have to ask for them. |
View bastion.txt
module "aws_security_group" { | |
source = "terraform-aws-modules/security-group/aws" | |
version = "~> 3.0" | |
name = "bastion" | |
description = "Security group for bastion" | |
vpc_id = module.vpc.vpc_id | |
ingress_cidr_blocks = ["0.0.0.0/0"] | |
ingress_rules = ["ssh-tcp", "all-icmp"] |
View build.gradle
plugins { | |
id 'java' | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { |
View Directions for creating PEM files
# 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 | |
View Gemfile
source "https://rubygems.org" | |
gem "jekyll", "~> 3.6.0" | |
# If you have any plugins, put them here! | |
group :jekyll_plugins do | |
gem "jekyll-feed", "~> 0.9.2" | |
gem 'jekyll-paginate' | |
gem 'jekyll-redirect-from' | |
gem 'jekyll-sitemap' |
View Gatekeeper.scala
package gatekeeper | |
import java.io.{BufferedReader, BufferedWriter, InputStream, OutputStream} | |
import java.nio.charset.StandardCharsets | |
import java.nio.file.{Files, _} | |
import com.tersesystems.capabilities._ | |
import scala.util._ |
View Repository.scala
package repository | |
import java.util.UUID | |
import cats._ | |
import cats.implicits._ | |
import scala.util._ | |
/** |
View gist:b0451fbd6e33ed2dc6d93773eefb2abd
"play-dev-mode-akka.actor.default-dispatcher-3@12379" prio=5 tid=0x4c nid=NA waiting for monitor entry | |
java.lang.Thread.State: BLOCKED | |
waiting for application-akka.actor.default-dispatcher-5@17283 to release lock on <0x473f> (a play.core.server.DevServerStart$$anon$1) | |
at play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:122) | |
at play.core.server.AkkaHttpServer.modelConversion(AkkaHttpServer.scala:184) | |
at play.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:190) | |
at play.core.server.AkkaHttpServer.$anonfun$createServerBinding$3(AkkaHttpServer.scala:107) | |
at play.core.server.AkkaHttpServer$$Lambda$383.1818878724.apply(Unknown Source:-1) | |
at akka.stream.impl.fusing.MapAsync$$anon$23.onPush(Ops.scala:1172) | |
at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:499) |
NewerOlder