Skip to content

Instantly share code, notes, and snippets.

@dsilvasc
dsilvasc / bundle-macos.nix
Created September 6, 2023 14:22 — forked from elliot-u410/bundle-macos.nix
bundle-nix-macos.sh
{ pkgs }:
pkg:
pkgs.runCommand "bundle-${pkg.name}" {
nativeBuildInputs = with pkgs; [ coreutils which darwin.binutils darwin.sigtool ];
} ''
find '${pkg}/bin' -type f -executable -exec '${./bundle-macos.sh}' '{}' "$out" \;
''
@dsilvasc
dsilvasc / gist:c3fae184c7d907abc70870d5a8698822
Created June 8, 2020 21:08
curl -v -X POST -H "SC-LCA-1: $(snapaccess jwt make story-creation)" 'http://localhost:8001/task/readreceipts/published/3:2583944343189504'
2020-06-08 22:06:07.133 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptsHandler] ReadReceiptsHandler request received: /task/readreceipts/published/3:2583944343189504
2020-06-08 22:06:07.137 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptsHandler] ReadReceiptsHandler measuring watch count for namespace: STORY_CREATION_SERVICE_COMPAT
id: "2583944343189504"
2020-06-08 22:06:07.152 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptsHandler] ReadReceiptsHandler requesting Story View count for NumericStoryID(2583944343189504)
2020-06-08 22:06:07.173 [INFO ] requestID=d1a376af-4cbb-8cfb-8a17-672fa58a7346 [ReadReceiptClient] sending getPremiumContentStats request to rr-server-g-aws-dev.snap - metadata {
request_id: "7f02dc28-ec61-47d3-840b-6cb220df00f8"
request_timestamp_ms: 1591650367172
origin: STORY_STUDIO
}
$ docker run -it -v $(pwd):/src/workspace:delegated -v /tmp/bazel_build_output:/tmp/build_output:delegated -w /src/workspace l.gcr.io/google/bazel:3.1.0 --output_user_root=/tmp/build_output build --define=pom_version=1.0.123 --config=remote --config=debug ...
Starting local Bazel server and connecting to it...
WARNING: option '--spawn_strategy' was expanded to from both option '--config=remote' (source command line options) and option '--experimental_spawn_scheduler' (source expanded from --remote)
INFO: Invocation ID: 1b5fc3cd-3ef3-42a7-925e-469fb101cb8f
INFO: ToolchainResolution: Selected execution platform @bazel_toolchains//configs/ubuntu16_04_clang/1.2:rbe_ubuntu1604_r352865,
INFO: ToolchainResolution: Looking for toolchain of type @bazel_tools//tools/cpp:toolchain_type...
INFO: ToolchainResolution: Considering toolchain @bazel_toolchains//configs/ubuntu16_04_clang/1.2/bazel_0.25.0/default:cc-compiler-k8...
INFO: ToolchainResolution: For toolchain type @bazel_tools//tools/cpp:toolchain_type, possi