Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -eo pipefail
rcloneVersion="v1.53.3"
rcloneUrl="https://downloads.rclone.org/${rcloneVersion}/rclone-${rcloneVersion}-linux-amd64.zip"
url="https://vrpirates.wiki/downloads/vrp-public.json"
if ! test -f vrp-public.json; then
@unknown321
unknown321 / primary_audio_policy_configuration.xml
Created October 11, 2022 10:31
audio/sku_sprd/primary_audio_policy_configuration.xml sm-x205
<?xml version="1.0" encoding="UTF-8"?>
<!-- Default Primary Audio HAL Module Audio Policy Configuration include flie -->
<module name="primary" halVersion="2.0">
<attachedDevices>
<item>Speaker</item>
<item>Earpiece</item>
<item>Built-In Mic</item>
<item>Built-In Back Mic</item>
<item>Fm Record Device</item>
<item>Telephony Rx</item>
@unknown321
unknown321 / audio_route.xml
Created October 11, 2022 10:30
audio_route.xml sm-x205
<root>
<devices>
<single-mic device="0x80000004">
<on>
<ctl name="ADC LRCLK Select" val="invert"/>
<ctl name="ADC1 LRCLK Select" val="invert"/>
<ctl name="ADCL Mixer MainMICADCL Switch" val="1" />
<ctl name="AUD ADC0L Switch" val="1" />
<ctl name="AUD ADC0R Switch" val="1" />
<ctl name="Mic Function" val="1" />
$ dumpsys media.audio_policy
AudioPolicyManager: 0xb400007971857a30
Command Thread: 0xb400007921859590
Supported System Usages:
17
AudioCommandThread 0xb400007921859590 Dump
- Commands:
Command Time Wait pParam
Last Command
01 000196.597 0 0xb40000788185d970
@unknown321
unknown321 / dmesg.txt
Created September 8, 2022 20:15
dmesg samsung galaxy tab a8 sm-x205 gsi
This file has been truncated, but you can view the full file.
# dmesg -T -w
[Thu Sep 8 20:12:32 2022] sprd-hwdvfs-normal: Cluster4's hardware dvfs is enable
[Thu Sep 8 20:12:32 2022] sprd-cpufreqhw: Cluster1 does not have sub-clusters
[Thu Sep 8 20:12:32 2022] sprd-hwdvfs-normal: Get cpu frequency-index1
[Thu Sep 8 20:12:32 2022] sprd-hwdvfs-normal: Cluster1's hardware dvfs is enable
[Thu Sep 8 20:12:32 2022] sprd-hwdvfs-normal: Get cpu frequency-index1
[Thu Sep 8 20:12:32 2022] sched-energy: the cpu type is busy-cost-data-T618
[Thu Sep 8 20:12:32 2022] sched-energy: Sched-energy-costs installed from DT, min_cap_cpu_mask: 0-5
[Thu Sep 8 20:12:32 2022] WARN: cpu=7, domain=MC: incr. energy eff 1010[4]->1012[5]
[Thu Sep 8 20:12:32 2022] WARN: cpu=6, domain=MC: incr. energy eff 1010[4]->1012[5]
@unknown321
unknown321 / gist:9ad31e07ae3e37d3e96def98fccfd16e
Created September 8, 2022 20:07
dumpsys media.audio_policy samsung galaxy tab a8 stock
dumpsys media.audio_policy
AudioPolicyManager: 0xb40000706fdb60d0
Command Thread: 0xb40000700fdab950
Supported System Usages:
AudioCommandThread 0xb40000700fdab950 Dump
- Commands:
Command Time Wait pParam
Last Command
01 000356.674 0 0xb400006f6fdc96e0
install https://github.com/prabirshrestha/vim-lsp
add to .vimrc:
```
au User lsp_setup
\ call lsp#register_server({
\ 'name': 'godot',
\ 'tcp': "127.0.0.1:6008",
\ 'allowlist': ['gdscript3', 'gdscript']
alias loopKey startLoop
alias startLoop "alias loopKey stopLoop; alias redirect loop;loop"
alias stopLoop "alias redirect;alias loopKey startLoop"
alias loop "taunt_by_name Taunt: Rock, Paper, Scissors; wait 100; stop_taunt;redirect"
bind p loopKey
@unknown321
unknown321 / build_all_bins_for_armv7l.patch
Last active February 5, 2023 15:01
docker on synology DS218j armv7l synology_armada38x_ds218j
diff --git Makefile Makefile
index 399c7db3a..345c9d9fd 100644
--- Makefile
+++ Makefile
@@ -198,25 +198,25 @@ benchmark: ## run benchmarks tests
FORCE:
define BUILD_BINARY =
-@echo "$(WHALE) $@"
-@go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$<
a - ppdc-file.o
a - ppdc-filter.o
a - ppdc-font.o
a - ppdc-group.o
a - ppdc-import.o
a - ppdc-mediasize.o
a - ppdc-message.o
a - ppdc-option.o
a - ppdc-profile.o
a - ppdc-shared.o