I hereby claim:
- I am io4 on github.
- I am io4 (https://keybase.io/io4) on keybase.
- I have a public key whose fingerprint is B61C F4AD F3FE FDB5 F721 6A8A DC12 6D4F CE47 32F2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
To use it: Run "npm install node-irc" Set owner to your nick. Do "node bot.js" Wait for it to collect monney!
TODO LIST:
var run = require("./parser"); | |
run(",&[!#]|^&",false,function(o){ | |
console.log("> "+o); | |
}); |
const fs = require("fs"); | |
const child_process = require("child_process"); | |
var stdio = [ | |
fs.openSync("/dev/tty3","w+"), | |
fs.openSync("/dev/tty3","r+"), | |
fs.openSync("/dev/tty3","r+") | |
]; | |
child_process.spawn("/bin/bash", [], {stdio}); |
function packFORMAT (data){ | |
var body = BSON.serialize(data); | |
var cbody = Buffer(algorithm.compressFile(body),"binary"); | |
var final = Buffer.concat([Buffer.from("MAGIC", "binary"), Buffer.from([data.origin.majorVersion,0x4,0x99,0x60])]) | |
var dlen = body.length; | |
final = Buffer.concat([final,Buffer([dlen,dlen>>8,dlen>>16,dlen>>24],"binary")]) | |
final = Buffer.concat([final,Buffer(cbody,"binary")]); | |
return final.toString("binary"); | |
} |
function parseNumericPerms (s) { | |
var operm = parseInt(s,8); // octal | |
function i (a) { | |
return Boolean(operm&(2**(a-1))); | |
} | |
return { | |
o: {r:i(3),w:i(2),x:i(1)}, | |
g: {r:i(6),w:i(5),x:i(4)}, | |
u: {r:i(9),w:i(8),x:i(7)} | |
} |
const EventEmitter = require("events"); | |
function wrap(ev, def){ | |
ev.__events = ev._events; | |
ev._eif = {}; | |
ev._dobreak = {}; | |
ev._events = new Proxy(ev.__events, { | |
get: function(t, p, r) { | |
if(p == "newListener") return; | |
if( !ev.__events[p] || (typeof ev.__events[p] == "object" && ev.__events[p].length == 0)) { | |
return def; |
pragma solidity ^0.4.18; | |
contract ERC721 { | |
function totalSupply() public view returns (uint256 total); | |
function balanceOf(address _owner) public view returns (uint256 balance); | |
function ownerOf(uint256 _tokenId) external view returns (address owner); | |
function approve(address _to, uint256 _tokenId) external; | |
function transfer(address _to, uint256 _tokenId) external; | |
function transferFrom(address _from, address _to, uint256 _tokenId) external; | |
event Transfer(address from, address to, uint256 tokenId); | |
event Approval(address owner, address approved, uint256 tokenId); |
pragma solidity ^0.4.18; | |
contract ERC721 { | |
function totalSupply() public view returns (uint256 total); | |
function balanceOf(address _owner) public view returns (uint256 balance); | |
function ownerOf(uint256 _tokenId) external view returns (address owner); | |
function approve(address _to, uint256 _tokenId) external; | |
function transfer(address _to, uint256 _tokenId) external; | |
function transferFrom(address _from, address _to, uint256 _tokenId) external; | |
event Transfer(address from, address to, uint256 tokenId); | |
event Approval(address owner, address approved, uint256 tokenId); |