Skip to content

Instantly share code, notes, and snippets.

View dio's full-sized avatar
💥

Dhi Aurrahman dio

💥
  • Bandung, Indonesia
View GitHub Profile
@dio
dio / a.yaml
Created September 16, 2021 02:35
my_payload:
iss: https://example.com
sub: [email protected]
aud: https://example.com
exp: 1501281058
my_headers:
alg: HS256
@dio
dio / a.go
Created September 11, 2021 06:23
// Copyright 2019 Tetrate
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/examples/lua/Dockerfile-proxy b/examples/lua/Dockerfile-proxy
index a2ea90d434..2ae88ee47e 100644
--- a/examples/lua/Dockerfile-proxy
+++ b/examples/lua/Dockerfile-proxy
@@ -1,4 +1,4 @@
-FROM envoyproxy/envoy-dev:latest
+FROM envoyproxy/envoy:v1.19.0
ADD ./lib/mylibrary.lua /lib/mylibrary.lua
COPY ./envoy.yaml /etc/envoy.yaml
RUN chmod go+r /etc/envoy.yaml /lib/mylibrary.lua

OK

@dio
dio / TEST.md
Created February 4, 2021 08:17
$ curl -I -v siplah.kemdikbud.go.id
* Rebuilt URL to: siplah.kemdikbud.go.id/
*   Trying 118.98.241.23...
* TCP_NODELAY set
* Connected to siplah.kemdikbud.go.id (118.98.241.23) port 80 (#0)
> HEAD / HTTP/1.1
> Host: siplah.kemdikbud.go.id
> User-Agent: curl/7.58.0
> Accept: */*

Propaganda

@dio
dio / a.diff
Created November 8, 2020 22:20
diff --git a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
index ee626e56348b..34b6700bc629 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
@@ -97,8 +97,7 @@ ContextualSearchDelegate::ContextualSearchDelegate(
field_trial_.reset(new ContextualSearchFieldTrial());
}
-ContextualSearchDelegate::~ContextualSearchDelegate() {
-}
@dio
dio / a.diff
Created November 8, 2020 22:09
diff --git a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
index ee626e56348b..34b6700bc629 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
@@ -97,8 +97,7 @@ ContextualSearchDelegate::ContextualSearchDelegate(
field_trial_.reset(new ContextualSearchFieldTrial());
}
-ContextualSearchDelegate::~ContextualSearchDelegate() {
-}
@dio
dio / README.md
Last active September 11, 2020 13:26
$ docker run --rm -d -p 10000:10000 -v $PWD/configs/google_com_proxy.v2.yaml:/etc/envoy/envoy.yaml dio123/envoy:lua-mutable-buffer -c /etc/envoy/envoy.yaml
$ curl localhost:10000 --verbose
* Rebuilt URL to: localhost:10000/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 10000 (#0)
> GET / HTTP/1.1
> Host: localhost:10000
> User-Agent: curl/7.58.0
{
"configs": [
{
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump",
"bootstrap": {
"node": {
"hidden_envoy_deprecated_build_version": "f642a7fd07d0a99944a6e3529566e7985829839c/1.15.0/Clean/RELEASE/BoringSSL",
"user_agent_name": "envoy",
"user_agent_build_version": {
"version": {