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
@koumaza
koumaza / apk-fm-uri.fish.sh
Created May 24, 2020 06:42
Install Apk from URI
#!/usr/bin/fish
while true
rm .tmp.target.apk 2&> /dev/null || true
set uri $argv
if test -z "$uri"
read uri -p "echo 'URI |> '"
set -gx uri $uri
end
aria2c -x10 -s10 -o .tmp.target.apk "$uri"
@koumaza
koumaza / README.md
Last active May 26, 2020 02:56
Translate in Terminal

TiT (Translate in Terminal)

This page: https://git.io/TiT

using translate google;
  • En to Ja
@koumaza
koumaza / fix.md
Last active May 26, 2020 05:27
Fix TWRP in Failed to mount '/data'
1 (Optional)

1-a adb push busybox-*** / ; adb shell

1-b chmod a+x busybox-* ; busybox mkfs.vfat /dev/block/bootdevice/by-name/userdata

2

2-a unmount data

echo "b c a n z d g q v h a g d"|tr ' ' '\n'|sort|uniq|tr '\n' ' '
@koumaza
koumaza / unlimit.sh
Created June 11, 2020 08:01
Unlimit tether limit for jp smart phone
adb shell
settings get global tether_dun_required # Get value
settings put global tether_dun_required 1 # Disabled
settings put global tether_dun_required 0 # Enbaled
@koumaza
koumaza / podman-in-podman-privilege.md
Created June 11, 2020 18:15
podman in podman with privilege
podman run --privileged -it koumaza/podman /bin/bash
podman run --cgroup-manager=cgroupfs --net=host -it koumaza/podman /bin/bash
mkdir -p ~/android; podman run -v $HOME/android/:/android-build/android --rm -it koumaza/android_rom
@koumaza
koumaza / README.md
Last active July 3, 2020 04:54
MBP power plan configuration

powercfg --import koumaza-mbp.pow

@koumaza
koumaza / Resolv-keybase-storage.md
Last active July 3, 2020 07:57
Fix Keybase squeezing C:
  1. Quit keybase
  2. Remove directrory > C:\Users\[username]\AppData\Local\Keybase\kbfs_block_cache and C:\Users\[username]\AppData\Local\Keybase\kbfs_journal
  3. Open admin cmd
  4. Run this command
mkdir     [DRIVE]\TMP\
mkdir     [DRIVE]\TMP\kbfs_block_cache
mkdir     [DRIVE]\TMP\kbfs_journal
mklink /J C:\Users\[username]\AppData\Local\Keybase\kbfs_block_cache [DRIVE]\TMP\kbfs_block_cache
@koumaza
koumaza / fix-repo-git-error.md
Last active July 4, 2020 04:33
Fix repo command outputs GitError

Errors: (Not a git repository (or any of the parent directories): .git)
At project root

Example: aosp platform/external/brotli

rm -rf  .repo/project-objects/platform/external/brotli.git \
        .repo/projects/external/brotli.git \
        external/brotli/