Skip to content

Instantly share code, notes, and snippets.

@wesgarrison
wesgarrison / gist:90a0d8ab24b2203c4282
Created May 13, 2015 20:12
md5 mDNSResponder and mDNSResponderHelper
➜ code md5 /usr/sbin/mDNSResponder
MD5 (/usr/sbin/mDNSResponder) = f09fd4f1a256ba622356a9fc0579a338
➜ code md5 /usr/sbin/mDNSResponderHelper
MD5 (/usr/sbin/mDNSResponderHelper) = 30646c984e812e157a352d24df125033
Rails.cache.fetch ('nil thing') { nil }
Cache read: nil thing
Cache generate: nil thing
Cache write: nil thing
@wesgarrison
wesgarrison / 1_in.txt
Created October 18, 2014 04:05
skeletons
-
[127]
[#<Thing id: 127, ...>]
[127]
[127]
[#<Thing id: 127, ...>]
[127]
[127]
[#<Thing id: 127, ...>]
[127]
[127]
[#<Thing id: 127, ...>]
[127]
@wesgarrison
wesgarrison / gist:d1b74e4b6ab6791e9a3d
Created April 30, 2014 15:15
Make pull request from an issue
# template
curl --user "<gh-username>" \
--request POST \
--data '{"issue": "<issue-number>", "head": "<owner>:<branch>", "base": "master"}' \
https://api.github.com/repos/<owner>/<repo>/pulls
# example
curl --user "wesgarrison" \
@wesgarrison
wesgarrison / gist:5507124
Last active December 16, 2015 22:29
swedish chef
it "should be able login as a user" do
visit '/'
page.should have_content "Log In Here"
fill_in 'email', :with => user.email
fill_in 'password', :with => 'Password1'
click_button 'Log in'
end
Technical Error has occurred. Please Contact your agent.
Technical Details
Exception:
Type: com.farmers.frameworks.eagent.app.exception.CAPRequestException: Registration validation of policy and client number failed
Message: Registration validation of policy and client number failed
Trace: com.farmers.frameworks.eagent.app.exception.CAPRequestException: Registration validation of policy and client number failed at com.farmers.eagent.common.css.web.request.CSSExceptionReqHnd.initException(CSSExceptionReqHnd.java:45) at com.farmers.eagent.common.web.request.DefaultRequestMgr.dispatch(DefaultRequestMgr.java:183) at com.farmers.frameworks.eagent.web.ControllerServlet.performTask(ControllerServlet.java:209) at com.farmers.frameworks.eagent.web.ControllerServlet.performTask(ControllerServlet.java:186) at com.farmers.frameworks.eagent.web.ControllerServlet.doPost(ControllerServlet.java:163) at javax.servl