Skip to content

Instantly share code, notes, and snippets.

View ottodevs's full-sized avatar
🥷
Hacking

Otto G ottodevs

🥷
Hacking
View GitHub Profile
@ottodevs
ottodevs / install-yeoman-osx.md
Created February 13, 2016 01:08 — forked from rachelbaker/install-yeoman-osx.md
Instructions for installing Node NPM and Yeoman on OSX

Frontier technical checklist: (FORK ME)

  • Build Geth release 1.0.0
    • git clone https://github.com/ethereum/go-ethereum.git; cd go-ethereum
    • git checkout release/1.0.0
    • make geth
  • Clean out old test net relics (export ETH=<data dir> default data dir on OS X ~/Library/Ethereum, Linux ~/.ethereum)
    • rm -rf $ETH/{blockchain,state,extra}
    • Make a backup of your old keys cp -r $ETH/keystore /path/to/backup/keystore.backup
  • Craft the genesis block
/*
Foundation Tip Contract
Address: 0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359
Bitcoin Shapeshift Address: 1GyczDXWjFbmhx2Qau4ham3zJqNEP8UcEG (if transaction fails it is sent to 39BaMQCphFXyYAvcoGpeKtnptLJ9v6cdFY instead)
Interface: [{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"executed","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"numberOfVotes","type":"uint256"},{"name":"currentResult","type":"int256"},{"name":"proposalHash","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"executeProposal","outputs":[{"name":"result","type":"int256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"memberId","outputs":[{"name":"","type":"uint

(This is a brief summary of Ethereum's white paper)

Ethereum 101

What is Ethereum

Ethereum is a new cryptocurrency, like Bitcoin or Litecoin, that adds a number of new features. Most notably the inclusion of Agents (also known as Contracts); Independent Turing-complete programs that exist on the Ethereum blockchain. These Agents can receive Ether (Ethereum's currency) and other inputs, perform computations, hold balances, transfer Ether, and even activate other Agents.

Ethereum also attempts to fix some current issues with cryptocurenncy mining, such as rise of specialized hardware, large mining pools that aim to control the network, and the lack of reward for stale blocks, dissuading miners with weaker hardware.

Agents

@ottodevs
ottodevs / gist:4b782d0115f0ec71a97395b014291679
Created September 7, 2017 10:30 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@ottodevs
ottodevs / .description.drphil.txt
Created October 13, 2017 21:51 — forked from inertia186/.description.drphil.txt
Dr. Phil (`drphil.rb`) is reimplementation of the "Winfrey" voting bot specification. The goal is to give everyone an upvote. See: https://steemit.com/radiator/@inertia/drphil-rb-voting-bot-update-fixes
This is the Dr. Phil bot for STEEM and GOLOS. Please have a look at the README.md file.
@ottodevs
ottodevs / alexa.js
Created October 28, 2017 17:27 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
Verifying my Blockstack ID is secured with the address 195ubhkEDGcQnRsWQsszgqSBFpwprGtghx https://explorer.blockstack.org/address/195ubhkEDGcQnRsWQsszgqSBFpwprGtghx
@ottodevs
ottodevs / parity-nov6.csv
Created November 9, 2017 18:39 — forked from banteg/parity-nov6.csv
november 6 parity hack affected addresses and balances
address eth comment
0x3bfc20f0b9afcace800d73d2191166ff16540258 306276.272251399926202 polkadot
0x376c3e5547c68bc26240d8dcc6729fff665a4448 114939 iconomi
0x43ab622752d766d694c005acfb78b1fc60f35b69 21704.325572809991471999
0xc7cd9d874f93f2409f39a95987b3e3c738313925 16475.534165330527033716 musiconomi
0xdb0e7d784d6a7ca2cbda6ce26ac3b1bd348c06f8 6925
0x49eafa4c392819c009eccdc8d851b4e3c2dda7d0 4524.983603998439805528
0xbe17d91c518f1743aa0556425421d59de0372766 4360.6725
0x41849f3bd33ced4a21c73fddd4a595e22a3c2251 3238.1539315355843176
0x8655d6bf4abd2aa47a7a4ac19807b26b7609b61d 3000
@ottodevs
ottodevs / parity-nov6.csv
Created November 9, 2017 18:39 — forked from banteg/parity-nov6.csv
november 6 parity hack affected addresses and balances
0x3bfc20f0b9afcace800d73d2191166ff16540258 306276.272251399926202 polkadot
0x376c3e5547c68bc26240d8dcc6729fff665a4448 114939 iconomi
0x43ab622752d766d694c005acfb78b1fc60f35b69 21704.325572809991471999
0xc7cd9d874f93f2409f39a95987b3e3c738313925 16475.534165330527033716 musiconomi
0xdb0e7d784d6a7ca2cbda6ce26ac3b1bd348c06f8 6925
0x49eafa4c392819c009eccdc8d851b4e3c2dda7d0 4524.983603998439805528
0xbe17d91c518f1743aa0556425421d59de0372766 4360.6725
0x41849f3bd33ced4a21c73fddd4a595e22a3c2251 3238.1539315355843176
0x8655d6bf4abd2aa47a7a4ac19807b26b7609b61d 3000