Skip to content

Instantly share code, notes, and snippets.

Tung Nguyen tongueroo

Block or report user

Report or block tongueroo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:09d358fd3bd556be5dce3fe68cf46b40
/opt/ruby/gems/2.5.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require': /lib64/ version `OPENSSL_1.0.2' not found (required by /opt/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/ - /opt/ruby/gems/2.5.0/gems/puma-3.12.1/lib/puma/ (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
View r53sample.rb
r53 =
: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 => '',
:start_record_type => 'CNAME'
puts response[:resource_record_sets].map{|r| r[:name]}
View Rakefile.rb
require 'html/proofer'
task default: :test
task :test do
sh "bundle exec jekyll build"
# hacks to get html proof to pass links we wanted ignored
check_html: true,
set -x
set -e
# Setup git so we can use it
git config --global ""
git config --global "CircleCI build_html script"
# remove changes from current gh-pages-ci branch
git checkout -f
View gist:91553
INFO [2009-04-06 02:32:47] (4403) ::
<?xml version="1.0" encoding="UTF-8" standalone="no"?>^M
<EVENT selectorcode="NL---" league="nl" eventtype="f" correction="N">^M
View gist:86420
bleacherreport@ey03-s00338 /data/tung $ cat test_nginx.rb
data = []
50.times do |i|
t1 =
out = `curl -I -H "" localhost/stylesheets/ie7_1238100323.css`
t2 =
tdiff = t2 - t1
data << tdiff
View gist:86292
tung@walle ~/Sites/br/breport $ date; echo; curl -I ; 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.
You can’t perform that action at this time.