In order to easily build, I made sets of patches that resolved conflicts (chacha20-poly1305, camellia-gcm, equal-preference-group).
- Required packages:
packaging-dev
,lzip
/ Preparation:sudo apt-get build-dep
openssl
oropenssl1.0
// ... snip ... | |
#include <arith_uint256.h> | |
// ... snip ... | |
class CMainParams : public CChainParams { | |
public: | |
CMainParams() { |
#include "arith_uint256.h"//Mod. | |
//---------------------------------------------------------------------------------------------------------- | |
//Mod. | |
/* | |
// calcolo del Blocco Genesi | |
// Resettiamo il valore del blocco | |
consensus.hashGenesisBlock = uint256S("0x"); | |
std::cout << std::string("Iniziamo a calcolare il blocco:\n"); | |
if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) { |
#/usr/bin/env python3 | |
""" | |
Yet another simple binary patcher | |
""" | |
patches = [ | |
{ | |
# 1 Windows x64, version 3, build 1234 | |
'file': 'file_1.bin', | |
'offset': 0x0BA950, | |
'original': b'\x00', |
/** | |
* 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"); |
'use strict' | |
var sqlite = require('sqlite3').verbose(); | |
var db = new sqlite.Database('test_db'); | |
db.getAsync = function (sql) { | |
var that = this; | |
return new Promise(function (resolve, reject) { | |
that.get(sql, function (err, row) { | |
if (err) |
<h1>Hello world!</h1> |
/** | |
* 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"); |
#!/bin/bash | |
#parameters: | |
# $1 - mp4 url | |
# $2 - start time in format hh:mm:ss.mic | |
# $3 - duration in seconds | |
# $4 - text for gif overlay | |
# $5 - output file without extension | |
if [ "$#" -ne 5 ] | |
then | |
echo "Usage: gifenc.sh \$1 \$2 \$3 \$4 \$5 |
'use strict' | |
const timeout = ms => new Promise(res => setTimeout(res, ms)) | |
function convinceMe (convince) { | |
let unixTime = Math.round(+new Date() / 1000) | |
console.log(`Delay ${convince} at ${unixTime}`) | |
} | |
async function delay () { |
In order to easily build, I made sets of patches that resolved conflicts (chacha20-poly1305, camellia-gcm, equal-preference-group).
packaging-dev
, lzip
/ Preparation: sudo apt-get build-dep
openssl
or openssl1.0