host='vera-us-oem-relay31.mios.com'
path='/relay/relay/relay/device/45025220/session/000000043F62005B183D2DABD0DD8B175A866F/port_3480/data_request?DeviceNum=3&Variable=PinCodes&id=variableget&serviceId=urn%3Amicasaverde-com%3AserviceId%3ADoorLock1'
HTTParty.get("https://#{host}#{path}")
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
// ==UserScript== | |
// @name jQueryfy | |
// @namespace http://rafasales.com | |
// @version 0.1 | |
// @description Loads jQuery in any page | |
// @match http*://* | |
// @copyright 2012+, Rafael Sales | |
// ==/UserScript== | |
if (typeof(unsafeWindow.jQuery) != 'undefined') { | |
return; |
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
hash = { | |
1 => { c: 2 }, | |
2 => { c: 4 }, | |
} | |
class Works | |
def do(a, c:) | |
puts "a: #{a.inspect}; c: #{c.inspect}" | |
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
@dougwilson thanks for the quick response. Yeah, I've read most of the session lib source and couldn't see a reason for it not work. | |
I found a way, by manually calling session on the express websockets upgrade request handler: | |
```js | |
import Express from 'express' | |
import ExpressSession from 'express-session' | |
import proxy from 'http-proxy-middleware' | |
const session = ExpressSession({ ... }) |
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 Funky | |
def good_method | |
"I'm good" | |
end | |
def method_missing(*args) | |
"I'm bad" | |
end | |
end | |
> Funky.new.good_method |
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
Jenkins retest this please |
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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDBmH6hVyGPPyQ4E7YtrBPWfhGlvNQs1lzBsQRi4L1U2VoaH+/jO4YipCT7vEFh6TH9RUsobQTjrTHhDdRqXDj3s1c9ZEV5OE6rE4PYEIYFcZFZJz0NZfvHMicKePJ0rrgjRVpCyaoxSdYHikQxcyLfFvyvv/cf6UYc9NvC6nUYqXcnmauEsduYVL7KGX6ba49cIbXfi+zkBverdlWaDV3yADFlaM0PGzVsEZglAiLFNg3nsNP61vVXB9UlxnQfl6s/bVfs+LlHWi2QjHZwMjE5HEyX8xhmPAtnczfwpKV8zxWmF+dhYQJwkffWeYPGvXd+tV5oIc2vwJPaJ57KoXUb sales@desktop |
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
ack -l identifier | xargs -L1 sed -i '' "s/identifier/code/g" |
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
# This initializer creates a local proxy server that makes the local web server accessible | |
# via a public host generated by ProxyLocal service - http://www.proxylocal.com | |
Rails.application.config.after_initialize do | |
server_running = defined?(WEBrick) || defined?(Rails::Server) || defined?(PhusionPassenger) ? true : false | |
next unless Rails.env.development? && server_running | |
Thread.new do | |
ProxyLocal::Client.run({ | |
server_host: 'proxylocal.com', |
NewerOlder