Tips

How to Configure Timezone Settings on Ubuntu

How to Configure Timezone Settings on Ubuntu

In this guide, we’ll walk you through the step-by-step process of setting the timezone on Ubuntu to manage your Linux Virtual Private Server (VPS) effectively. Ensure you log in as a root user to perform the following actions. Using the…

A Guide to Setting Up ZSH Aliases on Linux and Mac

A Guide to Setting Up ZSH Aliases on Linux and Mac

For those who rely on Linux, the terminal is a powerful ally, aiding in tasks like file system navigation, package updates, and installations. However, lengthy commands can be time-consuming, especially for frequent tasks. This is where the magic of command…

Laravel: Redirect back to previous page after login

Laravel: Redirect back to previous page after login

In laravel 10 you can achieve that with breeze installed through the below code in the AuthenticatedSessionController use Illuminate\Support\Facades\Redirect; class AuthenticatedSessionController extends Controller { /** * Display the login view. * * @return \Illuminate\View\View */ public function create() { if…

How to connect without password using SSH (passwordless)

How to connect without password using SSH (passwordless)

SSH Secure Shell Protocol is a cryptographic protocol for secure data connection and remote command execution. From the terminal, we create an ssh key pair through issuingand: ssh-keygen Press Enter three times until the command finishes. A public key file “~” and a private…

How to copy data from local to remote server via rsync

How to copy data from local to remote server via rsync

To copy files from one remote location to a local server  using rsync: rsync -av user@host:/path/to/directory /path/to/directory Flags: -a: Archive, syncs recursively and preserves symbolic links, special and device files, modification times, groups, owners, and permissions. -v: Verbose, prints information…