This file contains 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
-- End : Marking to-dos completed | |
tell application "Things" | |
tell list "Today" | |
set toDoToComplete to to do named "$pomodoroName" | |
set status of toDoToComplete to completed | |
set tag names of toDoToComplete to "⌘,✔" | |
end tell | |
move toDoToComplete to list "Next" | |
end tell |
This file contains 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
" Vim functions to run RSpec and Cucumber on the current file and optionally on | |
" the spec/scenario under the cursor. | |
function! RailsScriptIfExists(name) | |
" Bundle exec | |
if isdirectory(".bundle") || (exists("b:rails_root") && isdirectory(b:rails_root . "/.bundle")) | |
return "bundle exec " . a:name | |
" System Binary | |
else | |
return a:name |
This file contains 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
<pseudo code> | |
timer = nil | |
onkeyup: | |
canceltimer timer | |
settimer timer +1s dosearch | |
</pseudo code> |
This file contains 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
# rbenv setup | |
export RBENV_ROOT=/usr/local/rbenv | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
eval "$(rbenv init -)" |
This file contains 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
Wowza! |
This file contains 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
[1] 23:28:06 [SUCCESS] ec2-174-129-110-52.compute-1.amazonaws.com | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/lvm--raid--0-lvm0 2.0T 1.4T 583G 71% /mnt/cassandra_snapshots | |
316G /mnt/cassandra_snapshots/full/20130508 | |
29G /mnt/cassandra_snapshots/full/20130509 | |
36G /mnt/cassandra_snapshots/full/20130510 | |
319G /mnt/cassandra_snapshots/full/20130512 | |
50M /mnt/cassandra_snapshots/full/20130513 | |
17G /mnt/cassandra_snapshots/full/20130514 | |
9.2G /mnt/cassandra_snapshots/full/20130515 |
This file contains 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
#!/bin/sh | |
# This will allow you to rebalance the Cassandra ring | |
# Accepts hosts from stdin and automatically rebalances | |
# tokens in your ring. | |
# | |
# $ echo "one two three" | ./rebalance.sh | |
RING_SIZE=$(echo "2^127" | bc) |
This file contains 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
#!/bin/sh | |
# This will allow you to rebalance the Cassandra ring | |
# Accepts hosts from stdin and automatically rebalances | |
# tokens in your ring. | |
# | |
# $ echo "one two three" | ./rebalance.sh | |
RING_SIZE=$(echo "2^127" | bc) | |
HOSTS=$(cat $1 | sed 'N;s/\n/ /') |
This file contains 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
#!/bin/sh | |
# This will allow you to rebalance the Cassandra ring | |
# | |
# $ ./rebalance.sh file_of_hosts | |
RING_SIZE=$(echo "2^127" | bc) | |
HOSTS=$(cat $1 | sed 'N;s/\n/ /') | |
HOST_NUM=$(echo $HOSTS | wc -w) | |
INDEX=0 |
This file contains 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
28 items found | |
i-e4cd329a: | |
roles: | |
place_directory_cassandra | |
new_base_default | |
new_base | |
new_base_ubuntu | |
new_base_users | |
new_base_monitored |
OlderNewer