$ openssl genrsa -des3 -out root.key 4096
This file contains 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
/** | |
*Submitted for verification at Etherscan.io on 2017-11-28 | |
*/ | |
pragma solidity ^0.4.17; | |
/** | |
* @title SafeMath | |
* @dev Math operations with safety checks that throw on error | |
*/ |
This file contains 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
<?php | |
/** | |
* 任务处理服务 | |
$taskServer = new \TaskServer( | |
100,//工作进程数量 | |
function($taskServer){//onMaster: 主进程任务 | |
//测试发任务到工作进程 | |
swoole_timer_tick(100, function () use ($taskServer) { | |
$taskServer->task("hello"); | |
}); |
This file contains 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
#!/bin/bash | |
# author: terry, ben | |
# tested GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14) | |
# FYR (for Mac OS, may need some change for linux) | |
# second -> ISO8601 | |
date -u -r 1453951368 +%FT%TZ | |
## ouptput: 2016-01-28T03:22:48Z | |
# ISO8601 -> second | |
date -ju -f "%FT%TZ" 2016-01-28T03:22:48Z +%s | |
## output: 1453951368 |
This file contains 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
www | |
ftp | |
smtp | |
pop | |
m | |
webmail | |
pop3 | |
imap | |
localhost |
This file contains 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
-------------------- | |
-------------------- | |
交易:a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d | |
raw: https://btc.com/a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d.rawhex | |
01 加锁数量 | |
输出脚本: | |
0010a5d4e8000000 小头,八字节,转出数量 10000.00000000 | |
19 脚本长度 |
This file contains 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
pragma solidity ^0.4.23; | |
/** | |
* @title ERC20 interface | |
*/ | |
contract ERC20 { | |
function totalSupply() | |
public view returns (uint256); | |
function balanceOf(address who) |
This file contains 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
pragma solidity 0.4.16; | |
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } | |
/** | |
* owned 是一个管理者 | |
*/ | |
contract owned { | |
address public owner; |
This file contains 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
<?php | |
/** | |
* @copyright Bruno Bierbaumer, Vladimir Vyatkin | |
* @see https://github.com/0xbb/php-sha3 | |
*/ | |
namespace Keccak; | |
final class Keccak256 | |
{ | |
const KECCAK_ROUNDS = 24; |
This file contains 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
#!/bin/bash | |
tables=`mysql -uroot jipai -e "select table_name from information_schema.tables where table_schema='jipai' and table_type='base table';" --batch --raw --skip-column-names` | |
for table in ${tables[@]} | |
do | |
echo ${table}, `mysql -uroot jipai -e "select count(*) from ${table};" --skip-column-names` | |
done |
NewerOlder