Skip to content

Instantly share code, notes, and snippets.

View MyounghoonKim's full-sized avatar

Myounghoon Kim MyounghoonKim

  • Quryon
  • Seoul, Korea
View GitHub Profile
@MyounghoonKim
MyounghoonKim / all_log.sh
Created April 24, 2018 09:58
monitor emr hadoop steps log
#!/bin/bash
target="/var/log/hadoop/steps"
while true
do
touch $target/lastwatch
sleep 1
find -cnewer $target/lastwatch -exec tail -1 {} \;
done
@MyounghoonKim
MyounghoonKim / user.rb
Last active December 28, 2015 04:39
CRUD action on embedded document on MongoMapper
# User embeds Other and Other embeds Shops.
require 'mongo_mapper'
class User
include MongoMapper::Document
key :email, String, :required => true
one :other
end