Skip to content

Instantly share code, notes, and snippets.

bob = personal.newAccount("bobs password")
john = personal.newAccount("johns password")
miner.setEtherbase(bob)
miner.start(1)
admin.sleepBlocks(2) // halts script execution until 2 blocks are mined
miner.stop()
abi = [{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"}],"payable":false,"type":"constructor"}]
contract = eth.contract(abi)
code = "0x6060604052341561000f57600080fd5b604051602080610310833981016040528080519060200190919050505b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505b61028f806100816000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806370a08
#!/bin/bash
brew update
brew upgrade
brew tap ethereum/ethereum
brew install ethereum
brew install ethereum/ethereum/solidity
wget https://gist.githubusercontent.com/mcveat/6ddbc73d1dde311c3ff46e7ec9bcf456/raw/48dc522a571642a4d42f6eb31424b1bcd482197c/genesis.json
mkdir scripts
wget https://gist.githubusercontent.com/mcveat/583a5296d6f69a1838571f47ab2b99f2/raw/abf419908f582d57542dba357dcdaa6c156ebd36/all.js -O scripts/all.js
[AutoCfg]
AutoCfgCompleted=1 ; 0=need to run 3D autocfg at startup
Version=1 ; Version of this file
[Graphics Options]
AllowTSOSelfShadows=0 ; 0=off, 1=more self-shadowing objects when shadow mapping
DNSMFilter=2 ; 0= none 1= Fetch4 2= PCF4 3= PCF4P 4= PCF8P 5= PCF16P
DNSMShadowFade=25 ; 0 to # = time to fade in night shadows in 100ths of a sec (25 default)
DNSMNumLights=3 ; 0 to 128 = Max number of shadow mapped lights at night
DNSMHeadlightsCastShadows=0 ; 0=off 1=car headlights cast shadows
@mcveat
mcveat / app.ini
Last active March 31, 2020 15:36
[Audio]
allowHardwareStreams=1 ; DirectSound: try to use hardware streams if available
channelMaskToStereo=1 ; Promote mono sounds to stereo when particular speaker is selected
devLFEAPI=1 ; 0 = None, 1 = DirectSound
devMicrophoneAPI=1 ; 0 = None, 1 = DirectSound
devSPCCAPI=1 ; 0 = None, 1 = DirectSound
devSPCCDefault=0 ; 0 = use specified device, 1 = use default device
devSPCCId={6C4401C9-7D55-467D-A1BD-3B88E7859C06} ; Identifier for the selected sound device
devSPCCName=Headphones (High Definition Audio Device) ; Name of the sound device