This is a simple chat-like program using pub-sub pattern, backed by PostgreSQL's LISTEN/NOTIFY command.
publish message to foo channel from user nickname.
$ python pub.py foo nickname
PUBLISH to channel #foo
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/bin/sh | |
| # Create a RAM disk with same perms as mountpoint | |
| # Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
| # Usage: sudo ./xcode_ramdisk.sh start | |
| USERNAME=$(logname) | |
| TMP_DIR="/private/tmp" | |
| RUN_DIR="/var/run" | |
| SYS_CACHES_DIR="/Library/Caches" |
| require 'pivotal-tracker' | |
| TOKEN = 'API_TOKEN' | |
| PROJECT_NUM = -1 | |
| def estimate_to_hours(estimate) | |
| 2 ** estimate | |
| end | |
| PivotalTracker::Client.token = TOKEN |
For this to work, it requires my tmux fork that includes what I use as the hostname in the window list.
At any rate, it'll sort my tmux sessions alphabetically by the host I'm using.
my tmux fork: https://github.com/jordansissel/tmux
Starts with:
(0) - nightfall: zsh - /home/jls/projects/tmux/trunk
(1) carrera: screen -x irc
| #!/usr/bin/env ruby | |
| # | |
| # Biggest problem with this is that it checks everything. Needs | |
| # to be adjusted to only check N days and/or N tasks on Basecamp. | |
| # | |
| # Also has a problem in that Completed always wins. If you have a | |
| # task marked at completed, then mark it as open again on just one | |
| # side, it'll mark the other as completed if you run the sync again. | |
| # | |
| # All that said, it provides a basic, very rudimentary sync. |