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:3972937
Created October 29, 2012 10:55
netstat "objdump -s" changes
--- netstat-fulldump 2012-10-29 11:54:57.618488200 +0100
+++ netstat.changed-fulldump 2012-10-29 11:50:38.042485423 +0100
@@ -1,5 +1,5 @@
-netstat: file format elf32-i386
+netstat.changed: file format elf32-i386
Contents of section .interp:
8048134 2f6c6962 2f6c642d 6c696e75 782e736f /lib/ld-linux.so
@@ -767,66 +767,66 @@
-- Compiling with OpenMP support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this on this machine.
-- No OMAP4 processor on this on this machine.
-- Found readline library
-- LuaJIT Target: x86
-- LuaJIT target x86
-- Found readline library
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
-- Library mkl_gf: not found
--- old/acml-ifort/PKGBUILD 2013-12-18 06:41:22.000000000 +0100
+++ new/acml-ifort/PKGBUILD 2013-12-25 16:59:28.788836594 +0100
@@ -20,7 +20,7 @@
wget ${_source}
mv "index.html?f=acml-5-3-1-ifort-64bit.tgz" "${srcdir}/index.html"
_nonce=`grep "nonce" "${srcdir}/index.html" | awk '{print $5;}' | sed "s^value=^^g" | sed 's^"^^g'`
- _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed "s^value=^^g" | sed 's^"^^g'`
+ _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed 's^value="^^g' | sed 's^"/>^^g'`
# Request actual file using acquired variables
@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
@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: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: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: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 / 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: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")