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 / install.sh
Created August 29, 2018 09:34
ruby: rbenv install 2.2.2 on arch linux
curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | CC=/usr/bin/gcc-6 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig rbenv install --patch 2.2.2
curl --remote-name --location https://apt.puppetlabs.com/DEB-GPG-KEY-puppet
gpg --keyid-format 0xLONG --with-fingerprint ./DEB-GPG-KEY-puppet
apt-key add DEB-GPG-KEY-puppet
sed -i 's/mirror.ovh.net/deb.debian.org/g' /etc/apt/sources.list /etc/apt/sources.list.d/*
@sigmike
sigmike / rmagick_arch.bash
Created January 9, 2018 15:52
Install rmagick with imagemagick 6 on arch
sudo pacman -S libmagick6
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick
# or with bundler:
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig bundle install
@sigmike
sigmike / hashing_test.txt
Last active July 8, 2017 09:30
hashing test
hashing test
on 2 lines
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 3f9ef51..e2eb076 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -103,6 +103,9 @@ end
have_func("SSLv2_method")
have_func("SSLv2_server_method")
have_func("SSLv2_client_method")
+have_func("SSLv3_method")
+have_func("SSLv3_server_method")
require 'json'
count = 10
slice = 0
output = "8JJE8rUrYCG2c7jCozYMtn147bw5WWmoMU"
unspent = JSON.load(File.read('unspent.json'))
txs = unspent["txs"][slice * count, count]
inputs, amount = txs.reduce([[], 0]) do |(inputs, amount), tx|
[
@sigmike
sigmike / gist:43538c8651892d1462d3
Created November 11, 2015 22:19
sha256 nu 2.1.0-RC6
84d93d0a03bfcb7eaf20bdcb421548beb936af2953abc016034067e7afb8799c nu-2.1.0-RC6-linux-gitian.zip
4b6abc5cded5bfd9b757d2b1519db1222f6fbb148efbcc7d1a67e009ba316d59 bin/32/nu
1ecc03991f02ae8c117ca7d64437595069c395e8881e0a6e40f887409c60744c bin/32/nud
52ceef8a12fa214ce64cebf4873a97415c24407fba4ba01442e8c605d4a31985 bin/64/nu
40b0c1afe3fe80125e7a90fefbb561ccfb422e5834907fafea927e69ed5b05aa bin/64/nud
9d65084a06dc91c3bcb10f0bf47c995ca39e53c3ecf7680a2249c8626932f327 nu-2.1.0-RC6-win-gitian.zip
cc192d0002f8f4a50c820b735f6a70e4bc3b9e944797d0044603257f600d8b91 32/Nu-2.1.0-win-setup.exe
@sigmike
sigmike / gist:5900a26cda168fa7c003
Last active November 11, 2015 08:25
B&C 3.0.1 sha256
a1db70e6bef10c153f723fad88ce2d4fba00f3e138bbbc69608758a81c269daa bcexchange-3.0.1-win-gitian.zip
078c77ac0b8bc2c41a37aeb124f75b0488072dcaed10f28c426bd765d231fc99 32/BCExchange-3.0.1-win-setup.exe
714844d8ff4a005c5c9e49a898b1165e130a85dfc62b249181a6bba8b1522b8c 32/bcexchange.exe
79b8cb459d0d230611b033d5cf4b6284a4f5013ddd1faae47229bed16a1e732b 32/bcexchanged.exe
1ecd3f9e55715e78ab67b27401ee2f794f712aa7dd68b9f56cbadbb7a7a01b76 64/BCExchange-3.0.1-win-setup.exe
3254ef5eac204ab9a3a6e3b98183ce5879a1f4bf98785a81e683bbc2b0c31d0e 64/bcexchange.exe
cdfae0de5cdf515db32885d1cb7f567f032879ccb13a87cd7d1cae6adfb289a8 64/bcexchanged.exe
09f8acf80288aca14bacc61b2713906dcb58b1476f1b86dc9587e7c244669245 bcexchange-3.0.1-linux-gitian.zip
@sigmike
sigmike / gist:9bf40cadbd3265a92867
Last active November 11, 2015 08:27
nu 2.0.2 sha256
7904d983d68a2ef18c23cec105729ff7699311c6774fa99690039b6a66df8e1e nu-2.0.2-win-gitian.zip
efe43699b5e395d02babe69ff946d3db1de58fc788cfecc3d2ce119e5210611c 32/Nu-2.0.2-win-setup.exe
73f0e394126b22cbc20f116c78479e68dc17eb6d481855365e4157ece2c7d4e8 32/nu.exe
70741e80f42578571538ddd609d5643107008eca73d86b45133e5ba95796f767 32/nud.exe
ba3f9b1f15d7d47c993836163d4e0958b1772078b271f22199614d69a278eedd 64/Nu-2.0.2-win-setup.exe
4c42a61f30224e20ce684d228d1cc948481ee23a7c89618e11bf055d7324fcea 64/nu.exe
993ca1de95696ac6497f567a96fa1e9546be5e523a3be19f9c70fdeafd8f06d6 64/nud.exe
f2eae4c91bcfd29a557fae19564274bbd1c88614e859069103168d5439de94d3 nu-2.0.2-linux-gitian.zip