Skip to content

Instantly share code, notes, and snippets.

Fabian Vogelsteller frozeman

Block or report user

Report or block frozeman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wallet3.js
//sol Wallet
// Multi-sig, daily-limited account proxy/wallet.
// @authors:
// Gav Wood <>
// inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a
// single, or, crucially, each of a number of, designated owners.
// usage:
// use modifiers onlyowner (just own owned) or onlymanyowners(hash), whereby the same hash must be provided by
// some number (specified in constructor) of the set of owners (specified in the constructor, modifiable) before the
// interior is executed.
View gist:3ba4fec1c4ba3ce7a9f8
./geth --rpccorsdomain "*" --rpc --networkid 8545 --minerthreads "1" --datadir <somePath>/testChain console
> admin.addPeer('enode://413a0d7a9b9e727dd7f20938401e2aa569549e075b1341eb4cc5073ee99fe8251b9d7d2be6d4a15bcc28c698589f17d0b2cfadda54a0f1aa6d0627082fefc5cb@')
frozeman / nodescript.js
Last active Aug 29, 2015
Ether balance distribution
View nodescript.js
var addresses = {
"3282791d6fd713f1e94f4bfd565eaa78b3a0599d": {
"balance": "1337000000000000000000"
"17961d633bcf20a7b029a7d94b7df4da2ec5427f": {
"balance": "229427000000000000000"
"493a67fe23decc63b10dda75f3287695a81bd5ab": {
"balance": "880000000000000000000"
frozeman /
Last active Sep 9, 2015
eth_isSyncing proposal

This method should notify a dapp when the node is syncing (e.g. importing more than 10 blocks), so that dapps can stop asking nodes or process incoming blocks for performance reasons.

We might add fields in the future for state db syncing.


Returns an object object with data about the sync status.

View OfflineCollections.js
DB = {};
DB.movies = new Meteor.Collection('movies');
DB.ratings = new Meteor.Collection('ratings');
* OfflineCollections, works as wrapper to easily clean your local collections
OfflineCollections = (function(){
frozeman / gist:8206698
Last active Jan 1, 2016
jQuery testing stubs. Where the stub can be overwritten e.g. by setting jQueryStub.prototype.find = ...;
View gist:8206698
var $, jQueryStub;
(function () {
"use strict";
var emptyFunction = function () {
var selfReturn = function(){
return new jQueryStub();
View gist:59da4a8213ff5a6c1bf7
Process: Electron [17945]
Path: /Users/USER/Sites/*/
Identifier: com.ethereum.wallet
Version: 0.3.8 (0.3.8)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Electron [17945]
User ID: 501
Date/Time: 2016-01-07 17:04:31.448 +0100
frozeman / contract.js
Last active Feb 17, 2016
New contract object
View contract.js
// un"addresses" contract object
var myContrac2 = new web3.eth.contract(abi)
myContrac2.address = '0x12345678...'; // add address later
// initiate with address
var myContrac = new web3.eth.contract(abi, address)
// deploy contract
eventemitter = new web3.eth.contract(abi).deploy(param1, {data: '0x23456'});
frozeman / addressfixes.js
Last active Apr 2, 2016
Fixes the wallet links in the ethereum wallet
View addressfixes.js
// Open the wallet console: Menu -> Develop -> Toggle console ...
// Run the following script
_.each(Wallets.find().fetch(), function(item){
Wallets.update(item._id, {$set: {address: item.address.toLowerCase()}});
_.each(CustomContracts.find().fetch(), function(item){
CustomContracts.update(item._id, {$set: {address: item.address.toLowerCase()}});

Keybase proof

I hereby claim:

  • I am frozeman on github.
  • I am frozeman ( on keybase.
  • I have a public key whose fingerprint is 3452 1ABF 002E C4CF 9F51 BB5F E51E ADA7 7F1A 4124

To claim this, I am signing this object:

You can’t perform that action at this time.