Skip to content

Instantly share code, notes, and snippets.

View jupblb's full-sized avatar

Michał Kiełbowicz jupblb

View GitHub Profile
~/W/s/scip-ruby ~> ./bazel clean --expunge
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
~/W/s/scip-ruby ~> ./bazel build //main:scip-ruby --config=dev
Starting local Bazel server and connecting to it...
INFO: Analyzed target //main:scip-ruby (246 packages loaded, 5378 targets configured).
ERROR: /Users/michal/Workspace/scip/scip-ruby/parser/BUILD:56:8: Executing genrule //parser:generate_diagnostics_cc [for tool] failed: (Aborted): bash failed: error executing Genrule command (from target //parser:generate_diagnostics_cc) /bin/bash -c ... (remaining 1 argument skipped)
dyld[56455]: Library not loaded: @rpath/libunwind.1.dylib
@jupblb
jupblb / Zoekt search for amp
Last active November 8, 2025 20:14
zoekt.js
#!/usr/bin/env bun
import { exec } from 'child_process'
import { promisify } from 'util'
import * as fs from 'fs'
import * as path from 'path'
const execAsync = promisify(exec)
const action = process.env.TOOLBOX_ACTION
{
"data": {
"repository": {
"commit": {
"symbols": {
"__typename": "SymbolConnection",
"pageInfo": {
"hasNextPage": false,
"__typename": "PageInfo"
},
@jupblb
jupblb / sony.sh
Created November 9, 2023 12:50
Remove unnecessary apps from my Sony TV
adb shell pm uninstall -k --user 0 com.amazon.amazonvideo.livingroom
adb shell pm uninstall -k --user 0 com.google.android.play.games
adb shell pm uninstall -k --user 0 com.google.android.videos
adb shell pm uninstall -k --user 0 com.sony.dtv.interactivetvutil
adb shell pm uninstall -k --user 0 com.sony.dtv.interactivetvutil.output
adb shell pm uninstall -k --user 0 com.sony.dtv.sonyselect
adb shell pm uninstall -k --user 0 com.sony.dtv.networkapp.wifidirect
adb shell pm uninstall -k --user 0 com.sony.dtv.promos
adb shell pm uninstall -k --user 0 com.sony.dtv.youview
adb shell pm uninstall -k --user 0 com.vewd.core.integration.dia
@jupblb
jupblb / flutter.sh
Created October 6, 2023 08:28
Run flutter in terminal with auto refresh (recursive)
#!/usr/bin/env bash
set -euo pipefail
# adb reverse tcp:4000 tcp:4000 || true
PID_FILE="/tmp/flutter.pid"
rm -f "$PID_FILE"
# https://stackoverflow.com/a/2173421
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p "python311.withPackages(p: with p; [ gitignore-parser ])"
import logging
import os
from glob import glob
from gitignore_parser import parse_gitignore
logging.basicConfig(level=logging.DEBUG)
@jupblb
jupblb / gist:1a519c3dbf8ba0688333e3c4f80f5e6d
Created May 21, 2021 13:30
kubernetes/perf-tests PR#1787 #2
144c144
< name: Starting measurement for waiting for pods
---
> name: Starting measurement for 'create objects'
307c307
< name: Creating objects
---
> name: create objects
326c326
< name: Waiting for pods to be running
@jupblb
jupblb / gist:4b8b6b1b829872109cd8b57d73773037
Created May 14, 2021 09:08
module-reconcile-steps.yaml
steps:
- phases: []
measurements:
- method: APIResponsivenessPrometheus
params:
action: start
allowedSlowCalls: 0
customThresholds: ""
enableViolations: false
identifier: APIResponsivenessPrometheus
steps:
- phases: []
measurements:
- method: APIResponsivenessPrometheus
params:
action: start
allowedSlowCalls: 0
customThresholds: ""
enableViolations: false
identifier: APIResponsivenessPrometheus
@jupblb
jupblb / gist:cea4a7b5d73842a7368a41a1d5832b72
Last active May 11, 2021 12:12
kubernetes/perf-tests PR#1787 #4
144c144
< name: Starting measurement for waiting for pods
---
> name: Starting measurement for 'create objects'
307c307
< name: Creating objects
---
> name: create objects
326c326
< name: Waiting for pods to be running