Skip to content

Instantly share code, notes, and snippets.

View ameer's full-sized avatar

Ameer Mousavi ameer

View GitHub Profile
@MrAndrewMal
MrAndrewMal / journalctl.txt
Last active March 5, 2025 13:15
How to read live-tail logs of multiple services with journalctl
#Systemd - How to read live-tail logs of multiple services with journalctl
sudo journalctl --follow _SYSTEMD_UNIT=docker.service + _SYSTEMD_UNIT=apache2.service
@meduzen
meduzen / timer.js
Last active November 24, 2023 12:56
Approach for using setInterval / setTimeout in a vue-x store
const MILLISECONDS_PER_MINUTES = 1000 * 60;
const state = {
now: (new Date()),
intervalTimer: null,
};
const mutations = {
now(state) {
state.now = new Date();