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
# Create one config file for each folder | |
# /home/whois/.unison/sample.prf | |
# Run unison in commandline with the following | |
# unison sample | |
root = /source/directory | |
root = /destination/directory | |
force = /source/directory |
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 | |
# This is to parse and update the creation date of video clips taken from | |
# Playstation5 (PS5). For example filenames such as | |
# GameTitle_20240719233528.mp4 | |
# Transferring this file via USB would not retain the creation/modified date | |
# which the below bash code would solve | |
# https://stackoverflow.com/a/43606356 | |
for filename in *.mp4; do # use mp4 or webm |
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. |
NewerOlder