Skip to content

Instantly share code, notes, and snippets.

View rmichela's full-sized avatar
👶
Recent father - expect slow responses

Ryan Michela rmichela

👶
Recent father - expect slow responses
View GitHub Profile
@rmichela
rmichela / istio-egress.yaml
Created December 5, 2019 18:29
Route traffic from inside the mesh to an external host by way of an egress gateway
# Goals
# 1. Route traffic from inside the mesh to an external host by way of an egress gateway.
# 2. Create an abstract name inside the mesh to decouple requests from external hostnames. This gives the
# flexibility to switch between dev, test, and prod external API hostnames by only modifying the egress config.
# 3. Originate TLS at the egress gateway proxy instead of at the in-mesh services. This lets us use our own mTLS
# (or none at all) between services and the egress gateway proxy.
#
# istio-egressgateway.istio-system.svc.cluster.local:80 -> Egress Gateway -> httpstat.us:443
# Create an internal DNS name for the external destination's abstract name
@rmichela
rmichela / kubernetes-notes.yaml
Created October 9, 2019 13:57
Notes for exploring Kubernetes on EKS
## Install tools
`brew install`
- `awscli`
- `eksctl`
- `aws-iam-authenticator`
- `kubernetes-cli`
- `k9s`
## Create EKS cluster
@rmichela
rmichela / gist:c988a7c0ca7e4800ed32ea40e9802e05
Created June 14, 2019 19:12
openapi-generator-maven-plugin
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>4.0.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
travis_fold:start:worker_info
Worker information
hostname: fcce8a5c-42d0-4ad2-a801-5bc4afaea059@1.production-1-worker-org-gce-kvtd
version: v6.2.0 https://github.com/travis-ci/worker/tree/5e5476e01646095f48eec13196fdb3faf8f5cbf7
instance: travis-job-8cb3fd46-034e-473f-a63c-cdeb85496ee4 travis-ci-garnet-trusty-1512502259-986baf0 (via amqp)
startup: 6.52101159s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: java
@rmichela
rmichela / HTTP 2 Error Code Service
Last active June 19, 2018 17:36
Http 2 error generator
package errorcodeservice;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.http2.server.HTTP2CServerConnectionFactory;
import org.eclipse.jetty.server.HttpConfiguration;
@rmichela
rmichela / BackpressureTest.java
Last active January 27, 2019 03:18
gRPC backpressure
import com.google.protobuf.Empty;
import io.grpc.Channel;
import io.grpc.Server;
import io.grpc.inprocess.InProcessChannelBuilder;
import io.grpc.inprocess.InProcessServerBuilder;
import io.grpc.stub.ClientCallStreamObserver;
import io.grpc.stub.ClientResponseObserver;
import io.grpc.stub.ServerCallStreamObserver;
import io.grpc.stub.StreamObserver;
@rmichela
rmichela / keybase.md
Created May 28, 2015 16:54
keybase.md

Keybase proof

I hereby claim:

  • I am rmichela on github.
  • I am ryanmichela (https://keybase.io/ryanmichela) on keybase.
  • I have a public key whose fingerprint is 36D5 012F 7BD6 559A 8825 6640 AD24 8C18 9272 FC1B

To claim this, I am signing this object:

@rmichela
rmichela / TestB.java
Created January 21, 2011 08:46
Receiver example for the IPC bukkit plugin
package bukkit.deltahat.IPC.TestB;
import java.io.File;
import java.util.Random;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.Event.Priority;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginLoader;
@rmichela
rmichela / TestA.java
Created January 21, 2011 08:44
Sender example for the IPC bukkit plugin
package bukkit.deltahat.IPC.TestA;
import java.io.File;
import java.util.Random;
import org.bukkit.Server;
import org.bukkit.command.Command;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginLoader;