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 / archlinux_android.mkdn
Last active April 8, 2024 00:12 — forked from adumont/archlinux_android
Android build in ArchLinux

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
@koumaza
koumaza / #Simply-Scoop-Update
Last active October 12, 2020 00:26
scoop update
---
@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 / flashall.fish
Created May 7, 2020 16:08
flashall for payton
#!/usr/bin/fish
function device
echo 'devices'
fastboot devices
end
function getvar_max-sparse-size
echo 'getvar max-sparse-size'
fastboot getvar max-sparse-size
@koumaza
koumaza / ovulation_day_calc.fish
Created May 9, 2020 07:14
Ovulation day Calculator for fish
# notyet!!!!!
#!/usr/bin/fish
# if Regular cycle
function regular_c
while true
echo 'How many days is your menstrual cycle?'
read regular_day -p "echo '(day) > '"
end
echo $regular_day
@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