Skip to content

Instantly share code, notes, and snippets.

View jupblb's full-sized avatar

Michał Kiełbowicz jupblb

View GitHub Profile
@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
@jupblb
jupblb / gist:7517fe2913b7369346494cc9a605ebe7
Created April 30, 2021 14:42
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:816be64e0a8d88141b63d616bce8c048
Created April 29, 2021 08:27
kubernetes/perf-tests PR#1787 #1
144c144
< name: Starting measurement for waiting for pods
---
> name: Starting measurement for 'creating objects'
307c307
< name: Creating objects
---
> name: creating objects
326c326
< name: Waiting for pods to be running