Skip to content

Instantly share code, notes, and snippets.

View netkiller's full-sized avatar
🎯
Focusing

Neo Chan netkiller

🎯
Focusing
View GitHub Profile
@netkiller
netkiller / logging.py
Created February 16, 2021 12:22
这是一个演示日志切割的python程序
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
#================================================================================
# 这是一个演示日志切割的python程序
# 作者: netkiller | [email protected] | http://www.netkiller.cn
#================================================================================
import time,os,signal,sys
pidfile = "/tmp/netkiller.pid"
pragma solidity ^0.4.25;
/******************************************/
/* Netkiller Standard safe token */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-09-30 */
/******************************************/
pragma solidity ^0.4.25;
/******************************************/
/* Netkiller Mini TOKEN */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-09-26 Test Token */
/******************************************/
@netkiller
netkiller / erc721-example.sol
Created September 18, 2018 06:45 — forked from aunyks/erc721-example.sol
My implementation of the ERC721 token standard. WARNING: THIS CODE IS FOR EDUCATIONAL PURPOSES. DO NOT DEPLOY TO THE NETWORK.
pragma solidity ^0.4.19;
contract ERC721 {
string constant private tokenName = "My ERC721 Token";
string constant private tokenSymbol = "MET";
uint256 constant private totalTokens = 1000000;
mapping(address => uint) private balances;
mapping(uint256 => address) private tokenOwners;
mapping(uint256 => bool) private tokenExists;
mapping(address => mapping (address => uint256)) private allowed;
mapping(address => mapping(uint256 => uint256)) private ownerTokens;
pragma solidity ^0.4.24;
/******************************************/
/* Netkiller ADVANCED TOKEN */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-08-09 airdrop & exchange */
/******************************************/
pragma solidity ^0.4.24;
/******************************************/
/* Netkiller Mini TOKEN */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-05-31 Fixed transfer bool */
/******************************************/
pragma solidity ^0.4.24;
contract ERC20 {
uint256 public totalSupply;
uint public decimals;
function balanceOf(address _address) constant public returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool success);
event Transfer(address indexed from, address indexed to, uint256 value);
}
// 0x06ef8a84274346bfbc7f01c22071fb77b78a5098
pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
pragma solidity ^0.4.24;
/******************************************/
/* Netkiller ADVANCED TOKEN */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-08-09 airdrop & exchange */
/******************************************/
library SafeMath {
pragma solidity ^0.4.24;
/******************************************/
/* Netkiller Mini TOKEN */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-05-31 Fixed transfer bool */
/******************************************/