Skip to content

Instantly share code, notes, and snippets.

View vrybas's full-sized avatar

Vladimir Rybas vrybas

View GitHub Profile
def activity_status
if currently_working?
'working'
elsif worked_recently?
'active'
elsif has_activity?
'inactive'
elsif signed_in_at_least_once?
'no_activity'
else
@vrybas
vrybas / end.scpt
Created August 15, 2012 02:56 — forked from nclark/end.scpt
applescripts for pomodoro.app
tell application "Finder"
if (name of every application process) contains "Skype" then
tell application "Skype"
send command "SET USERSTATUS ONLINE" script name "pomodoro"
send command "SET PROFILE MOOD_TEXT " script name "pomodoro"
end tell
end if
end tell
tell application "Twitter" to activate
user app;
worker_processes 2;
error_log /home/app/logs/nginx.error.log info;
events {
worker_connections 1024;
}