List of emojis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References | |
# - https://dietpi.com/forum/t/qemu-guest-agent-shutdown/5898/7 | |
# - https://pve.proxmox.com/wiki/Qemu-guest-agent | |
# 1. Here are the commands to run | |
apt install qemu-guest-agent \ # install guest agent | |
&& systemctl unmask systemd-logind \ | |
&& apt install dbus \ | |
&& systemctl start systemd-logind \ | |
&& systemctl status systemd-logind # check status to verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find /usr/lib/ -name *ncurses* # find ncurses library | |
$ sudo ln -s /usr/lib/libncurses.so.6 /usr/lib/libncurses.so.5 # do soft link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How many files are there in each folder | |
# https://stackoverflow.com/a/26458853 | |
for i in */ .*/ ; do | |
echo -n $i": " ; | |
(find "$i" -type f | wc -l) ; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du --exclude="/home" -x -h -a / | sort -r -h | head -30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: | |
# | |
# run this script as executable | |
# $ chmod +x update-firefox.sh | |
# run as sudo and add a firefox version | |
# $ sudo ./update-firefox.sh 95.0b10 | |
if [[ "null" = "$1" || -z "$1" ]]; then |
Node releases are fast and not-so-easy to keep up. And upgrading to the latest node version (16 as of Oct 2021) is not really that much of work. Maybe few minutes should be enough while very hopeful at upgrading the packages easily.
ℹ️ gulp 3.9 vs gulp 4 |
---|
This post is mainly for projects using gulp 3.9. If you are using gulp 4 then moving to latest node would be much easier and may not need to do any of the below. |
Source: https://1password.community/discussion/comment/596424/#Comment_596424
mv firefox-xxx.tar.bz2 /opt/
cd /opt
tar -xf firefox-xxx.tar.bz2
mv firefox firefox-developer
sudo chown -R root:root /opt/firefox-developer/firefox && sudo chmod 755 /opt/firefox-developer/firefox-bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Run in startup using | |
# /usr/local/bin/xkeysnail /home/msnoval/.xkeysnail-config.py --devices /dev/input/event4 /dev/input/event7 --quiet | |
# | |
# Run xkeysnail without sudo, https://github.com/mooz/xkeysnail/issues/64#issuecomment-600380800 | |
# $ sudo groupadd -f uinput | |
# $ sudo gpasswd -a $USER uinput | |
# $ cat <<EOF | sudo tee /etc/udev/rules.d/70-xkeysnail.rules | |
# KERNEL=="uinput", GROUP="uinput", MODE="0660", OPTIONS+="static_node=uinput" |
NewerOlder