Skip to content

Instantly share code, notes, and snippets.

@aquiles2k
aquiles2k / application_controller.rb
Created January 29, 2024 08:37 — forked from tonyfg/application_controller.rb
Log Rails object allocations during a request
class ApplicationController < ActionController::Base
around_action :track_object_allocation
def allocation_logger
@@allocation_logger ||= begin
logger = Logger.new("#{Rails.root}/log/allocation_trace.log")
logger.formatter = proc { |_severity, _datetime, _progname, msg|
"#{msg}\n"
}
logger
@aquiles2k
aquiles2k / APDUList.txt
Created January 22, 2024 12:05 — forked from hemantvallabh/APDUList.txt
APDU list
Cheef's Grand APDU List Smartcard Selected Information APDU list
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info
#------------+------------------------+------------------------+----------------------+--------------------------------+
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description |
+------------+------------------------+------------------------+----------------------+--------------------------------+
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE |
+------------+------------------------+------------------------+----------------------+--------------------------------+
@aquiles2k
aquiles2k / gist:8287891853701c8e69793e41e52b099a
Created March 19, 2018 17:12 — forked from wycats/gist:1627976
How to debug dynamic loading
export DYLD_PRINT_OPTS="1"
export DYLD_PRINT_ENV="1"
export DYLD_PRINT_LIBRARIES="1"
export DYLD_PRINT_LIBRARIES_POST_LAUNCH="1"
export DYLD_PRINT_APIS="1"
export DYLD_PRINT_BINDINGS="1"
export DYLD_PRINT_INITIALIZERS="1"
export DYLD_PRINT_REBASINGS="1"
export DYLD_PRINT_SEGMENTS="1"
export DYLD_PRINT_STATISTICS="1"