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
/Applications/Utilities/Console.app/Contents/MacOS/Console & |
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
[deploy@app ~]$ /sbin/service httpd configtest | |
Syntax OK | |
[deploy@app ~]$ /sbin/service httpd restart | |
rm: cannot remove `/var/run/httpd.pid': Permission denied [FAILED] | |
Starting httpd: | |
touch: cannot touch `/var/lock/subsys/httpd': Permission denied | |
[deploy@app ~]$ |
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
// let's extend InPlaceEditor to send the HTML to the server. | |
Object.extend(Ajax.InPlaceEditor.prototype, { | |
onLoadedExternalText: function(transport) { | |
Element.removeClassName(this.form, | |
this.options.loadingClassName); | |
this.editField.disabled = false; | |
this.editField.value = transport.responseText; | |
Field.scrollFreeActivate(this.editField); | |
} | |
}); |
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
# will_paginate 3.0.pre2 Renderer for post action. | |
# use: will_paginate @foo, :renderer => 'PostLinkRenderer' | |
class PostLinkRenderer < WillPaginate::ViewHelpers::LinkRenderer | |
private | |
def link(text, target, attributes = {}) | |
target = url(target) if target.is_a? Fixnum | |
attributes[:href] = target | |
attributes["data-method"] = "post" |
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
require 'timecop' | |
module TemporalHelpers | |
# Travels to +time+ and lets the clock keep running. | |
# | |
# If a block is given, executes the block at that | |
# time then returns to the present. | |
def travel_to(time, &block) | |
Timecop.travel Time.parse(time), &block |
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
/** | |
Based on https://github.com/sinefunc/base62 | |
NOTE: both algorithms differ when decoding big integers: | |
https://skitch.com/jpemberthy/r8hes/screen-shot-2011-01-05-at-1.49.08-pm | |
*/ | |
SIXTYTWO = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", | |
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", | |
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] |
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
########### WITH TAGGINGS ######### | |
##### Factory.create(:user) ####### | |
[4;35;1mMembershipLevel Load (1.0ms)[0m [0mSELECT * FROM "membership_levels" WHERE ("membership_levels"."name" = E'Free') LIMIT 1[0m | |
[4;36;1mSQL (2.1ms)[0m [0;1mBEGIN[0m | |
[4;35;1mUser Load (0.6ms)[0m [0mSELECT "users".id FROM "users" WHERE (LOWER("users"."email") = E'[email protected]') LIMIT 1[0m | |
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT "users".id FROM "users" WHERE ("users"."perishable_token" = E'sllS4kgFVivHXfBUtorE') LIMIT 1[0m | |
[4;35;1mUser Load (1.3ms)[0m [0mSELECT "users".id FROM "users" WHERE ("users"."persistence_token" = E'8c6520cabeeb79fdfb5b99df8576de16eb58a634437aea0900d587d48ec602ccd0c3a8ef1f1611ccc5dc82d9ebf330de027fc2088ffdcf982ce173059843e208') LIMIT 1[0m | |
[4;36;1mUser Load (0.7ms)[0m [0;1mSELECT "users".id FROM "users" WHERE ("users"."single_access_token" = E'6rfFjyQzn4WPqsPxiIWe') LIMIT 1[0m | |
[4;35;1mSQL (0.8ms)[0m [0mINSERT INTO "users" ("resume_updated_at", "pr |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwze+yik2n2RHJIEFhTnyJQAn4SKoZRoHkHFXfR+lMMuu5OkMn631F2NPdd0M0S9aN98n4C8i3kVLFwLZvDoeqXqK6YzACrWL29/KG/pjgskzUBo+7xhR3NID7fxbG8AwZmGBPT/wZJeUW/gE9PNQbEx1MotIsNG7lnUKQ91MtQ1ZZ5JO9TjjM8ODIcM0OsgkGj4Mj5HruRxm0syOLlcm4B827SygFoVZXQTHCYve1IvewmWV11Q3HNAUrH6W50DZa4ufugMO0x8Vse0R6b23kEj2Y2DZKh1VuVxQ0mSpOAp5WBSG0IdSSoToD75QLRmUy0RWyWfAa6GM2WOdhNFI1Q== [email protected] |
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
GBP FUND | |
Zulumaster 1 | |
Currency Changers | |
Fly on the wall | |
PIP EMPORIUM |
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
Some extra bundles. | |
*** | |
expect { | |
${1:something} | |
}.to change(${2:Thing}, ${3::attribute}).from(${4:a}).to(${5:b}) | |
*** |
OlderNewer