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 /System/Library/LaunchDaemons/com.apple.securityd.plist, this apparently *won't* keep pcscd alive forever: | |
<array> | |
<string>/usr/sbin/securityd</string> | |
<string>-i</string> | |
<string>-s</string> | |
<string>on</string> | |
</array> | |
This is despite a comment in pcscmonitor.h that says it should "keep pcscd running at all times" | |
Oh well. |
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
# trace debug-log macro | |
sudo dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }' | |
# restart securityd | |
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist && | |
sudo launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist |
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 'openssl' | |
ec = OpenSSL::PKey::EC.new('secp256k1') | |
# ec.generate_key | |
ec.private_key = "85BDCD4EF6319F9996D5499BD011E6094224CD1B9C87599E854F4E4EA408EFA6".to_i(16) | |
ec.public_key = ec.group.generator.mul(ec.private_key) |
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
wget http://dl-ssl.google.com/android/repository/android-19_r01.zip | |
unzip -p android-19_r01.zip android-*/build.prop | grep "ro.build.id" | tail -c+13 | |
# => KRT16L | |
git clone https://github.com/android/platform_build; cd platform_build | |
git log --oneline --all --no-abbrev --grep=KRT16L | head -c40 | xargs git describe | |
# => android-4.4_r0.9 |
NewerOlder