If you are developing with the wordpress theme starter kit roots/sage, and you want to specify a custom ssl certificate for the dev proxy when you run yarn start
, add the ssl certs this way:
Open \wp-content\themes\your-sage-theme\resources\assets\build\webpack.config.watch.js
Add the advanced.browserSync config after delay:
new BrowserSyncPlugin({
target,
open: config.open,
proxyUrl: config.proxyUrl,
watch: config.watch,
delay: 500,
// add this object
advanced: {
browserSync: {
https: {
key: "absolute-path-to-your/ssl-certificate.key",
cert: "absolute-path-to-your/ssl-certificate.crt"
},
},
},
}),
Create a new file called
temps
in a folder that is included in PATH (examplenano .local/bin/temps
)Give the file permission to execute:
chmod +x .local/bin/temps
To change the HDD you want to monitor, first run
lsblk -d
to see your available devices, then change the hdd variable.If HDD temperature does not work, try method to by commenting the first
echo HDD
and uncommenting the second one.