Skip to content

Instantly share code, notes, and snippets.

@brossi
brossi / start.sh
Last active December 29, 2015 19:59
Peercoin Proof-of-Stake manual start script
#!/bin/bash
echo "Please ensure that you have started PPCoin-Qt before entering your passphrase."
read -s -p "Enter Peercoin wallet passphrase: " passphrase
echo "Starting ppcoind with stake minting enabled"
./ppcoind walletpassphrase "$passphrase" 9999999 true
@brossi
brossi / gist:9860807
Last active August 29, 2015 13:57
Instructions for building for OS X
# Building on OS X 10.8 (Mountain Lion)
## Getting Started
OS X 10.8 (Mountain Lion) is a full 64-bit system, we’ll save some headaches by letting our compiler know that all compilation should assume 64 bits. Also, since Mountain Lion’s default PATH is `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin`, we’ll want to change it so that Homebrew binaries will take precedence over OS X's stock binaries. To make these changes, open `~/.bash_profile` …
```
$ vim ~/.bash_profile
```
@brossi
brossi / gist:11116898
Created April 20, 2014 15:30
PPCoin-Qt.app error stack
Process: PPcoin-Qt [1626]
Path: /Users/USER/*/PPcoin-Qt.app/Contents/MacOS/PPcoin-Qt
Identifier: com.yourcompany.PPcoin-Qt
Version: 0
Code Type: X86-64 (Native)
Parent Process: launchd [111]
User ID: 501
Date/Time: 2014-04-18 09:48:05.378 -0700
OS Version: Mac OS X 10.8.2 (12C54)
@brossi
brossi / gist:11119668
Created April 20, 2014 17:21
PeerUnity Compilation Log from QT (OS X 10.8 w/MacPorts)
23:22:42: Running steps for project bitcoin-qt...
23:22:42: Starting: "/opt/local/bin/qmake" /Users/cryptobuild/crypto/Peerunity/bitcoin-qt.pro -r -spec macx-g++ CONFIG+=debug CONFIG+=x86_64
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with UPNP supportProject MESSAGE: qtAddLibrary: found framework QtDBus in directory /opt/local/Library/FrameworksProject MESSAGE: qtAddLibrary: found framework QtTest in directory /opt/local/Library/FrameworksProject MESSAGE: qtAddLibrary: found framework QtGui in directory /opt/local/Library/FrameworksProject MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/FrameworksProject MESSAGE: qtAddLibrary: found framework QtGui in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/Frameworks
23:22:44: The process "/opt/local
@brossi
brossi / gist:11333903
Created April 26, 2014 23:33
osxcross-build.log
found SDK version 10.9 at tarballs/MacOSX10.9.sdk.tar.bz2
verified at tarballs/MacOSX10.9.sdk.tar.bz2
Building OSXCross toolchain, Version: 0.7
OS X SDK Version: 10.9, Target: darwin13
Minimum targeted OS X Version: 10.7
Tarball Directory: /media/sf_OneDrive/osxcross/tarballs
Build Directory: /media/sf_OneDrive/osxcross/build
Install Directory: /media/sf_OneDrive/osxcross/target
@brossi
brossi / gist:11399380
Created April 29, 2014 12:51
Top output from Bitpar's build of PPCoin-Qt.app (v0.4) for OSX
Processes: 103 total, 3 running, 4 stuck, 96 sleeping, 482 threads[1;125H22:08:19
[2dLoad Avg: 2.04, 2.06, 1.80 CPU usage: 52.94% user, 47.5% sys, 0.0% idle SharedLibs: 12M resident, 2140K data, 0B linkedit.
[3dMemRegions: 16420 total, 915M resident, 53M private, 284M shared.
[4dPhysMem: 1034M wired, 1648M active, 3126M inactive, 5808M used, 2383M free.
[5dVM: 244G vsize, 1046M framework vsize, 406398(0) pageins, 0(0) pageouts. Networks: packets: 7001584/8312M in, 2830764/1684M out.
[6dDisks: 388232/32G read, 2995925/77G written.
[8dPID COMMAND[21G%CPU TIME #TH #WQ #PORT #MREG RPRVT RSHRD RSIZE VPRVT VSIZE PGRP PPID STATE UID FAULTS
[9d13139 top[9;21H0.0 00:00.08 1/1 0 20+ 29+ 1160K+ 288K+ 1828K+ 17M+ 2376M+ 13139 13101 running 0 1346+
[10d13138 QuickLookSat 0.0 00:00.37 2 1 55+ 145+ 2036K+ 7564K+ 9052K+ 31M+ 2415M+ 13138 1 sleeping 501 3821+
[11d13137 taskgated 0.0 00:00.03 3 1 29+ 55+ 716K+ 3700K+ 2672K+ 29M+ 2406M+ 13137 1 sleep
@brossi
brossi / gist:93f49dbf0b4ecc2c44d5
Created May 2, 2014 02:53
OS X 10.9 Peerunityd build failure
/bin/sh ../share/genbuild.sh obj/build.h
llvm-g++ -g -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wformat-security -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DHAVE_BUILD_INFO -I"/Users/benrossi/OneDrive/Peercoin-forks/src" -I"/Users/benrossi/OneDrive/Peercoin-forks/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -o ppcoind -L"/opt/local/lib" -L"/opt/local/lib/db48" obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/script.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kernel.o -dead_strip -ldb_cxx-4.8 -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_thread-mt -lssl -lcrypto -lz -lminiupnpc
Undefined symbols for architecture x86_64:
"typeinfo for std::codecvt<wchar_t, char, __mbstate_t>", referenced from:
typeinfo for boost::filesystem::detail::utf8_codecvt_facet in libboost_filesy
@brossi
brossi / gist:1800bb7cb9e6887be926
Created June 3, 2014 13:57
Reported issue - crash log for Peerunity 0.1.0 on OS X 10.9.2
Process: Peerunity [53493]
Path: /Applications/Peerunity.app/Contents/MacOS/Peerunity
Identifier: com.yourcompany.Peerunity
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [392]
Responsible: Peerunity [53493]
User ID: 501
Date/Time: 2014-06-03 15:50:42.716 +0200
@brossi
brossi / gist:f93e6cb4856fc661f2b6
Created June 3, 2014 14:30
Crash report for OSX 10.8.5
Process: Peerunity [357]
Path: /Applications/Peerunity.app/Contents/MacOS/Peerunity
Identifier: com.yourcompany.Peerunity
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [124]
User ID: 501
Date/Time: 2014-06-04 00:27:36.689 +1000
OS Version: Mac OS X 10.8.5 (12F45)
@brossi
brossi / gist:6ce76067263d16591e06
Created September 4, 2014 14:05
Peerunity v0.1.1 - Gitian Compilation Error (Windows)
+ set -e
+ export LANG=en_US.UTF-8
+ LANG=en_US.UTF-8
+ export LC_ALL=en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ umask 002
+ export OUTDIR=/home/ubuntu/out
+ OUTDIR=/home/ubuntu/out
+ GBUILD_BITS=64
+ MAKEOPTS=(-j2)