Skip to content

Instantly share code, notes, and snippets.

@nbqx
Created April 27, 2011 06:55
Show Gist options
  • Save nbqx/943825 to your computer and use it in GitHub Desktop.
Save nbqx/943825 to your computer and use it in GitHub Desktop.
# -*- coding:utf-8 -*-
#earthquake.gem plugin
#show 'df -H' result in name
module TwitterOAuth
class Client
def update_profile(params)
post('/account/update_profile.json', params)
end
end
end
Earthquake.init do
command :df do
async_e { twitter.update_profile :name => "あと" + `df -H | grep "disk0s2"`.split("\s")[3] + "B" }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment