Skip to content

Instantly share code, notes, and snippets.

Avatar

Philippe Michaud-Boudreault sinetek

View GitHub Profile
@sinetek
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
```
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
View gist:93a6db1d9f325c60e071673c7e0bc82a
Libraries have been installed in:
/usr/local/lib
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 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:827c136454d25b859668430b3aefb823
Offset (0xB0),
// HDEN, 32,
// HDEP, 32,
DEN0
DEN1
DEN2
DEN3
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, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: PLEXTOR PX-256M8PeG
Serial Number: P02630104013
Firmware Version: 1.01
PCI Vendor ID: 0x14a4
PCI Vendor Subsystem ID: 0x1b4b
@sinetek
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 keybase.md

Keybase proof

I hereby claim:

  • I am sinetek on github.
  • I am sinetek (https://keybase.io/sinetek) on keybase.
  • I have a public key ASAkNqOKo7Csd0mGZcqrG8J3uZRResxqIIiMKWQH8SFGBwo

To claim this, I am signing this object:

View gist:1510e5b3324e674575e8db1cf20bb1c9
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 3rdmodem -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 3rdmodemnvm -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 3rdmodemnvmbkp -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 bootfail_info -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 cache -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 cust -> /dev/block/mmcblk0p53
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 dfx -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 dto -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 dts -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 2020-02-25 16:33 erecovery_kernel -> /dev/block/mmcblk0p22
You can’t perform that action at this time.