Skip to content

Instantly share code, notes, and snippets.

View tongueroo's full-sized avatar

Tung Nguyen tongueroo

View GitHub Profile
/opt/ruby/gems/2.5.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require': /lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by /opt/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/puma_http11.so) - /opt/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/puma_http11.so (LoadError)
$ bundle env
## Environment
```
Bundler 1.17.2
Platforms ruby, x86_64-linux
Ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
Full Path /home/ec2-user/.rbenv/versions/2.5.3/bin/ruby
Config Dir /home/ec2-user/.rbenv/versions/2.5.3/etc
RubyGems 2.7.6
$ curl -H 'accept-encoding: gzip, deflate, br' localhost:8080/posts
r53 = AWS::Route53.new(
:access_key_id => 'aws-key-id',
:secret_access_key => 'aws-secret-key')
response = r53.client.list_resource_record_sets(
:hosted_zone_id => "zone-id",
:start_record_name => 'xxx.example.com',
:start_record_type => 'CNAME'
)
puts response[:resource_record_sets].map{|r| r[:name]}
require 'html/proofer'
task default: :test
task :test do
sh "bundle exec jekyll build"
HTML::Proofer.new(
"./_site",
# hacks to get html proof to pass links we wanted ignored
check_html: true,
#!/bin/bash
set -x
set -e
# Setup git so we can use it
git config --global user.email "tongueroo@gmail.com"
git config --global user.name "CircleCI build_html script"
# remove changes from current gh-pages-ci branch
git checkout -f
INFO [2009-04-06 02:32:47] (4403) ::
^V^V^A^M
<?xml version="1.0" encoding="UTF-8" standalone="no"?>^M
<!DOCTYPE EVENT SYSTEM "Xmldtds/EVENT.dtd">^M
<EVENT selectorcode="NL---" league="nl" eventtype="f" correction="N">^M
<STORYNUMBER>20090405NL---PHILADELPH0</STORYNUMBER>^M
<SELECTORCODE>NL---</SELECTORCODE>^M
<KEYWORD>bc-nl-f-philadelph</KEYWORD>^M
<VERSION>ATLANTA---PHILADELPH00400118FINA31</VERSION>^M
<DATE>04-05</DATE>^M
bleacherreport@ey03-s00338 /data/tung $ cat test_nginx.rb
data = []
50.times do |i|
t1 = Time.now
out = `curl -I -H "Host:bleacherreport.com" localhost/stylesheets/ie7_1238100323.css`
t2 = Time.now
tdiff = t2 - t1
data << tdiff
tung@walle ~/Sites/br/breport $ date; echo; curl -I http://assets2.bleacherreport.com/stylesheets/ie7_1237850974.css ; date; echo
Thu Mar 26 13:06:50 PDT 2009
HTTP/1.1 200 OK
Server: nginx/0.6.35
Date: Thu, 26 Mar 2009 20:06:56 GMT
Content-Type: text/css
Content-Length: 97
Last-Modified: Mon, 23 Mar 2009 23:30:23 GMT
Connection: keep-alive
We couldn’t find that file to show.