Vue Replace Vuex with Vue.observable From the beginning when Vue was v0.12 (5 years ago) and Vuex didn’t exist yet and I had to make own “global” state storage. I had to use $root to access the properties from any component with ease and Crossroads.js [https:
Ghost Edit your Ghost Post with Shortcut Ctrl+Shift+Alt+Click A quick way to edit your Post by clicking an Post element with keyboard combination that redirects you to Admin post editor.
Pop!OS Set Default HDMI audio on PopOS Guide to find out which audio on your HDMI device is running and set which ones as default.
linux Generate init.d script for Node apps For people that wants to run node on start-up on Debian/Ubuntu.
Front end Create quick prototype with Vue and Less (2020) We’re been bombarded with building tools such as Webpack, Gulp and Grunt and what not, but you still want to create something quick, without having an advanced editor by hand and you just want to start on the fly. Ghost blog has a
Ghost Make Disqus comment counting work on Infinite Scroll With MutationObserver you can check which child-elements been mutated
docker Guide to install Nginx + Php + MariaDB + Phpmyadmin in Docker (XNMP-VHOST) (XNMP-VHOST) Replace MAMP/XAMP with Docker Containers and keep you system clean.
git GIT: When files are deleted in some commit in the past Find the last commit that affected the given path. As the file isn't in the HEAD commit, this commit must have deleted it. git rev-list -n 1 HEAD -- Then
docker Create NPM Developer environment in Docker Docker benefits of course having a container without affecting your system installs. In short. Containerized environment using Docker, in this case with NPM. Get Docker [https://www.docker.com/products/overview] Check this github [https://github.com/HariantoAtWork/docker-npm-working-env] Setup Create working directy mkdir
Node Use global variable for socket.io While I have been searching for different alternatives to emit or broadcast with socket.io [http://socket.io], the solution is quite simple. Use global variable to access it. Global variable For example in my www (or server.js) file. app.set('port', port)