Skip to content

Instantly share code, notes, and snippets.

(00.000250) TCP recv queue memory limit is 3145728
(00.000351) cpu: fpu:1 fxsr:1 xsave:0
(00.000510) vdso: Parsing at 7ffc94303000 7ffc94305000
(00.000522) vdso: PT_LOAD p_vaddr: ffffffffff700000
(00.000527) vdso: DT_HASH: 0xffffffffff700120
(00.000533) vdso: DT_STRTAB: 0xffffffffff700268
(00.000539) vdso: DT_SYMTAB: 0xffffffffff700160
(00.000545) vdso: DT_STRSZ: 94
(00.000550) vdso: DT_SYMENT: 24
(00.000556) vdso: nbucket 3 nchain 11 bucket 0x7ffc94303128 chain 0x7ffc94303134
(00.000257) TCP recv queue memory limit is 3145728
(00.000359) cpu: fpu:1 fxsr:1 xsave:0
(00.000527) vdso: Parsing at 7ffd3818e000 7ffd38190000
(00.000539) vdso: PT_LOAD p_vaddr: ffffffffff700000
(00.000545) vdso: DT_HASH: 0xffffffffff700120
(00.000551) vdso: DT_STRTAB: 0xffffffffff700268
(00.000557) vdso: DT_SYMTAB: 0xffffffffff700160
(00.000563) vdso: DT_STRSZ: 94
(00.000569) vdso: DT_SYMENT: 24
(00.000575) vdso: nbucket 3 nchain 11 bucket 0x7ffd3818e128 chain 0x7ffd3818e134
(00.000376) TCP recv queue memory limit is 3145728
(00.000520) cpu: fpu:1 fxsr:1 xsave:0
(00.000743) vdso: Parsing at 7ffd8a9cd000 7ffd8a9cf000
(00.000756) vdso: PT_LOAD p_vaddr: ffffffffff700000
(00.000762) vdso: DT_HASH: 0xffffffffff700120
(00.000768) vdso: DT_STRTAB: 0xffffffffff700268
(00.000773) vdso: DT_SYMTAB: 0xffffffffff700160
(00.000779) vdso: DT_STRSZ: 94
(00.000784) vdso: DT_SYMENT: 24
(00.000790) vdso: nbucket 3 nchain 11 bucket 0x7ffd8a9cd128 chain 0x7ffd8a9cd134
(00.000246) TCP recv queue memory limit is 3145728
(00.000350) cpu: fpu:1 fxsr:1 xsave:0
(00.000616) vdso: Parsing at 7ffe7b9ec000 7ffe7b9ee000
(00.000628) vdso: PT_LOAD p_vaddr: ffffffffff700000
(00.000634) vdso: DT_HASH: 0xffffffffff700120
(00.000640) vdso: DT_STRTAB: 0xffffffffff700268
(00.000646) vdso: DT_SYMTAB: 0xffffffffff700160
(00.000651) vdso: DT_STRSZ: 94
(00.000657) vdso: DT_SYMENT: 24
(00.000663) vdso: nbucket 3 nchain 11 bucket 0x7ffe7b9ec128 chain 0x7ffe7b9ec134

Keybase proof

I hereby claim:

  • I am kimh on github.
  • I am kimh (https://keybase.io/kimh) on keybase.
  • I have a public key whose fingerprint is 501E 6C11 945B EF18 6AAA 6BB8 8C1A DEEC 2CF0 D923

To claim this, I am signing this object:

@kimh
kimh / gist:4c6fbe42f4d0e2e65bd3
Created February 21, 2015 10:42
Convert hash keys to camel case deeply
require "minitest/autorun"
require "json"
require "active_support/inflector"
def to_camel(data)
# Do nothing when data is neither Hash or Array.
# This is the guard for array data which mixes non different class.
return data unless data.respond_to?(:inject)
data.inject({}) do |h,(k,v)|
@kimh
kimh / casper_cheet.md
Last active August 29, 2015 14:14
Casper.js cheetsheet

Dump html to console

this.debugHTML();

Capture screen shot

this.capture("shot.png");
@kimh
kimh / fruit.rb
Last active August 29, 2015 14:10
Accessing fields not mapped in lotus-model
require 'lotus/model'
require 'sequel'
require 'sqlite3'
require 'minitest/autorun'
require 'pp'
class Fruit
include Lotus::Entity
self.attributes = :type, :taste
@kimh
kimh / gist:63462fa28c3a75fdeaf6
Created October 29, 2014 13:58
Codes that demonstrates ArticleRepository.adapter is nil
require 'bundler/setup'
require 'sqlite3'
require 'lotus/model'
require 'lotus/model/adapters/sql_adapter'
connection_uri = "sqlite://#{ __dir__ }/test.db"
database = Sequel.connect(connection_uri)
database.create_table! :authors do
@kimh
kimh / Gemfile.lock
Last active August 29, 2015 14:05
Action#headers returns empty?
PATH
remote: ~/git/lotus
specs:
lotusrb (0.1.0)
lotus-controller (~> 0.2)
lotus-router (~> 0.1, >= 0.1.1)
lotus-utils (~> 0.2)
lotus-view (~> 0.2)
thor (= 0.19.1)