You will need Docker installed! Here is a link to get you started. Proceed after you are done installing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 | |
| height: 600 | |
| redirect: https://observablehq.com/@d3/d3-force-directed-graph |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/kubernetes/minikube/releases | |
| curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.25.1/minikube-darwin-amd64 | |
| curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.23.3/bin/darwin/amd64/kubectl | |
| curl -L https://github.com/istio/istio/releases/download/1.12.2/istio-1.12.2-osx.tar.gz | tar xz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const echoPostRequest = { | |
| url: 'https://<my url>.auth0.com/oauth/token', | |
| method: 'POST', | |
| header: 'Content-Type:application/json', | |
| body: { | |
| mode: 'application/json', | |
| raw: JSON.stringify( | |
| { | |
| client_id:'<your client ID>', | |
| client_secret:'<your client secret>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package test | |
| import io.gatling.core.Predef._ | |
| import io.gatling.core.structure.PopulatedScenarioBuilder | |
| import io.gatling.core.controller.inject.InjectionStep | |
| import io.gatling.http.Predef._ | |
| import io.gatling.jdbc.Predef._ | |
| import scala.concurrent.duration._ | |
| import scala.collection.mutable.ArraySeq | |
| import org.json.JSONArray; | |
| import org.json.JSONObject; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <!-- BLATANTLY STOLEN FROM https://getbootstrap.com/docs/4.1/examples/cover/ --> | |
| <title>Docker Workshop</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
| <style> | |
| /* |
First, install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install cask (https://github.com/caskroom/homebrew-cask)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Service | |
| @Slf4j | |
| public class UserService { | |
| private final ApplicationEventPublisher applicationEventPublisher; | |
| private final UserRepository userRepository; | |
| UserService(ApplicationEventPublisher applicationEventPublisher, | |
| UserRepository userRepository) { | |
| this.applicationEventPublisher = applicationEventPublisher; | |
| this.userRepository = userRepository; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.http.client.HttpClient; | |
| import org.apache.http.client.config.CookieSpecs; | |
| import org.apache.http.client.config.RequestConfig; | |
| import org.apache.http.impl.client.CloseableHttpClient; | |
| import org.apache.http.impl.client.HttpClients; | |
| import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | |
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | |
| import org.springframework.boot.web.client.RestTemplateCustomizer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| @ConfigurationProperties("http.client") | |
| public class HttpClientProperties { | |
| private int connectionTimeoutInMillis = 1_000; | |
| private int readTimeoutInMillis = 10_000; | |
| /** Used to configure both the default max per route as well as the maximum total connections. */ | |
| private int maxConnections = 200; | |
| /** | |
| * Configures a LoggingClientHttpRequestInterceptor and a BufferingClientHttpRequestFactory, |
NewerOlder