Skip to content

Instantly share code, notes, and snippets.

Avatar

Loredana Cirstea loredanacirstea

View GitHub Profile
@loredanacirstea
loredanacirstea / fairseq-torch-install.sh
Created June 12, 2017 12:36 — forked from loretoparisi/fairseq-torch-install.sh
FairSeq Torch Installation macOS
View fairseq-torch-install.sh
#torchnet
git clone https://github.com/torchnet/torchnet.git && cd torchnet
~/torch/install/bin/luarocks install rocks/torchnet-scm-1.rockspec
#torch-rnn
git clone https://github.com/facebookresearch/torch-rnnlib.git && cd torch-rnnlib/
~/torch/install/bin/luarocks make rocks/rnnlib-0.1-1.rockspec .
#argcheck
~/torch/install/bin/luarocks build https://raw.github.com/torch/argcheck/master/rocks/argcheck-scm-1.rockspec/Users/loretoparisi/torch/install/bin/luarocks build https://raw.github.com/torch/nn/master/rocks/nn-scm-1.rockspec
#moses
~/torch/install/bin/luarocks build https://raw.github.com/torch/moses/master/rockspec/moses-1.6.1-1.rockspec
View Rinkeby_account1.txt
0xd96b724286c592758de7cbd72c086a8a8605417f
View DutchA
var auction_abi = [{"constant":true,"inputs":[],"name":"num_tokens_auctioned","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"final_price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price_exponent","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"end_time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"token_multiplier","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price_start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutabi
View WatchDutchAuction.js
var auction_abi = [{"constant":true,"inputs":[],"name":"num_tokens_auctioned","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"final_price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price_exponent","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"end_time","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"bid","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"token_multiplier","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price_start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutabi
@loredanacirstea
loredanacirstea / privatekey_from_keyfile.py
Last active January 8, 2018 20:28
privatekey from keyfile
View privatekey_from_keyfile.py
import sys
from pyethapp.accounts import Account
if __name__ == '__main__':
path = sys.argv[1]
account = Account.load(path)
print("GIVF ME ALL YOUR SECRET CODEZ:")
account.unlock(raw_input())
print account.privkey.encode('hex')
View keybase.md

Keybase proof

I hereby claim:

  • I am loredanacirstea on github.
  • I am loredanacirstea (https://keybase.io/loredanacirstea) on keybase.
  • I have a public key ASA_KBsobCudZA0ljlMHrc50vQBQFP6UGgfl5Zu1-0OGQQo

To claim this, I am signing this object:

@loredanacirstea
loredanacirstea / PipeProxy.sol
Last active July 29, 2018 14:04
General proxy for calling external contract functions and returning their output. This is unsafe, work in progress.
View PipeProxy.sol
pragma solidity ^0.4.24;
contract PipeProxy {
function proxy(
address _to,
bytes input_bytes,
uint256 gas_value
)
payable
View Verifying my Peepeth
Verifying my identity on Peepeth.com 0x294da0df53491926ea2ec5e7ef5585d9975cda32
View SecurityGuidelinesIdeas.md

Security guidelines

Smart contract & protocol security rating

Based on a weighted arithmethic mean or similar of:

  • static analysis tool results (number of bugs, warnings, number of tools used)
  • tests coverage
  • number of audits performed, audit score & auditors ratings (even normal users can audit, with minimal rating per auditor)
  • time on testnets without bugs