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
curl -qkL "${URL}" |jar -xvf /dev/stdin # <= zip | |
|tar Jx # <= tar.xz | |
|unzstd - |tar x # <= tar.zst |
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
func_test (){ | |
# echo file name of "test.scr" | |
cat << '____SCR' > test.scr | |
echo $0 | |
echo $BASH_SOURCE | |
echo ${BASH_SOURCE:-$0} | |
____SCR | |
chmod 777 ./test.scr | |
local N=1 | |
echo '## ./test.scr #################' |
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
U+1F449 => | |
echo -e "\U1F449" | |
echo "$(echo -e "\U1F449")" |
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
Replace "eval" => "console.log" | |
And, Write to /path/to/file.js | |
"eval(function(p,a,c,k,e,d){..." | |
=> "console.log(function(p,a,c,k,e,d){..." | |
Then, run it. | |
node /path/to/file.js >What_you_want.txt |
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
//Copy source to clipboard | |
javascript:(function(){var o=new XMLSerializer();e = document.createElement('textarea');e.textContent = (o.serializeToString(document.documentElement));document.body.appendChild(e);e.select();document.execCommand('copy');e.remove();})(); | |
//Copy url to clipboard | |
javascript:(function(){e = document.createElement('textarea');e.textContent = document.URL;document.body.appendChild(e);e.select();document.execCommand('copy');e.remove();})(); | |
//Duplicate tab | |
javascript:window.open(location.href) |
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
N=1 | |
for i in {1..1000} ;do | |
echo -ne "Time: $N s\r" | |
sleep 1s | |
let N++ | |
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
foreach (){ | |
for i in {1st,2nd,3rd,4th,5th,.................} ;do | |
/do/something "$i" | |
done | |
ARRAY=( | |
1st | |
2nd | |
3rd | |
4th |
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
gedit: ~/.local/share/gedit/styles | |
pluma: ~/.config/pluma/styles | |
xed : ~/.local/share/gtksourceview-3.0/styles |
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
#!/bin/sh | |
# @file | |
# | |
# Installer (Unix-like) | |
# Information about the host system/Linux distribution | |
# | |
# Copyright (C) 2006-2020 Oracle Corporation | |
# |
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
tput装飾一覧 | |
https://qiita.com/onokatio/items/5d282b72ac5565ae4569 | |
色番号=>色 | |
0=>黒 | |
1=>赤 | |
2=>緑 | |
3=>黄色 | |
4=>青 | |
5=>マゼンタ | |
6=>シアン |
NewerOlder