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.md
Created February 29, 2024 04:12

image

# Copyright Istio Authors
#
# 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,
const statusURL = document.querySelector(`video[src*='blob:https://web.whatsapp.com']`).getAttribute('src'); const link = document.createElement('a'); link.href = statusURL; link.download = `${statusURL.split('.com/')[1]}.mp4`; document.body.appendChild(link); link.click(); document.body.removeChild(link);
@dio
dio / a.js
Created December 12, 2022 04:00
[
// TODO(dio): Include the core logic of docusaurus-plugin-openapi-docs to @extensions/plugin-service-bridge-api-docs.
// Prerequisite: you need to run `generate-service-bridge-api-docs` first.
// To generate: `yarn workspace @products/service-bridge docusaurus gen-api-docs serviceBridgeApi`
// Note: You might want to: `yarn workspace @products/service-bridge docusaurus clean-api-docs serviceBridgeApi` first.
'docusaurus-plugin-openapi-docs',
{
id: 'openapi',
docsPluginId: 'classic',
// TODO(dio): Ideally, this should consume the same "revisions" object as well.
console.log('ok');
➤ YN0002: │ @docsearch/react@npm:3.3.0 [cc6fa] doesn't provide @algolia/client-search (p397ae), requested by @algolia/autocomplete-preset-algolia
➤ YN0002: │ @lerna/version@npm:6.1.0 doesn't provide nx (pc0314), requested by @nrwl/devkit
➤ YN0002: │ @nrwl/devkit@npm:15.3.0 [acc39] doesn't provide typescript (p7d07c), requested by @phenomnomnominal/tsquery
➤ YN0002: │ @nrwl/devkit@npm:15.3.0 [bd3f7] doesn't provide typescript (p9fedc), requested by @phenomnomnominal/tsquery
➤ YN0002: │ docusaurus-plugin-openapi-docs@npm:1.4.7 [2242d] doesn't provide react-dom (p94d04), requested by @docusaurus/mdx-loader
➤ YN0002: │ docusaurus-plugin-openapi-docs@npm:1.4.7 [2242d] doesn't provide react-dom (p53f40), requested by @docusaurus/plugin-content-docs
➤ YN0002: │ docusaurus-theme-openapi-docs@patch:docusaurus-theme-openapi-docs@npm%3A1.4.7#./.yarn/patches/docusaurus-theme-openapi-docs-npm-1.4.7-8f8dc4d1c9.patch::version=1.4.7&hash=1b5ffc&locator=root%40workspace%3A. [e44d2] doesn't provide redux (pea304), requested by

To infer "version" on a Github Actions workflow run:

    - name: "Set current version"
      id: current-version
      # When 'github.ref' starts with "refs/tags" it is a tag. Then we can infer the current
      # version from it. For example, given 'github.ref=refs/tags/1.6.0', the current version is 1.6.0.
      run: echo "version=${{ fromJSON('{"true":"${GITHUB_REF#refs/*/}"}')[startsWith(github.ref, 'refs/tags')] || 'next' }}" >> $GITHUB_OUTPUT
@dio
dio / talk.md
Last active November 17, 2022 22:55

Taking advantage of open-source software by contributing back to it

The building blocks of much of the technology we rely on daily run on open-source software. The sustainability, stability, and security of these software packages are a significant concern to every company that uses them (essentially every company). We have observed an increase in the active role of corporations in open-source software, either by assigning employees to contribute to existing open-source projects or open-sourcing their code to allow the community to utilize it and help maintain it. Getting involved in open-source projects has never been “easier” yet valuable. How take advantage of this “state” for our very own journey? This talk tells stories of first-hand life-changing events involving and contributing to open-source projects (notably the Envoy proxy project).

@dio
dio / img.js
Last active November 16, 2022 10:45
this.document.location = document.querySelector(`img[src*='blob:https://web.whatsapp.com']`).getAttribute('src');
export BAZEL_FLAGS="--config=libc++ --define=boringssl=fips --cxxopt=-Wno-unused-variable --host_cxxopt=-Wno-unused-variable"
export VERSION="0.5.3"
export MODE=clang-fips