I hereby claim:
- I am labria on github.
- I am labria (https://keybase.io/labria) on keybase.
- I have a public key whose fingerprint is F055 7EF3 867E 052C CC8C 1226 ABFE 6C30 6F8E C8C2
To claim this, I am signing this object:
3C46W-9NJBD-I7JCQ-3OSBI-PYYNG |
I hereby claim:
To claim this, I am signing this object:
su 0 | |
su - | |
ls -l | |
mc | |
mc | |
mc | |
mc | |
mc | |
~~exit | |
exit |
344HCPUR4P3P9P1ANFCPYR6AK |
def activity_status | |
if last_activity_time < Time.now-CURRENTLY_WORKING_DELAY.hour | |
'working' | |
elsif last_activity_time > Time.now-INACTIVE_DELAY.hours | |
'active' | |
elsif has_activity? | |
'inactive' | |
elsif signed_in_at_least_once? | |
'no_activity' | |
else |
1. Get this file over http: https://gist.github.com/labria/b57bf9cbe91d090cb7a9/raw/c0da4a838452139073dec45ca2eb156502e45329/test.yml (YAML formatted) | |
2. Parse the data | |
3. Serialize them into JSON | |
4. Print the JSON to the screen (bonus points for pretty-printing it) | |
Remote template example | |
Generates on: <%= @hostname%> |
#!./bin/knife exec | |
# A knife exec script to change chef node's name, preserving all the attributes. | |
# | |
# Usage: knife exec rename-node.rb old-name new-name | |
# | |
# Script retrieves the Node object, changes its 'name' attribute, | |
# creates new Node object with updated name and rest of attributes | |
# untouched. Then it deletes old Node and Client objects from | |
# database, and logs into the server to update it: |
<VirtualHost *:4000> | |
PassengerDefaultUser chef | |
ServerName chef.yourdomain.com | |
DocumentRoot /usr/local/lib/ruby/gems/1.8/gems/chef-server-api-0.9.8/public | |
</VirtualHost> | |
<VirtualHost *:80> | |
PassengerDefaultUser chef | |
ServerName chef.yourdomain.com | |
DocumentRoot /usr/local/lib/ruby/gems/1.8/gems/chef-server-webui-0.9.8/public | |
</VirtualHost> |
===== 18 ===== | |
KUPON,18.10.2011:09:00:27,1610,k | |
SLZH,18.10.2011:09:02:12,171,p | |
SLZH,18.10.2011:09:03:58,1428,p | |
SLZH,18.10.2011:09:21:24,144,p | |
SLZH,18.10.2011:10:13:03,295,p | |
KUPON,18.10.2011:10:49:41,1350,k | |
VFE,18.10.2011:11:36:19,270,m | |
O2,18.10.2011:12:03:55,1740,m | |
VFE,18.10.2011:12:06:23,860,m |