Skip to content

Instantly share code, notes, and snippets.

Philippe Michaud-Boudreault sinetek

Block or report user

Report or block sinetek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sinetek on github.
  • I am sinetek ( on keybase.
  • I have a public key ASAkNqOKo7Csd0mGZcqrG8J3uZRResxqIIiMKWQH8SFGBwo

To claim this, I am signing this object:

sinetek / gist:27420532e1ae578fff4c4908676328c0
Created Jan 12, 2018
Computing Merkle Tree: Example in C++.
View gist:27420532e1ae578fff4c4908676328c0
#include <QCoreApplication>
#include <QDebug>
#include <QByteArray>
#include <QCryptographicHash>
QByteArray sha256(QByteArray in)
QCryptographicHash hash (QCryptographicHash::Sha256);
View Plextor M8Pe NVMe
mint smartmontools # ./smartctl -a /dev/nvme0
smartctl 6.6 (build date Mar 11 2017) [x86_64-linux-4.4.0-53-generic] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke,
Model Number: PLEXTOR PX-256M8PeG
Serial Number: P02630104013
Firmware Version: 1.01
PCI Vendor ID: 0x14a4
PCI Vendor Subsystem ID: 0x1b4b
View gist:827c136454d25b859668430b3aefb823
Offset (0xB0),
// HDEN, 32,
// HDEP, 32,
View gist:88168de6f9c512deeeea57ccdab7befc
F1 - mute works {ps2 code?}
F2 - sound down works {ps2 code?}
F3 - sound up works {ps2 code?}
F4 - mike mute ACPI event _Q6A
F5 - brightness down ACPI event _Q15
F6 - brightness up ACPI event _Q14
F7 - camera? ACPI event _Q16
F8 - rfkill? ACPI event _Q64
View gist:93a6db1d9f325c60e071673c7e0bc82a
Libraries have been installed in:
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
View makefile for nyan sortix
package = nyancat
version = 1.5.1
tarname = $(package)
distdir = $(tarname)-$(version)
all clean check nyancat:
cd src && $(MAKE) $@
dist: $(distdir).tar.gz
sinetek / gist:aad2b00849c9dc1a61141da714715255
Last active Oct 6, 2016
PacBSD installation on Lenovo X240 laptop.
View gist:aad2b00849c9dc1a61141da714715255
This is a series of notes as of september 24, 2016.
PGP errors : turn off the PGP checking in /etc/pacman.conf
Then use pacstrap base base-devel
SigLevel = None DatabaseOptional
You can’t perform that action at this time.