Show process I/O by /proc/<pid>/io.
procio.sh [OPTIONS ...] <pid>
| #!/usr/bin/env bash | |
| # getappx - Get URLs of .appx files from Microsoft Store. | |
| # Copyright 2020 (c) Koichi OKADA. All rights reserved. | |
| # This script is destributed under the MIT license. | |
| source hhs.bash 0.2.0 | |
| function fetch_post () # URL POSTDATA | |
| { | |
| local cachedir=/tmp/.cache |
| #!/usr/bin/env bash | |
| source hhs.bash 0.2.0 | |
| function optparse_mountbsd () | |
| { | |
| case "$1" in | |
| -m|--mount-point) # <mountpoint> | |
| # set mount point | |
| nparams 1 |
sed -E 's@//security@//archive@g;s@//archive@//jp.archive@g;s/$/ universe multiverse/g;s/deb cdrom/#\0/g' -i /etc/apt/sources.list
cat <<EOD | sudo tee /usr/local/bin/ezchroot.sh
#!/usr/bin/env bash
BINDS="dev proc run sys tmp"
for i in $BINDS; do
mount --bind /$i $1/$i
done
| project(hello LANGUAGES) | |
| # enable_language(CSharp) # only suport VS2010 or later. | |
| # add_executable(hello.cs) | |
| if (CYGWIN) | |
| set(MSBUILD /cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe) | |
| execute_process(COMMAND cygpath -a -w "${CMAKE_CURRENT_SOURCE_DIR}" OUTPUT_VARIABLE DOS_STYLE_SOURCE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) | |
| else (CYGWIN) | |
| if (WIN32) |
| #!/usr/bin/env bash | |
| # | |
| # lspkgs.sh - List Packages | |
| # Copyright 2019 (c) Koichi OKADA. All rights reserved. | |
| # This script is distributed under the MIT license. | |
| # | |
| function help () | |
| { | |
| cat <<-EOD |
| #!/usr/bin/env bash | |
| # | |
| # git-get-date | |
| # Copyright (c) 2019 Koichi OKADA. All rights reserved. | |
| # This script is distributed under the MIT license. | |
| # | |
| function usage () | |
| { | |
| cat <<-EOD |