Linux

Installing doctl on Ubuntu

Go to https://github.com/digitalocean/doctl/releases Download latest version for linux 64 bit. cd /usr/local/src wget https://github.com/digitalocean/doctl/releases/download/v1.7.2/doctl-1.7.2-linux-amd64.tar.gz tar xvf doctl-1.7.2-linux-amd64.tar.gz rm -f doctl-1.7.2-linux-amd64.tar.gz mv doctl…

Firefox profile

Here is shortcut i use for my firefox profile boby@hon-pc-01:~$ cat ~/.local/share/applications/firefox-vpn.desktop [Desktop Entry] Version=1.0 Name=Firefox VPN Comment=Browse the World Wide Web…

time

Timestamp in Bash Script for timestamp like 2020-01-23 15:12:45, use For file name Time stamp in PHP Taking backup Alaram/stopwatch Time Tracking

ntpdate

ntpdate allows you to update server time with ntp servers. To install, run apt install ntpdate To update server time, run ntpdate…

locale-gen

To generate locale-gen en_US.UTF-8 If you get error setlocale: LC_ALL: cannot change locale echo “LC_ALL=en_US.UTF-8” >> /etc/environment echo “LANG=en_US.UTF-8” > /etc/locale.conf echo…

swap

First create a 2 GB file dd if=/dev/zero of=/swapfile bs=1M count=4096 For 8 GB, use count=8192. You can also use fallocate command…