Skip to content

Instantly share code, notes, and snippets.

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
Install Apk from URI
View apk-fm-uri.fish.sh
#!/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
Translate in Terminal
View README.md

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
Fix TWRP in Failed to mount '/data'
View fix.md
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

@koumaza
koumaza / archlinux_android.mkdn
Last active Jun 10, 2020 — forked from adumont/archlinux_android
Android build in ArchLinux
View archlinux_android.mkdn

Build in Arch

Packages

Turn on multilib

pacman -Sy --needed base base-devel bc python python2 python-pip python2-pip jdk8-openjdk perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline inetutils schedtool gperf imagemagick lzop pngcrush rsync

pacman -Sy --needed gcc-multilib gcc-libs-multilib libtool-multilib \
lib32-libusb lib32-readline lib32-glibc bash-completion lib32-zlib
View beautiful.sh
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 Jun 11, 2020
Unlimit tether limit for jp smart phone
View unlimit.sh
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 Jun 11, 2020
podman in podman with privilege
View podman-in-podman-privilege.md
podman run --privileged -it koumaza/podman /bin/bash
podman run --cgroup-manager=cgroupfs --net=host -it koumaza/podman /bin/bash
View lcdcr
mkdir -p ~/android; podman run -v $HOME/android/:/android-build/android --rm -it koumaza/android_rom
@koumaza
koumaza / README.md
Last active Jul 3, 2020
MBP power plan configuration
View README.md

powercfg --import koumaza-mbp.pow

@koumaza
koumaza / Resolv-keybase-storage.md
Last active Jul 3, 2020
Fix Keybase squeezing C:
View Resolv-keybase-storage.md
  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