Skip to content

Instantly share code, notes, and snippets.

View suztomo's full-sized avatar
🐢

Tomo Suzuki suztomo

🐢
View GitHub Profile
@suztomo
suztomo / gist:306ae870c21f03b9578f6933694f652a
Created November 13, 2024 03:09
Smart Start Academy Maps API response
{
name: "places/ChIJFRNmvrNQwokRbYqYQpbez94",
id: "ChIJFRNmvrNQwokRbYqYQpbez94",
types: [
"preschool",
"school",
"child_care_agency",
"point_of_interest",
"establishment"
],
@suztomo
suztomo / gist:afaa743fdcfbd86d79369d8d9bfc591e
Created November 11, 2024 22:18
airlock-use-example pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-shared-config</artifactId>
<version>1.11.3</version>
</parent>
@suztomo
suztomo / gist:5ce66eec0dc0aa0fc32d0aaa4a492c4e
Created September 25, 2024 20:05
Gradle 7.2 for appengine-plugins core
suztomo@suztomo2:~/git-on-borg/appengine-plugins/app-gradle-plugin$ git diff
diff --git a/app-gradle-plugin/build.gradle.kts b/app-gradle-plugin/build.gradle.kts
index e6278e03..e169af73 100644
--- a/app-gradle-plugin/build.gradle.kts
+++ b/app-gradle-plugin/build.gradle.kts
@@ -24,7 +24,6 @@ version = "2.8.1" // {x-version-update:app-gradle-plugin:current}
plugins {
id("java")
- id("maven")
@suztomo
suztomo / AutoValue_Service.java
Last active September 18, 2024 15:51
AutoValue generated source files show differences
package com.google.api.generator.gapic.model;
import com.google.common.collect.ImmutableList;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Service extends Service {
@suztomo
suztomo / gist:90f007ffd41153c1529902d36f20bafb
Created August 12, 2024 20:25
java-shared-nio declaring com.google.cloud.opentelemetry:shared-resourcemapping, com.google.cloud.opentelemetry:exporter-metrics
~/java-storage-nio $ git log -1
commit 8e4fc0b95dbf11a2c9f7fb34c7c1a059483c53c9 (HEAD -> i3096, tag: v0.127.21, origin/main, origin/HEAD)
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date: Thu Aug 8 08:09:54 2024 -0700
chore(main): release 0.127.21 (#1437)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
~/java-storage-nio $ mvn -pl google-cloud-nio dependency:tree
...
@suztomo
suztomo / tree.txt
Created May 16, 2024 16:26
Dependency trees of google-http-java-client artifacts
~/google-http-java-client $ mvn dependency:tree -Dverbose
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.http-client:google-http-client:jar:1.44.2-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-source-plugin @ com.google.http-client:google-http-client-parent:1.44.2-SNAPSHOT, /Users/suztomo/google-http-java-client/pom.xml, line 391, column 17
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.google.http-client:google-http-client-parent:pom:1.44.2-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-source-plugin @ line 391, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build
@suztomo
suztomo / gist:e3e70b8eb78f7314ebb7e7c68b65c39b
Created April 16, 2024 12:56
Effective POM of Libraries BOM 26.34.0
[email protected] ~/java-cloud-bom/libraries-bom
~/java-cloud-bom/libraries-bom $ git log -1
commit 67faa24576bea7259e5ab757553b5969c78f85de (HEAD, tag: v26.34.0)
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date: Thu Mar 7 17:03:26 2024 -0500
chore: release main (#6472)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
[email protected] ~/java-cloud-bom/libraries-bom
@suztomo
suztomo / effective-pom.txt
Created April 5, 2024 03:02
The effective-pom of google-cloud-pubsublite
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] --------------< com.google.cloud:google-cloud-pubsublite >--------------
[INFO] Building Google Cloud Pub/Sub Lite 1.13.3-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.4.0:effective-pom (default-cli) @ google-cloud-pubsublite ---
@suztomo
suztomo / 2023_macbook_air_m2.txt
Created July 12, 2023 03:50
Comparison between 2015 MacBook v.s. 2023 MacBook Air
+------+------------------------------+-------------+
| fastlane summary |
+------+------------------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | ./increment_build_number.sh | 0 |
| 3 | flutter build ios --release | 28 |
| | --no-codesign | |
| 4 | build_ios_app | 143 |

Normally, protoc compiler itself is compiled from source code when we use proto_library. However, we can speed up the build by using prebuilt protoc compiler.

Declare a repository for prebuilt protoc compiler in WORKSPACE:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
  name = "com_google_protobuf_protoc_linux_x86_64",
  build_file_content = 'exports_files(["bin/protoc"])',