Skip to content

Instantly share code, notes, and snippets.

@sue445
sue445 / error.log
Created October 26, 2016 23:51
plugin release error log
[sue445@sue445-MBP.local] ✘ 130 ~/dev/workspace/github.com/jenkinsci/gitlab-logo (master)
[sue445@sue445-MBP.local] [10-27 08:43:53] $ mvn org.apache.maven.plugins:maven-release-plugin:2.5:prepare org.apache.maven.plugins:maven-release-plugin:2.5:perform
Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GitLab Logo Plugin 1.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.5:prepare (default-cli) @ gitlab-logo ---
@sue445
sue445 / metro2016.md
Last active September 19, 2016 10:17
プリキュアメトロスタンプラリー
# == Schema Information
#
# Table name: jankens
#
# id :integer not null, primary key
# title :string not null
# enemy_name :string not null
# created_at :datetime not null
# updated_at :datetime not null
#
source 'https://rubygems.org'
ruby '2.3.1'
gem 'rails', '5.0.0.1'
gem 'activeadmin', "1.0.0.pre4"
gem 'activerecord-simple_index_name'
gem 'coffee-rails', '~> 4.2'
gem 'devise'
@sue445
sue445 / install.md
Created July 24, 2016 07:14
gem install rubicure -v 0.4.7
[sue445@sue445-MBP.local] ✓ ~
[sue445@sue445-MBP.local] [07-24 16:10:29] $ rbenv shell 2.1.9

[sue445@sue445-MBP.local] ✓ ~
[sue445@sue445-MBP.local] [07-24 16:11:20] $ gem list | grep rubicure

[sue445@sue445-MBP.local] ✘ 1 ~
[sue445@sue445-MBP.local] [07-24 16:11:30] $ gem install rubicure -v 0.4.7
Fetching: concurrent-ruby-1.0.3.pre3.gem (100%)
@sue445
sue445 / README.md
Last active June 2, 2016 12:18
Generate tag links for Docker Hub

Usage

cd /path/to/repo
ruby /path/to/docker_github_link.rb
@sue445
sue445 / README.md
Last active April 9, 2019 18:24
Show digital ocean images

Show digital ocean images

Usage

export DIGITALOCEAN_ACCESS_TOKEN="xxxxxxxxxxxxxxx"
curl -s "https://api.digitalocean.com/v2/images?filter=global&per_page=100" -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN" | jq .

# grep slug
curl -s "https://api.digitalocean.com/v2/images?filter=global&per_page=100" -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN" | jq -r ".images[].slug" | grep centos
@sue445
sue445 / error.log
Created April 22, 2016 02:58
omnibus-itamae install error
[vagrant@localhost ~]$ cd /tmp/
[vagrant@localhost tmp]$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[vagrant@localhost tmp]$ sudo yum install -y wget
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
@sue445
sue445 / strip_heredoc.rb
Created March 17, 2016 07:29
strip_heredoc vs <<~
require "active_support/core_ext/string/strip"
message1 = <<-EOS.strip_heredoc
aaaaa
bbbbb\nccccc
ddddd
EOS
puts message1
=begin
@sue445
sue445 / error.log
Created January 4, 2016 22:24
nokogiri install error on wercker ruby 2.3.0
export WERCKER_STEP_ROOT="/pipeline/bundle-install-9971184e-6019-4826-9ce0-4f78ecf3f2d4"
export WERCKER_STEP_ID="bundle-install-9971184e-6019-4826-9ce0-4f78ecf3f2d4"
export WERCKER_STEP_OWNER="wercker"
export WERCKER_STEP_NAME="bundle-install"
export WERCKER_REPORT_NUMBERS_FILE="/report/bundle-install-9971184e-6019-4826-9ce0-4f78ecf3f2d4/numbers.ini"
export WERCKER_REPORT_MESSAGE_FILE="/report/bundle-install-9971184e-6019-4826-9ce0-4f78ecf3f2d4/message.txt"
export WERCKER_REPORT_ARTIFACTS_DIR="/report/bundle-install-9971184e-6019-4826-9ce0-4f78ecf3f2d4/artifacts"
export WERCKER_BUNDLE_INSTALL_JOBS="4"
source "/pipeline/bundle-install-9971184e-6019-4826-9ce0-4f78ecf3f2d4/run.sh" < /dev/null
Gemfile found. Start bundle install.