In order to easily build, I made sets of patches that resolved conflicts (chacha20-poly1305, camellia-gcm, equal-preference-group).
#!/bin/sh -e | |
OS=${OS:-`uname`} | |
if [ "$OS" = 'Darwin' ]; then | |
get_touch_time() { | |
date -r ${unixtime} +'%Y%m%d%H%M.%S' | |
} | |
else | |
# default Linux |
/** | |
* This code is from "http://dillingers.com/blog/2015/04/18/how-to-make-an-altcoin" with some changes for newer versions of Bitcoin. | |
* Use this for mine the genesis block for a new coin. | |
* Put this before "consensus.hashGenesisBlock = genesis.GetHash();" | |
*/ | |
/////////GENESIS MINING/////////////// | |
/* | |
printf("Genesis mining started\n"); | |
genesis.nNonce = 0; | |
consensus.hashGenesisBlock = uint256S("0x001"); |
// ... snip ... | |
#include <arith_uint256.h> | |
// ... snip ... | |
class CMainParams : public CChainParams { | |
public: | |
CMainParams() { |
# Script to generate a new block every minute | |
# Put this script at the root of your unpacked folder | |
#!/bin/bash | |
echo "Generating a block every minute. Press [CTRL+C] to stop.." | |
address=`./bin/bitcoin-cli getnewaddress` | |
while : | |
do |
function alertTerminal(){ | |
console.log("\007"); | |
} |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#!/bin/bash | |
# | |
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/ | |
# Adapted to work with the official image available into Mac App Store | |
# | |
# Modified to use a sparse image | |
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
hdiutil create -o /tmp/Sierra.sparseimage -size 7316m -type SPARSE -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Sierra.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build |