This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bash: 配列の使いみち | |
LIST=( | |
yt-dlp-git | |
gallery-dl-git # コメント記述可能 | |
neovim-git # コメント記述可能 | |
jdupes-git | |
ripgrep-git | |
wget-git | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf '\033[?7l' # DISable word wrap. | |
printf '\033[?7h' # ENable word wrap. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nice -n 19 ionice -c 3 updatedb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "make => make install" on PKGBUILD | |
build() { | |
cd "$pkgname" | |
# ./autogen.sh | |
# ./configure --prefix=/usr \ | |
make | |
} | |
package() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EndeavourOS-Team, Great work. | |
# Maintainer: EndeavourOS-Team <info@endeavouros.com> | |
pkgname=eos-base | |
pkgdesc="Required packages in EndeavourOS." | |
pkgver=1.1 | |
pkgrel=1 | |
arch=('any') | |
license=('GPL') | |
depends=( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function BORDER (){ | |
printf '%*s\n' "${2:-$(tput cols)}" '' | tr ' ' "${1:--}" | |
# 使い方 | |
# 引数でラインのキャラクタを変えられる(デフォルトは-) | |
# This_function "=" ---> =========== | |
# 第2引数でラインの長さを変えられる(デフォルトはターミナルの幅いっぱい) | |
# This_function "=" 10 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# files | |
txt => text/plain | |
htm => text/html | |
html => text/html | |
php => text/html | |
css => text/css | |
js => application/javascript | |
json => application/json | |
xml => application/xml | |
swf => application/x-shockwave-flash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bash_for (){ | |
for i in pic{1..5}.png ;do | |
echo $i | |
done | |
for i in pic{4..10}.jpg ;do | |
echo $i | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bash_until (){ | |
until [[ "$1" = "" ]] ;do | |
echo "$1" | |
shift | |
done | |
} | |
function fish_until | |
for i in (seq (count $argv)) | |
echo $argv[$i] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"protocol-version":"1.0","general-settings":{"app-language":"en-US","allow-acceptable-ads":false,"show-blocked-ads-count":true,"autodetect-filters":true,"safebrowsing-enabled":true,"filters-update-period":-1},"extension-specific-settings":{"use-optimized-filters":true,"collect-hits-count":false,"show-context-menu":true,"show-info-about-adguard":false,"show-app-updated-info":false},"filters":{"enabled-groups":[1,2,3,4,5,6,7,0],"enabled-filters":[208,14,17,224,2,3,4,7,118,122,123,201,210,251,11,101,207,215,242,15,204,225,229,5,239,240,241,250],"custom-filters":[{"customUrl":"https://raw.githubusercontent.com/tofukko/filter/master/Adblock_Plus_list.txt","enabled":true,"title":"豆腐フィルタ","trusted":true}],"user-filter":{"rules":"","disabled-rules":""},"whitelist":{"inverted":false,"domains":[],"inverted-domains":[]}}} |