Skip to content

Instantly share code, notes, and snippets.

View sigmike's full-sized avatar

Michaël Witrant sigmike

  • Ouvrages
  • France
View GitHub Profile
@sigmike
sigmike / gist:246ecf70090e92b5a746
Created November 11, 2015 07:26
nu 2.0.2-RC1 sha256
31bab0c4bdc785fc3f1e12ee7cd033a51dc29855f015730f3f305adf0338205 32/Nu-2.0.2-win-setup.exe
5394f07084d26634405b9490bf9d426432c6a3869e2a61af1ac2d808405060be 32/nud.exe
db4340cf510de2fa1f6b6306c6ee96c53063b900f180fcfeaf296834ec068b3b 32/nu.exe
35d2bb2f4c856a9409566d924e2a129e006a6c38a4f8a79847c704ef95bef377 64/Nu-2.0.2-win-setup.exe
d434546f7aff3cce793883e8938716a811423ecb45dcb42e82902e846dbcf0bf 64/nud.exe
a6342faab187bc6180c936846053cdb24e762faa1620a4a7fec859078ad522ea 64/nu.exe
e3d5b21dabdd0ee4919b1b2f3789c66e0db23f13d9011fd1bd5a91a038a217a6 bin/32/nu
c960b89527f4718f392ea99dd4af5a22b1dfd79ab1fb5050fc259c7d2460eabc bin/32/nud
024e44e7f3b7fb3360906fac005c396f08c546851417ee9076344a7c8223ef8d bin/64/nu
@sigmike
sigmike / gist:b1b8a7493fc5f056edb2
Created November 10, 2015 23:41
b&c 3.0.1-RC1
2acd23eb37905a3808c2fe8677b1ca03098882adc44a9fb47d7b9bbc0716501a 32/BCExchange-3.0.1-win-setup.exe
d9224460c0e1fe0f6846b83587b2674727805fe233ea0d70264e718284745dcb 32/bcexchanged.exe
eabc55f4dbe805a2c07d4e0c2fbf1176669ff150f9c17aefa3b20597c753d8ce 32/bcexchange.exe
19ed08aa1583ed3adb15402226a63e728021b824148d331901b8aa69e5b61e52 64/BCExchange-3.0.1-win-setup.exe
56ccc20c349670fce39c198be7bf8b1c4d9e9c8d652b79f0f34443b2b88649de 64/bcexchanged.exe
cd0e7ad54288f8d51807822bcc5584b7394eaadad0f671ede5ea8dc7bba70c41 64/bcexchange.exe
3e133288a60779276c6106610ff71dde999582c33444159c45915c7adb3b2a51 bin/32/bcexchange
29d49889c2b08c25158bc9f7e0307e580dc0e7f769f5ae45a23121a2c7a308b8 bin/32/bcexchanged
dea5008a3f7fd3c93d2406dc5be81d32e6ba5e86629181c0bec6d680455d62b9 bin/64/bcexchange
@sigmike
sigmike / peercoin_time_drift_calculation
Last active August 29, 2015 14:23
peercoin time drift calculation
nTargetTimespan = 7 * 24 * 60 * 60
nActualSpacing = (1 * 60 + 50) * 60
bnNew = 100.0
nTargetSpacing = 10 * 60
nInterval = nTargetTimespan / nTargetSpacing
bnNew *= ((nInterval - 1) * nTargetSpacing + nActualSpacing + nActualSpacing)
bnNew /= ((nInterval + 1) * nTargetSpacing)
puts bnNew
@sigmike
sigmike / gist:5635b6b41ef14d923e0f
Last active August 29, 2015 14:23
ruby ip seed bitcoin
"178.33.22.32".split(".").reverse.map {|x| "%02x" % x.to_i }.join
=> "201621b2"
puts a.scan(/0x(\w+)/).flatten.map { |x| "* " + x.scan(/../).map { |a| a.to_i(16) }.reverse.join(".") }.join("\n")
@sigmike
sigmike / getparkvotes
Created April 18, 2015 08:00
getparkvotes
{
"B" : {
"10" : {
"blocks" : 1024,
"estimated_duration" : "17.1 hours",
"votes" : [
{
"rate" : 0.0,
"annual_percentage" : 0.0,
"sharedays" : 9630.69540509,
@sigmike
sigmike / gist:f24f87a81f8f69d788e0
Created March 14, 2015 07:35
compressed private key versions
0: 111111111111111111111111111111111DqPrHT
1: 9adaAMuB9v8yX1mZ5PtoB6VFSCeqRGjASd8ZTM6VUkiHLQJoxa7
2: JAG9KioMJqGx32Y79nnbMByVsQJfqYTKtFG7uhByxWRZfX1dbQR
3: SjtiV5hXTkQvZ3JfEBgPXHTkJbxWFpBVKsPgN3HUSG8qzkDk8fP
4: bKXHeSbhcfYu545DJaaBhNwzjocLg5uemVXEpPNxv1r8KwagfRi
5: ju9rooVsmagsb4qmNyTysUSFB1GB6MdpD7eoGjUTPmZQf9gFK7t
6: tUnRyAQ3vVpr75cKTNMn3ZvVcCv1WdMyejnMj5ZwsXGgzKDPJrA
7: 234R18XJE5Qxpd6NsXmFaDfQk3QZqvu696MuvBRfSMGyyKbDnSkJ
8: 2Be3aHtCQEL6o979RcA9NPktzUcDgMApJXz3Udmkvq2hFeo5n95A
9: 2LDg9TF6aPFEmf7uygZ3AZrPEuosWmSYTycB367rRJnQXyvifNfk
@sigmike
sigmike / gist:918559925af21fc4bd11
Created January 6, 2015 16:52
GetStakeModifierSelectionIntervalSection
MODIFIER_INTERVAL_RATIO=3
nModifierInterval=6 * 60 * 60
p (0..63).map { |nSection| (nModifierInterval * 63 / (63 + ((63 - nSection) * (MODIFIER_INTERVAL_RATIO - 1)))) }
@sigmike
sigmike / gist:ccff632bf3771ec9f762
Last active August 29, 2015 14:07
current park votes
{
"B" : {
"11" : {
"blocks" : 2048,
"estimated_duration" : "1.4 days",
"votes" : [
{
"rate" : 0.00000000,
"annual_percentage" : 0.00000000,
"sharedays" : 5806.99939815,
@sigmike
sigmike / gist:145cf7c2eee3c4f29211
Created May 22, 2014 12:16
peershares proposal

I think we can make things easier and not require any compilation (we may even build a website that makes all the steps for you after you fill a simple form). For example:

When you download and run Peershares it will calculate a genesis block at the current time. Then it will write a config file in the executable directory (not in the Application Data directory) with this:

  • the genesis block data (timestamp, hash, merkle root and nonce)
  • randomly chosen port and RPC port
  • and a randomly chosen datadir name.

Then the user can open this config file and change the ports and datadir name if he want to. He may add stable seeds with other "addnode" commands. Then he renames the executables to something like MyCompanyShares-GUI.exe and MyCompanyShares-Daemon.exe.

@sigmike
sigmike / gist:9295530
Created March 1, 2014 19:15
Bitcoin address versions
0: 1111111111111111111114oLvT2
1: QLbz7JHiBTspS962RLKV8GndWFwjA5K66
2: ogCyDbaRMvkdsHB3qfdyFYaG1WtWyNoVK
3: 2D1oxKts8YPdTJRG5FzxTNpMtWmqBnjrht
4: 2cMQwSC9qirWGjZM6gLGwW69X22mx9jRA9
5: 31h1vYVSYuKP6AhS86fbRdMw9XHieotbST
6: 3R2cuenjG5nFubqX9Wzuukdin2YfLYZyD1
7: 3pNDtm61yGF8j2ycAwLEPsuWQXoc2sA4Km
8: 4DhpssPJgSi1YU7hCMfYt1BJ334YnPXXvB
9: 4d3RrygbPdAtMuFnDmzsN8T5fYKVUjFu7m