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 | |
# Refuse to commit files with the string NOCOMMIT, debugger, or merge markers present. | |
# | |
files=$(git diff-index --name-status --cached HEAD | grep -v ^D | cut -c3-) | |
if [ "$files" != "" ] | |
then | |
for f in $files | |
do |
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
<item> | |
<title>[caution] - Memory > 80%</title> | |
<link>https://rpm.newrelic.comhttps://rpm.newrelic.com/accounts/68507/servers/748391?tw%5Bdur%5D=last_3_hours&tw%5Bend%5D=1335834058</link> | |
<pubDate>Mon, 30 Apr 2012 22:43:28 +0000</pubDate> | |
</item> | |
<item> | |
<title>[caution] - Memory > 80%</title> | |
<link>https://rpm.newrelic.comhttps://rpm.newrelic.com/accounts/68507/servers/748391?tw%5Bdur%5D=last_3_hours&tw%5Bend%5D=1335746488</link> | |
<pubDate>Sun, 29 Apr 2012 21:57:28 +0000</pubDate> | |
</item> |
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
class AddStoriesCountToJournals < ActiveRecord::Migration | |
def self.up | |
add_column :journals, :stories_count, :integer | |
end | |
def self.down | |
remove_column :journals, :stories_count | |
end | |
end |
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
class CreateStoryTable < ActiveRecord::Migration | |
def self.up | |
create_table :stories do |t| | |
t.string :title | |
t.integer :journal_id | |
t.integer :user_id | |
t.integer :account_id | |
t.timestamps | |
end |
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
>> puts `zip -h` | |
Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license. | |
Zip 2.32 (June 19th 2006). Usage: | |
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list] | |
The default action is to add or replace zipfile entries from list, which | |
can include the special name - to compress standard input. | |
If zipfile and list are omitted, zip compresses stdin to stdout. | |
-f freshen: only changed files -u update: only changed or new files | |
-d delete entries in zipfile -m move into zipfile (delete files) | |
-r recurse into directories -j junk (don't record) directory names |
NewerOlder