View aws-cli-iam-note.sh
# profile name "pn"
aws configure --profile pn
# Set access key id and secret access key of admin user
# Set default region (e.g. us-east-1)
# Set default format (e.g. json)
BUCKET_NAME=mybucketname
cat <<EOS > policydoc.json
{
View go-vscode-note.txt
yaourt -S visual-studio-code
$ code
Vimプラグインと,Go richなんたらプラグインをインストールして再起動
Alt+F > Preferences > User Settings > Go configuration
- {
- }
View yank.rb
Earthquake.init do
command :y do |m|
target = twitter.status(m[1])
url = "https://twitter.com/#{target["user"]["screen_name"]}/status/#{target["id"]}"
system("echo -n #{url} | xsel -ib")
puts "Yank \"#{url}\"."
#system("tmux set-buffer #{url}")
#puts "Set \"#{url}\" to tmux buffer"
end
View fairilu-zukan-miruru.txt
Miruru
The Fairilu
of Honeybee.
Groupe of
Bugs
Fairilu
Miruru is a
bright and
cute worker bee
View fairilujanken.slim
table
thead
tr
th リルリルフェアリル放映日(予定)
th リルリルフェアリル話数
th りっぷの手
th サザエさん放映日(予定)
th サザエの手
th 勝者
tbody
View fairilujanken.txt
りっぷ サザエ 勝者
05/21,22 チョキ グー サザエ 0勝1敗0分
05/28,29 パー パー あいこ 0勝1敗1分
06/04,05 パー チョキ サザエ 0勝2敗1分
06/11,12 グー グー あいこ 0勝2敗2分
06/18,19 パー パー あいこ 0勝2敗3分
06/25,26 チョキ グー サザエ 0勝3敗3分
07/02,03 グー チョキ りっぷ 1勝3敗3分
07/09,10 チョキ チョキ あいこ 1勝3敗4分
07/16,17 グー パー サザエ 1勝4敗4分
View jenkins-backup-job-shell
# Clean at first
rm -f backup_*.tar.gz
URL=https://raw.githubusercontent.com/sue445/jenkins-backup-script/0.1.8/jenkins-backup.sh
if type curl; then
curl $URL | bash -s /var/lib/jenkins backup_`date +&quot;%Y%m%d%H%M%S&quot;`.tar.gz
elif type wget; then
wget $URL -O - | bash -s /var/lib/jenkins backup_`date +&quot;%Y%m%d%H%M%S&quot;`.tar.gz
else
View thread.rb
Thread.new do
sleep 1
puts 'thread 1'
sleep 1
end
Thread.new do
sleep 1
puts 'thread 2'
sleep 1
View rubocop-log-for-toyodundy.txt
app/models/concerns/article/addon/import.rb:2:1: C: Trailing whitespace detected.
app/models/concerns/article/addon/import.rb:4:3: C: Module has too many lines. [210/166]
module Import ...
^^^^^^^^^^^^^
app/models/concerns/article/addon/import.rb:5:1: C: Trailing whitespace detected.
app/models/concerns/article/addon/import.rb:8:1: C: Trailing whitespace detected.
app/models/concerns/article/addon/import.rb:15:5: W: Useless public access modifier.
public
^^^^^^
app/models/concerns/article/addon/import.rb:16:7: C: Assignment Branch Condition size for to_csv is too high. [61.04/61]
View test_a.rb
# At first, run `gem install test-unit`.
require 'test/unit'
class TestA < Test::Unit::TestCase
setup { puts "all setup" }
test("a") { assert true }
sub_test_case "a sub" do