Recover GCC on Gentoo

Published on

Why? Gentoo could became completely unusable if for some reason build chain is broken. If you see “Segmentation fault” from “gcc” then probably replacing whole GCC by the version provided in Stage 3 could be a good fix. You could also use this method to install binary version of other packages, like binutils, libtool, glibc … Continue reading Recover GCC on Gentoo

LibreELEC RAID support

Published on

Why? LibreELEC will not support RAID, either hardware or software configurations, as it is considered out of scope for this project. Consider a NAS. But LibreELEC is Linux-based and it is open, so we could bring RAID support and customize it for our needs. Requirements Here are my requirements for RAID and my configuration: RAID … Continue reading LibreELEC RAID support

LibreELEC sendmail

Published on

Why? Some services have an option to send notifications by email, so we need to install a simple sendmail emulator which could forward messages to relay mail host. For example, sendmail could be used to notify you about failed drive in RAID array via google mail. Prerequisites Created google mail account. Installed entware-ng with opkg. … Continue reading LibreELEC sendmail

maps URL syntax

Published on

List of map services Google Maps URL Scheme GEO URL Scheme Apple Maps URL Scheme maps:// URL Scheme (unofficial, supported by Apple, see behind) Bing Maps URL Scheme Yandex Maps URL Scheme (application only) Tests geo: scheme test (geo marker) OS X 10.11 – doesn’t work iOS 8.4 – doesn’t work iOS 10.x – doesn’t … Continue reading maps URL syntax

Webpack + Customizable Bootstrap 4.x (SCSS)

Published on

Install Bootstrap 4 Please note, Bootstrap 4 requires peer dependencies jquery and tether (for alpha) or popper.js (for beta+). Alpha instructions: npm –save install bootstrap@next jquery tether Beta+ instructions: npm –save install bootstrap@next jquery popper.js Create local Bootstrap 4 configuration We need to import base Bootstrap 4 configuration and be able to remove some components … Continue reading Webpack + Customizable Bootstrap 4.x (SCSS)

Webpack + Customizable Foundation 6.x (Stylus)

Published on

Foundation CSS Framework comes in two versions SCSS and Stylus. As example I will show here how to setup Stylus version. Let’s say you already have style-loader, css-loader, postcss-loader, postcss, postcss-flexbugs-fixes and autoprefixer installed. Install webpack plugins for stylus: npm install stylus stylus-loader –save-dev Install framework: npm install foundation –save Create directory src/foundation which will … Continue reading Webpack + Customizable Foundation 6.x (Stylus)

Webpack + Customizable Bootstrap 3.x (LESS)

Published on

Install npm –save install bootstrap Create directory src/bootstrap Copy file from node_modules/bootstrap/less/bootstrap.less to src/bootstrap/bootstrap.less Fix import to begin with @import “~bootstrap/less/…”;. Add theme import @import “~bootstrap/less/theme.less”;. Add overrides, for example @import “variables.less”; and redefine @brand-primary. Create file src/bootstrap/bootstrap.js. Please refer to node_modules/bootstrap/dist/js/npm.js to find out what js modules could be used and in what order. … Continue reading Webpack + Customizable Bootstrap 3.x (LESS)