This file contains hidden or 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
# in normal nc | |
nc -l -p 8888 | |
# in bsd nc | |
nc -l 0.0.0.0 8888 | |
# throw in a -k to keep listening to subsequent requests |
This file contains hidden or 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
@charset "utf-8"; | |
@import "normalize"; | |
html { | |
font-size: 62.5%; | |
} | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; |
This file contains hidden or 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] pry(main)> require "active_support/testing/time_helpers" | |
=> true | |
[2] pry(main)> include ActiveSupport::Testing::TimeHelpers | |
=> Object | |
[3] pry(main)> travel_to("1969-01-01".to_time){ puts Time.current } | |
1969-01-01 00:00:00 +0100 |
This file contains hidden or 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 'rack' | |
require 'rack/static' | |
class App | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
req = Rack::Request.new(env) |
OlderNewer