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
| # /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-datacounter |
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
| git "/home/#{node['current_user']}/dotfiles" do | |
| repository "https://github.com/okisanjp/dotfiles.git" | |
| revision "master" | |
| user node['current_user'] | |
| group node['current_user'] | |
| action :sync | |
| end |
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
| javascript:(function() {var m = "&tag=YOUR_ASSOCIATE_TAG";var u = location.href;prompt('Associate URL' ,'<a href="' + u + m + '" target="_blank">' + document.title + '</a>');})(); |
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
| javascript:(function() {var m = "対象プログラムのA8MAT";var a = "http://px.a8.net/svt/ejp?a8mat=" + m + "&a8ejpredirect=";var u = location.href;prompt( 'Affiliate URL' , '<a href="' + a + encodeURIComponent(u) + '" target="_blank">' + document.title + '</a>' );})(); |
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
| $ ls | |
| Plugin Vendor app composer.json composer.lock composer.phar fabfile.py fabfile.pyc |
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 | |
| echo "foo" | |
| cat ./sonna_file_naiyo.txt | |
| echo "bar" |
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
| $ aws ec2 describe-instances | |
| { | |
| "Reservations": [ | |
| { | |
| "OwnerId": "xxxxxxxxxxx", | |
| "ReservationId": "r-xxxxxxx", | |
| "Groups": [], | |
| "Instances": [ | |
| { |
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
| # シェルスクリプト内で以下のように書くと | |
| echo -n "Are you sure you want to exit the server? [y/n] > " | |
| # 実行時 | |
| -n Are you sure you want to exit the server? [y/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
| echo -n "Are you sure you want to exit the server? [y/n] > " | |
| while : | |
| do | |
| read INPUT | |
| case "$INPUT" in | |
| "y" ) kill $SERVER_PID | |
| echo "Stopped WEBRick" | |
| break ;; | |
| "n" ) echo "Canceled." | |
| break ;; |
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
| ### プライベートIPの場合 | |
| $ aws ec2 describe-instances | jq -r '.Reservations[].Instances[] | .PrivateIpAddress + "\t" + .Tags[].Value' | |
| 192.0.2.1 aws1.example | |
| 192.0.2.2 aws2.example | |
| 192.0.2.3 aws3.example | |
| 192.0.2.4 aws4.example | |
| 192.0.2.5 aws5.example | |
| 192.0.2.6 aws6.example | |
| 192.0.2.7 aws7.example |