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.txt
Created October 27, 2022 02:50
DEBUG: Rule 'com_googlesource_chromium_base_trace_event_common' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1662669790 -0700"
@dio
dio / envoy.rb
Last active October 27, 2022 10:41
class Envoy < Formula
desc "Cloud-native high-performance edge/middle/service proxy"
homepage "https://www.envoyproxy.io/index.html"
url "https://github.com/envoyproxy/envoy/archive/refs/tags/v1.24.0.tar.gz"
sha256 "31a81841447fbb51589a198d8e8998f2b8ad1fff4921e017fa37691015b3a9f9"
license "Apache-2.0"
head "https://github.com/envoyproxy/envoy.git", branch: "main"
stable do
patch do
# The Clang available on MacOS has a warning that isn't clean on MLIR code. The
# warning doesn't show up with more recent Clangs, so just disable for now.
build:generic_clang --cxxopt=-Wno-range-loop-analysis --host_cxxopt=-Wno-range-loop-analysis
@dio
dio / envoy.rb
Last active October 21, 2022 07:27
class Envoy < Formula
desc "Cloud-native high-performance edge/middle/service proxy"
homepage "https://www.envoyproxy.io/index.html"
url "https://github.com/envoyproxy/envoy/archive/refs/tags/v1.23.2.tar.gz"
sha256 "d4bef9f8c6f0307a0c18968109754771a0040867c8f42d2105e08b7fbd69c5e1"
license "Apache-2.0"
head "https://github.com/envoyproxy/envoy.git", branch: "main"
livecheck do
url :stable
# This script produces SOURCE_VERSION file with content from current version commit hash. As a
# reminder,SOURCE_VERSION is required when building Envoy from an extracted release tarball
# (non-git). See: bazel/get_workspace_status for more information.
#
# The SOURCE_VERSION file is produced by reading current version tag from VERSION.txt file then
# fetch the corresponding commit hash from GitHub.
#
# Note: This script can only be executed from project root directory of an extracted "release"
# tarball.
@dio
dio / a.patch
Created October 19, 2022 06:56
diff --git a/bazel/v8.patch b/bazel/v8.patch
index 03c849156a..1b7a8f27b1 100644
--- a/bazel/v8.patch
+++ b/bazel/v8.patch
@@ -363,3 +363,16 @@ index 131ff9614e..6455f8757d 100644
char filename[] = "/tmp/v8_tmp_file_for_testing_XXXXXX";
fd = mkstemp(filename);
if (fd != -1) CHECK_EQ(0, unlink(filename));
+diff --git a/src/compiler/js-native-context-specialization.cc b/src/compiler/js-native-context-specialization.cc
+index 729d8ac99f..c1b0f7e0ba 100644
@dio
dio / v8-log.txt
Created September 25, 2022 09:12
#
# Fatal error in external/v8/src/base/platform/platform-posix.cc, line 478
# Check failed: 12 == (*__error()) (12 vs. 13).
#
#
#
#FailureMessage Object: 0x16b63df60
==== C stack trace ===============================
0 envoy-static 0x000000010a935be4 v8::base::debug::StackTrace::StackTrace() + 32
==> Summary
🍺 /opt/homebrew/Cellar/cmake/3.24.2: 3,106 files, 43.8MB
==> Running `brew cleanup cmake`...
==> Pouring go--1.19.1.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/go/1.19.1: 12,436 files, 629.0MB
==> Running `brew cleanup go`...
Error: Cannot install bazel because conflicting formulae are installed.
bazelisk: because Bazelisk replaces the bazel binary
Please `brew unlink bazelisk` before continuing.
@dio
dio / FindQt5.md
Last active March 31, 2022 23:29

When we received an error similar to the following on macOS:

CMake Error at CMakeLists.txt:77 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" (requested
 version 5.6.0) with any of the following names:
@dio
dio / main.go
Last active March 4, 2022 07:05
package main
import (
"context"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"time"