Skip to content

Instantly share code, notes, and snippets.

View hryk's full-sized avatar
🏠
Working from home

Hiroyuki Nakamura hryk

🏠
Working from home
View GitHub Profile
@hryk
hryk / Gemfile
Last active December 13, 2015 22:08
Examples for using blueprints on JRuby.
source "https://rubygems.org/"
gem "neo4j"
gem "pry"
gem "minitest"
gem "jbundler"
# Ubuntu upstart file at /etc/init/orientdb.conf
# description "Orientdb Server"
# author "Hiroyuki Nakamura"
start on runlevel [2345]
stop on runlevel [^2345]
# environment variables
env ENABLE_ORIENTDB="yes"
env JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-i386"
@hryk
hryk / sample-swift.rb
Created March 18, 2013 14:25
list, get files from openstack swift with fog.
#!/usr/bin/env ruby
# encoding: utf-8
require 'rubygems'
require 'fog'
connection = Fog::Storage.new(
:provider => 'OpenStack',
:openstack_auth_url => ENV['OS_AUTH_URL'] + '/tokens',
:openstack_tenant => ENV['OS_TENANT_NAME'],
Linode 512 vs DigitalOcean 512
------------------------------
DigitalOcean 512MB
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: 1vq9: GNU/Linux
OS: GNU/Linux -- 3.5.0-17-generic -- #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC
2012
#!/usr/bin/env ruby
require 'rubygems'
require 'sequel'
DB = Sequel.connect('jdbc:sqlite:memory:')
DB.create_table :items do
primary_key :id
String :string_attribute
@hryk
hryk / Gemfile
Last active December 19, 2015 19:19
# A sample Gemfile
source "https://rubygems.org"
gem "neo4j"
@hryk
hryk / print_all_in_folder.rb
Created September 5, 2013 12:48
It print all PDFs in folder of Mendeley.
#!/usr/bin/env ruby
require "uri"
require "rubygems"
require "sequel"
require "optparse"
module Mendeley
class FolderNotFound < StandardError; end
class GroupNotFound < StandardError; end
@hryk
hryk / remove_dup_tracks.rb
Created October 20, 2013 12:12
Remove duplicate tracks from iTunes.
#!/usr/bin/env ruby
#
# Remove duplicate tracks from iTunes with
# (itunes-client)[https://github.com/katsuma/itunes-client/].
# ------------------------------------
#
require "itunes-client"
include Itunes
begin
#!/usr/bin/env ruby
require "nokogiri"
require "excon"
require "thor"
# Tasks related to maintain my subscriptions.
class FeedTask < Thor
OPML = <<-EOF
<?xml version="1.0" encoding="UTF-8" ?>

@antipop

技術的負債の分類 (Kruchten et al., 2012)

  • コードの負債は見えるので検出し易いけど、アーキテクチャの負債は見えないので大変
  • アーキテクチャの再構築、リファクタリング

可能的代替システムとの差異(Schmid, 2013)

  • 負債の要因や意図を問わないモデル化