Skip to content

Instantly share code, notes, and snippets.

View nmoinvaz's full-sized avatar

Nathan Moinvaziri nmoinvaz

  • Phoenix, United States
View GitHub Profile
[==========] Running 5 tests from 2 test suites.
[----------] Global test environment set-up.
2025-03-13T14:13:33.462-07 [19301] Log Level: DEBUG
2025-03-13T14:13:33.462-07 [19301] Log Filename: /home/buildbox/.local/share/gtest_host/gtest_host.log
2025-03-13T14:13:33.462-07 [19301] Command Line: /home/buildbox/actions-runner/_work/client/client/build/Coverage/gtest_host --verbose
2025-03-13T14:13:33.462-07 [19301] INFO - Desktop environment: Gnome3
2025-03-13T14:13:33.462-07 [19301] INFO - System: x86_64 Linux 6.8.0-51-generic x86_64
2025-03-13T14:13:33.462-07 [19301] INFO - Elevated: false
2025-03-13T14:13:33.462-07 [19301] INFO - Process Id: 19301
2025-03-13T14:13:33.462-07 [19301] INFO - Current Directory: /home/buildbox/actions-runner/_work/client/client/test/
Repeating all tests (iteration 1) . . .
Note: Google Test filter = AnalyticsWebTest.*:AppTrackTest.*
[==========] Running 5 tests from 2 test suites.
[----------] Global test environment set-up.
2025-03-13T14:04:52.621-07 [18056] Log Level: DEBUG
2025-03-13T14:04:52.621-07 [18056] Log Filename: /home/buildbox/.local/share/gtest_host/gtest_host.log
2025-03-13T14:04:52.621-07 [18056] Command Line: /home/buildbox/actions-runner/_work/client/client/build/Coverage/gtest_host --verbose
2025-03-13T14:04:52.621-07 [18056] INFO - Desktop environment: Gnome3
2025-03-13T14:04:52.621-07 [18056] INFO - System: x86_64 Linux 6.8.0-51-generic x86_64
@nmoinvaz
nmoinvaz / useEnhancedQuery.js
Last active January 3, 2025 21:04
useQuery with Enhanced Error Handling
import {useCallback, useEffect, useMemo, useState} from "react";
import {useQuery} from "react-query";
// Provide ability to reset the error
const useEnhancedQuery = (queryKey, queryFn, options) => {
const {error: queryError, refetch: queryRefetch, status, ...queryResult} =
useQuery(queryKey, queryFn, options);
const [error, setError] = useState(queryError);
@nmoinvaz
nmoinvaz / cef-symbols-sentry.yaml
Last active May 3, 2024 21:34
Upload CEF symbols to Sentry.io
# CEF symbols are too large to upload directly to Sentry.io. The maximum size is 2GB.
# We use Breakpad to reduce the size of the original symbols at the expense of some
# fidelity for inline functions.
name: CEF Symbols
on:
workflow_dispatch:
inputs:
cef-version:
description: 'Version of CEF to upload'
required: true
@nmoinvaz
nmoinvaz / notary.py
Created December 23, 2022 01:24
Apple Notarization Submission Script
#!/usr/bin/env python
import argparse
import boto3
import jwt
import requests
import time
import os
import hashlib
from datetime import timezone
from datetime import datetime
@nmoinvaz
nmoinvaz / notary_bug.md
Created October 18, 2022 21:42
Notary API SHA256 bug
@nmoinvaz
nmoinvaz / clang-format.ps1
Last active June 6, 2022 22:34
PowerShell Clang-Format all files
$files=(git ls-files --exclude-standard); foreach ($file in $files) { if ((get-item $file).Extension -in ".cpp", ".hpp", ".c", ".cc", ".cxx", ".h", ".hxx", ".ixx", ".hh", ".m", ".mm") { &clang-format -i -style=file $file } }
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <arm_neon.h>
#include <byteswap.h>
#include <stdio.h>
#include <stdint.h>
```
2022-01-19T20:11:24-08:00
Running C:\Users\nathan\Source\zlib-ng\build\test\benchmarks\Release\benchmark_zlib.exe
Run on (8 X 2995 MHz CPU s)
CPU Caches:
L1 Data 48 KiB (x4)
L1 Instruction 32 KiB (x4)
L2 Unified 1280 KiB (x4)
L3 Unified 12288 KiB (x1)
--------------------------------------------------------------------