APA106 KiCad library (including APA-106-F8 footprint and 3D model)
Wondering what APA106 addressable RGB LED are? Get some from eBay, AliExpress or SparkFun.
In case this is useful to anyone else: here is my APA-106-F8 RGB LED KiCad library, including 3D model for pretty rendering.
You are free to use/change/distribute it in any way for any purpose. Attribution would be nice but is not mandatory.
The 3D model was made with OpenSCAD based on the instructions from Christopher J. Woodall. (The only difference is that I used meshlab to convert the OpenSCAD STL to binary instead of meshconv.)
Update 2020-12-05: the original post with the instructions is no longer online, but you can still find it here.
If you are interested, here is the OpenSCAD source file.
In case this is useful to anyone else: here is my APA-106-F8 RGB LED KiCad library, including 3D model for pretty rendering.
You are free to use/change/distribute it in any way for any purpose. Attribution would be nice but is not mandatory.
The 3D model was made with OpenSCAD based on the instructions from Christopher J. Woodall. (The only difference is that I used meshlab to convert the OpenSCAD STL to binary instead of meshconv.)
Update 2020-12-05: the original post with the instructions is no longer online, but you can still find it here.
If you are interested, here is the OpenSCAD source file.



Linux - extract data from an "OLE Compound" file
As seen here, 7-Zip can extract the contents:
$ file PGPexch.ole(If the OLE data is hidden in a WINMAIL.DAT file, you may have to extract it with tnef first.)
PGPexch.ole: Composite Document File V2 Document, No summary info
$ 7z x PGPexch.ole
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)
Processing archive: PGPexch.ole
Extracting [1]CompObj
Extracting [1]Ole
Extracting CONTENTS
Extracting [3]ObjInfo
Extracting [2]OlePres000
Extracting [3]MailStream
Everything is Ok
Files: 6
Size: 104336
Compressed: 108544
$ file CONTENTS
CONTENTS: PDF document, version 1.5
$
Add Ubuntu alongside a pre-installed Windows on an HP laptop (convert primary partition to extended/logical)
Recently I wanted to install Ubuntu next to a pre-installed Windows on a brand-new HP EliteBook.
The notebook came with four primary partitions, with Windows installed on the biggest one:
- sda1 (1 GB, NTFS, label=SYSTEM)
- sda2 (457 GB, NTFS)
- sda3 (16 GB, NTFS, label=HP_RECOVERY)
- sda4 (2 GB, FAT32)
In order to install Ubuntu it's not enough to resize the Windows partition, as you cannot have more than four primary partitions. Removing one of the other partitions is a bad idea according to several reports, as it might render the system unable to start, or prevent BIOS updates. So the idea is to convert the Windows partition to a logical one in addition to resizing it. Fortunately everything you need to do that is already included on the Ubuntu installation image.
1. Use gparted to resize and move the Windows partition. I resized it to 100 GB and added 10 MB free space before it (to leave some space to create the extended partition later on). This will take a while, depending on the performance of your hard drive.
2. Use fixparts to convert sda2 to a logical partition:l then 2 , write the changes to the disk with w .
3. Restart the computer without the Ubuntu install media so that Windows fixes itself. This will take even longer than the partition resize, be patient. Restart once more to make sure the Windows install is fine.
4. Proceed with installing Ubuntu, choose the option to "install Ubuntu alongside Windows".
The notebook came with four primary partitions, with Windows installed on the biggest one:
- sda1 (1 GB, NTFS, label=SYSTEM)
- sda2 (457 GB, NTFS)
- sda3 (16 GB, NTFS, label=HP_RECOVERY)
- sda4 (2 GB, FAT32)
In order to install Ubuntu it's not enough to resize the Windows partition, as you cannot have more than four primary partitions. Removing one of the other partitions is a bad idea according to several reports, as it might render the system unable to start, or prevent BIOS updates. So the idea is to convert the Windows partition to a logical one in addition to resizing it. Fortunately everything you need to do that is already included on the Ubuntu installation image.
1. Use gparted to resize and move the Windows partition. I resized it to 100 GB and added 10 MB free space before it (to leave some space to create the extended partition later on). This will take a while, depending on the performance of your hard drive.
2. Use fixparts to convert sda2 to a logical partition:
# fixparts /dev/sdaType
3. Restart the computer without the Ubuntu install media so that Windows fixes itself. This will take even longer than the partition resize, be patient. Restart once more to make sure the Windows install is fine.
4. Proceed with installing Ubuntu, choose the option to "install Ubuntu alongside Windows".
OSMC NFS mount
It looks like you need some systemd "magic" to successfully mount an NFS share on OSMC. Adding "x-systemd.automount,noauto" to the mount options in /etc/fstab did the trick for me.