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
| // e.g. console.save({hello: 'world'}) | |
| (function(console){ | |
| console.save = function(data, filename){ | |
| if(!data) { | |
| console.error('Console.save: No data') | |
| return; | |
| } | |
| if(!filename) filename = 'console.json' | |
| if(typeof data === "object"){ | |
| data = JSON.stringify(data, undefined, 4) |
These commands generate and use private keys in unencrypted binary (not Base64 “PEM”) PKCS#8 format. The PKCS#8 format is used here because it is the most interoperable format when dealing with software that isn't based on OpenSSL.
OpenSSL has a variety of commands that can be used to operate on private
key files, some of which are specific to RSA (e.g. openssl rsa and
openssl genrsa) or which have other limitations. Here we always use
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
| project(testlink) | |
| add_executable(testlink main.cpp) | |
| target_link_libraries(testlink) |
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
| project(testlink) | |
| add_executable(testlink main.cpp) | |
| target_link_libraries(testlink) |
Build ios app for iphoneos sdk with signing using Travis ci.
- Export your private key that you are going to use for signing from Keychain Access app to
~/privateKey.p12with export password__YourRandomPass22 - Fetch script and run it from your Travis-enabled target iOS app repo:
IOS_IDENTITY_KEY=~/privateKey.p12 IOS_IDENTITY_KEY_PASSWORD=__YourRandomPass22 bash <(curl -s https://gist.githubusercontent.com/darvin/96a3af399d0b970a59b1/raw/setup_travis_ios_signing.sh) - Review changes and commit. It suppose to work now.
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
| Network::Address::InstanceConstSharedPtr | |
| RedisCluster::RedisDiscoverySession::RedisDiscoverySession::ProcessCluster( | |
| const NetworkFilters::Common::Redis::RespValue& value) { | |
| if (value.type() != NetworkFilters::Common::Redis::RespType::Array) { | |
| return nullptr; | |
| } | |
| auto& array = value.asArray(); | |
| if (array.size() < 2 || array[0].type() != NetworkFilters::Common::Redis::RespType::BulkString || | |
| array[1].type() != NetworkFilters::Common::Redis::RespType::Integer) { |
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
| class LoginBonusMaster(Base): | |
| __tablename__ = 'login_bonus_master' | |
| id = Column(Integer, primary_key=True, index=True) | |
| message_title = Column(Text) | |
| message_content = Column(Text) | |
| _daily_reward_id_list = Column('daily_reward_id_list') | |
| termview_flag = Column(Integer) | |
| infinite_flag = Column(Integer) |
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
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| st = status | |
| aa = add -A . |
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
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| import struct | |
| _DELTA = 0x9E3779B9 | |
| def _long2str(v, w): | |
| n = (len(v) - 1) << 2 | |
| if w: |