Skip to content

Instantly share code, notes, and snippets.

View christopherfujino's full-sized avatar
💻
Maybe coding

Christopher Fujino christopherfujino

💻
Maybe coding
View GitHub Profile
@christopherfujino
christopherfujino / systemd.log
Created April 6, 2025 22:27
systemd logs from ubuntu install that is borked
-- Boot 5c7b00e983e8469da090c60cba1adfed --
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: Booting Linux on physical CPU 0x0000000000 [0x512f0011]
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: Linux version 6.14.0-32-qcom-x1e (buildd@bos03-arm64-118) (aarch64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2) 14.2.0, GNU ld (GNU Binutils for Ubuntu) 2.43.1) #32-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 21 11:21:06 UTC 2025 (Ubuntu 6.14.0-32.32-qcom-x1e 6.14.0-rc7)
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: KASLR enabled
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: Machine model: Lenovo ThinkPad T14s Gen 6
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: efi: EFI v2.7 by Lenovo
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: efi: SMBIOS=0xd6c55000 SMBIOS 3.0=0xd6c53000 TPMFinalLog=0xd6cfb000 ACPI 2.0=0xd6dde018 MEMATTR=0xd0192018 ESRT=0xd0194018 MOKvar=0xd64be000 TPMEventLog=0xd6d6e018 INITRD=0xc62ed818 RNG=0xd6d76c98 MEMRESERVE=0xc62ed898
Apr 06 14:58:21 chris-ThinkPad-T14s-Gen-6 kernel: random: crng i
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [7574]
Path: /Users/USER/Downloads/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 15.0 (22237.2)
Build Info: IDEFrameworks-22237002000000000~5 (15A5209g)
Code Type: ARM-64 (Native)
@christopherfujino
christopherfujino / inherited_widget.dart
Created June 25, 2023 23:45
Minimal implementation of InheritedWidget
import 'package:flutter/material.dart';
void main() => runApp(
StateWrapper(
MaterialApp(
home: Scaffold(
body: App(),
),
),
),

How the tool uses globals

Consider the following minimal command line application that has two sub-commands ("foo" and "bar") and a single Logger instance shared between the two:

// example_00.dart
void main(List<String> args) {
 return switch (args.first) {
@christopherfujino
christopherfujino / dap_with_dart_in_neovim.md
Last active November 6, 2024 11:13
Debug Adapter Protocol for Flutter/Dart in Neovim
@christopherfujino
christopherfujino / refactor.diff
Created May 15, 2020 18:44
bin/flutter -> bin/shared.sh diff
diff --git a/bin/flutter b/bin/shared.sh
index 87bd59711..a9de7f131 100755
--- a/bin/flutter
+++ b/bin/shared.sh
@@ -16,25 +16,6 @@ set -e
unset CDPATH
-function follow_links() {
- cd -P "${1%/*}"
@christopherfujino
christopherfujino / patch.diff
Created May 12, 2020 22:45
pin customer_testing for stable hotfix
From bad9a44031fc9b1721d6ab1fc746d21d2fa76def Mon Sep 17 00:00:00 2001
From: Christopher Fujino <[email protected]>
Date: Tue, 12 May 2020 15:42:28 -0700
Subject: pin customer_testing
---
.cirrus.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.cirrus.yml b/.cirrus.yml
@christopherfujino
christopherfujino / curl-devicelab-log.md
Created October 18, 2019 21:47
curl Flutter devicelab logs to a file
  1. Open Chrome dev tools on the build dashboard -> Application -> Cookies -> "X-Flutter-IdToken" copy and paste the value into your terminal as export FLUTTER_DASHBOARD_COOKIE=''
  2. Copy and paste the URL of the specific task logs to your terminal as export LOGS_URL='https://logs.url/'
  3. Then curl the logs to a local file: curl "$LOGS_URL" -b "X-Flutter-IdToken=${FLUTTER_DASHBOARD_COOKIE}" | tee dashboard-logs.txt
@christopherfujino
christopherfujino / ios13-syslog
Created September 12, 2019 21:38
iphone Xr ios 13 sys log when plugging in device to mac host
default 14:35:12.310579 -0700 lockdownd spawn_xpc_service_block_invoke: <private>
default 14:35:12.310774 -0700 lockdownd spawn_xpc_service_block_invoke: <private>
default 14:35:12.312592 -0700 symptomsd L2 Metrics on en0: rssi: -69 [-68,-67] -> -69, snr: 32 (cca [wake/total] self/other/intf): [-1,-1]/[-1,-1]/[-1,-1]/14 (txFrames/txReTx/txFail): 10/0/0 -> (was/is) 0/0
default 14:35:12.312866 -0700 symptomsd Received Wi-Fi Assist Override along with LQM info: 0
default 14:35:12.314321 -0700 springboardservicesrelay Initializing connection
default 14:35:12.315842 -0700 springboardservicesrelay Removing all cached process handles
default 14:35:12.316265 -0700 springboardservicesrelay Sending handshake request attempt #1 to server
default 14:35:12.316555 -0700 springboardservicesrelay Creating connection to com.apple.runningboard
default 14:35:12.317222 -0700 runningboardd Incoming connection from 343, user 501
default 14:35:12.317553 -0700 runningboardd _resolveProcessWithIdentifier sysctl pid 343 is euid 501
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: flutter-brew-linker.sh COMMAND"
echo "where COMMAND is either \"unlink\" or \"link\"."
exit 99
fi
COMMAND="$1"