I'm a big fan of Pomodoro time management technique, created by Francesco Cirillo in the 80's. In this post I'll describe what it is, how I use it (tools and their tweaks), and how it helps me to get through my day.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def activity_status | |
if currently_working? | |
'working' | |
elsif worked_recently? | |
'active' | |
elsif has_activity? | |
'inactive' | |
elsif signed_in_at_least_once? | |
'no_activity' | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*****************************************************************************/ | |
/* | |
/* Home | |
/* | |
/*****************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
included do | |
scope :processing, where(state: 'processing') | |
scope :error, where(arel_table[:state].matches('%failed')) | |
scope :completed, where(state: %w( converted uploaded protected )) | |
end | |
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file should be in RAILS_ROOT | |
database: | |
override: | |
- cp config/database.yml.ci config/database.yml | |
- psql -U ubuntu circle_test < db/structure.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"font_size": 13.0, | |
"ignored_packages": [], | |
"save_on_focus_lost": true, | |
"vintage_start_in_command_mode": true, | |
"caret_style": "wide", | |
"highlight_line": true, | |
"fade_fold_buttons": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["ruby","-c","$file"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# Bluepill related tasks | |
namespace :bluepill do | |
desc "Stop processes that bluepill is monitoring and quit bluepill" | |
task :quit, :roles => [:app] do | |
#run "cd #{release_path} && rvmsudo bundle exec bluepill stop" | |
#run "cd #{release_path} && rvmsudo bundle exec bluepill quit" | |
run "rvmsudo bluepill stop" | |
run "rvmsudo bluepill quit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bluepill.application("yourapp", :log_file => "/home/user/www/yourapp/shared/log/bluepill.log") do |app| | |
app.process("delayed_job") do |process| | |
process.working_dir = "/home/user/www/yourapp/current" | |
process.start_grace_time = 10.seconds | |
process.stop_grace_time = 10.seconds | |
process.restart_grace_time = 10.seconds | |
process.start_command = "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'RAILS_ENV=production ruby /home/user/www/yourapp/current/script/delayed_job start'" | |
process.stop_command = "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'RAILS_ENV=production ruby /home/user/www/yourapp/current/script/delayed_job stop'" |
NewerOlder