2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-22 10:27:11 +00:00

run fucking_coffee only when hacker is in the office

fixes #2
This commit is contained in:
Nihad Abbasov 2015-11-22 20:20:48 +04:00
parent de59b60677
commit 96fc4b2cab

View File

@ -3,6 +3,9 @@
# Skip on weekends
exit if Time.now.saturday? || Time.now.sunday?
# Exit early if no sessions with my_username are found
exit if `who`[/my_username/].nil?
require 'net/telnet'
coffee_machine_ip = '10.10.42.42'