Skip to content

Instantly share code, notes, and snippets.

View koumaza's full-sized avatar
REPLACED THIS USER SUCCESSFULLY.

shanghai nyaa chan! koumaza

REPLACED THIS USER SUCCESSFULLY.
View GitHub Profile
/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-03/c440000.qcom,spmi:qcom,pm8150b@3:qcom,haptics@c000/of_node/
termux-clipboard-set 'Line1\nLine2'
@koumaza
koumaza / Purge.md
Last active December 16, 2020 18:50
Increase the storage capacity of GitHub Action.

Not yet

Preface

Based on ubuntu-20.04.

Step 1 - Purge from dpkg

Remove these packages

-- Top to bottom | Largest to smallest.
ghc-8.8.4
@koumaza
koumaza / cal-partsize.md
Last active December 12, 2020 16:35
Calculate Partition Size

Step 1 - Run fdisk

fdisk -l /dev/YOURDEVICE
## Or
fdisk -l /dev/block/YOURDEVICE
## Or
fdisk -l /dev/block/by-name/YOURDEVICEPARTTIONNAME

# Which is my device
df -a # Outputs mount-points
#!/usr/bin/env bash
export a=tappa
export tappa=yatta
eval echo \$\{$a\} # Outputs yatta
@koumaza
koumaza / MMCR.md
Last active December 9, 2020 14:27
Manual Mount USB in Custom Recovery

1. Mount Data

2. Run this

2-A. Check which block device it is

# Please do not connect yet
ls /dev/block > /sdcard/mmcr-be
# Please connect USB device
ls /dev/block > /sdcard/mmcr-af
# Compare
diff /sdcard/mmcr-*
@koumaza
koumaza / parasync.bash
Created November 16, 2020 01:46
For keybase filesystem (kbfs) mirroring
#!/usr/bin/env bash
# EX
# bash parasync.bash /run/user/1001/keybase/kbfs/team/team/ ~/mnt/ 10 /run/user/1001/keybase/kbfs/team/team/ -rvWtS --delete --force --progress --partial
Usage() {
#Help
cat <<'EOF'
./parasync.bash [from] [to] [parallels] [source include_dir] [rsync option]
Number of parallels:
def | default (10)
@koumaza
koumaza / set-pr-high.ps1
Created October 25, 2020 08:09
For Learning
wmic process where 'name="python.exe"' CALL setpriority "high priority"
@koumaza
koumaza / body.md
Created October 12, 2020 03:54
Fix Pip install `--dev` not used

Change --dev to --pre

@koumaza
koumaza / #pipx-manualy-shell-configure
Last active October 12, 2020 00:18
Pipx Manualy Shell Configure
---