mkdir -p ~/.oh-my-zsh/plugins/docker/
curl -fLo ~/.oh-my-zsh/plugins/docker/_docker https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker
- Add
docker
toplugins
section in~/.zshrc
exec zsh
// this is an attempt to create a synchronous InputStream from a call to | |
// S3AsyncClient#getObject using a blocking queue. | |
// | |
// the purpose is to be able to make many S3 operations asynchronously, but | |
// at the same time be able to pass off some results to threads and into | |
// code that expects InputStream or Reader, like a Commons CSV. | |
public class InputStreamResponseTransformer extends InputStream implements AsyncResponseTransformer<GetObjectResponse, InputStream>, Subscriber<ByteBuffer> { | |
private static final ByteBuffer END_MARKER = ByteBuffer.allocate(0); |
{ | |
"openapi": "3.0.0", | |
"servers": [ | |
{ | |
"url": "https://api.paymentsos.com/" | |
} | |
], | |
"info": { | |
"x-logo": { | |
"url": "payos_logo_blue_pad.png", |
This page explains how to reproduce the Gradle vs Maven performance numbers yourself. For that, you need to install the Gradle profiler, a tool which will automate benchmarking by running several builds in a row, with the appropriate options (it also runs Maven builds).
Our performance comparison uses 4 test projects:
@register.simple_tag | |
def git_ver(): | |
''' | |
Retrieve and return the latest git commit hash ID and tag as a dict. | |
''' | |
git_dir = os.path.dirname(settings.BASE_DIR) | |
try: | |
# Date and hash ID |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
Before we start with creating a custom OAuth2 connection in Auth0, it's worth to spend some time understanding the OAuth2 authentication process in Auth0. An OAuth2 authentication process starts with the application requesting Auth0 for authentication and ends with either the browser or the application server having an access token to represent the user. The access token can then be used to call the third party API on behalf of the user.
Redirect mode
The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.
However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on
package mobilepackage | |
import io.gatling.core.Predef._ | |
import io.gatling.core.session._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
import scala.util.parsing.json._ | |
import general._ | |
class LoginSimulation extends Simulation { |