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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/signal" | |
"syscall" | |
"golang.org/x/crypto/ssh" |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net" | |
"os" | |
"os/signal" | |
"syscall" |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/signal" | |
"syscall" | |
"golang.org/x/crypto/ssh" |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
"os" | |
"os/signal" | |
"syscall" |
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/bash | |
# IFSを改行のみにする | |
IFS=$'\n' | |
while read -rsn1 KEY; do | |
case "${KEY}" in | |
# バックスペース・デリートの場合 | |
$'\ch'|$'\b'|$'\x7F') | |
echo "Backspace";; |
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
command_not_found_handle() { | |
#### | |
# 変数の定義 | |
#### | |
# 変数(ASCII ART)定義 | |
AA1=" | |
____ | |
/ \ /\ キリッ | |
/ (ー)(ー)\ | |
/ ⌒(__人__)⌒\ 「$1」、 |
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/bash | |
AA1=" | |
AAAA | |
AAAA | |
AAAA | |
" | |
#AA1_LINE=$(echo -e "${AA1}"|wc -l) | |
AA2_1=" | |
BBBB |
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
ssh -t user@host ' | |
bash --rcfile <( | |
echo -e ' $(cat <(echo "function lvim() { vim -u <(echo "$(cat ~/.vimrc|base64)"|base64 -d) \$@ ; }") \ | |
~/dotfiles/{.bashrc,sh_function,sh_alias,bash_prompt} \ | |
<(echo -e alias vim=lvim) | \ | |
base64 | |
) ' \ | |
|base64 -d)' |
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 -s https://ja.wikipedia.org/wiki/%E9%80%B1%E5%88%8A%E5%B0%91%E5%B9%B4%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%97%E9%80%A3%E8%BC%89%E4%BD%9C%E5%93%81%E3%81%AE%E4%B8%80%E8%A6%A7 \ | | |
sed -e 's/<span style="display:none[^>]*>[^>]*>//g;s/<td>/&__________/g;s|</ br>||g' | \ | |
w3m -dump -cols 500 -T text/html | nkf -Lu | sed 's/__________/\x0/g' | \ | |
grep -a -E '^ *[0-9]+ +' | grep -a -v -e '短期集中連載' -e '移籍' -e '連載中' -e '月1連載' -e '続編' | \ | |
sed -r 's/^ *[0-9]+ +//g;s/\^\[[0-9]+\]//g;s/^\x0//g;s/ {2,}/\t/g;s|/[0-9]+||g' | \ | |
awk -F"\0" ' | |
BEGIN{OFS="\t"} | |
{ | |
s=$(NF-2); | |
split(s, st, "."); |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"net" | |
"net/http" | |
"net/url" | |
"os" | |
"os/signal" |