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 / cal-partsize.md
Last active Dec 12, 2020
Calculate Partition Size
View cal-partsize.md

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
View variables4variables.sh
#!/usr/bin/env bash
export a=tappa
export tappa=yatta
eval echo \$\{$a\} # Outputs yatta
@koumaza
koumaza / MMCR.md
Last active Dec 9, 2020
Manual Mount USB in Custom Recovery
View MMCR.md

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 Nov 16, 2020
For keybase filesystem (kbfs) mirroring
View parasync.bash
#!/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)
View set-pr-high.ps1
wmic process where 'name="python.exe"' CALL setpriority "high priority"
@koumaza
koumaza / body.md
Created Oct 12, 2020
Fix Pip install `--dev` not used
View body.md

Change --dev to --pre

@koumaza
koumaza / howto.md
Created Oct 10, 2020
Fix Julia Pkg Registry Clone Nerver END Issue
View howto.md

Windows

git clone https://github.com/JuliaRegistries/General.git ~\.julia\registries\General

or

git clone --depth=1 https://github.com/JuliaRegistries/General.git ~\.julia\registries\General
@koumaza
koumaza / readme.md
Created Oct 5, 2020
How to Fix GDM blackscreen
View readme.md

How to Fix GDM blackscreen

Bad Command

gdm

True Command

systemctl start gdm
@koumaza
koumaza / config.json
Created Sep 30, 2020
Experimental Configure `~/.docker/config.json`
View config.json
{
"experimental": "enabled"
}