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
| (」・ω・)」うー▶~ $ ❯ |
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
| for i in {0..37};do echo -n '【過去記事Bot】 ';jq -r .[$i].title myfeed|tr -d '\n';echo -n ' ';jq -r .[$i].url myfeed;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
| cat feed.atom|grep -e "<title>" -e "<url>"|sed -e 's/^ *//'|sed -e 's/<title>//'|sed -e 's/<url>/ /'|sed -e 's/<\/title>//'|tr -d '\n'|sed -e 's/<\/url>/\n/g'|tail +2 |
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 | |
| pid=$$ | |
| wkdir='/var/tmp' | |
| playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf | |
| playerfile="${wkdir}/player.swf" | |
| keyfile="${wkdir}/authkey.png" | |
| auth1_fms="${wkdir}/auth1_fms_${pid}" | |
| auth2_fms="${wkdir}/auth2_fms_${pid}" | |
| date=`date +%Y%m%d_%H%M` |
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
| $ ./radiko.sh -p BAYFM78 |
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 command_not_found_handle(){ | |
| if [ -e /usr/bin/jp2a ];then | |
| if [ -e ~/kirino.jpg ];then | |
| jp2a ~/kirino.jpg -i | |
| fi | |
| fi | |
| echo "ハァ…?$1とか何言ってんの?\nコマンドもろくに覚えられないなんて、アンタどうしようもないクズね。" | |
| } |
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
| $ sudo cp ./vpngate-client.service /etc/systemd/system/vpngate-client.service | |
| $ sudo systemctl daemon-reload |
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 | |
| if [ "$1" == wlan0 ] && iwconfig wlan0|grep HogeHogeAccessPoint; then | |
| if ! ps ax|grep "[s]sh -fND 8080"; then | |
| ssh -fND 8080 [email protected] -i /home/onokatio/.ssh/id_rsa -o "StrictHostKeyChecking no" | |
| fi | |
| fi |
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
| DUP HASH160 {20-byte-hash-value} EQUALVERIFY OP_EVAL |
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
| $ docker run -v /host/path:/container/path image-name | |
| # ホストの/host/pathとコンテナ内の/container/pathを同期してimage-nameを起動 | |
| $ docker run -v /host/path:/container/path:ro image-name | |
| # ホストの/host/pathとコンテナ内の/container/pathをリードオンリーで同期してimage-nameを起動。コンテナ側からはファイルの変更ができない。 |