Blog

CSS Variables in Tailwind

User @tailwind base; @tailwind components; @tailwind utilities; add css vairiables for coloe Assistant To add CSS variables for colors in your Tailwind CSS setup, you can define them in the `:root` selector within your CSS file. Here's an example of how you can achieve this: @tailwind base; @tailwind components; @tailwind utilities; /* Add custom CSS […]

Download DB from Remote

User in remote ssh other than aws we have dumped db into databse-backup-folder Now I want to dowload it locally to ubuntu dowloads fidler Assistant To download a database dump file from a remote server to your local Ubuntu machine, follow these steps: ### 1. Locate the File on the Remote Server Ensure you know […]

Download file via SSH

User download any file remote ssh to our system Assistant To download a file from a remote system via SSH to your local system, you can use the `scp` (secure copy) command. Here's how you can do it: ### Syntax for `scp` scp [user]@[remote_host]:[remote_path_to_file] [local_path] ### Example If your remote system details are: – **Username:** […]

MySQL Table Dump Command

User mysql dump particular table Assistant To dump a particular table in MySQL, use the `mysqldump` command with the table name. Here's the syntax: mysqldump -u [username] -p [database_name] [table_name] > [output_file].sql ### Explanation: – **`-u [username]`**: Your MySQL username. – **`-p`**: Prompts for the password. – **`[database_name]`**: The name of the database containing the […]

Run Yarn Dev on Boot

User AWS ec2 ubunutu add yarn run dev command to run every time Assistant To automatically run the `yarn run dev` command whenever your AWS EC2 Ubuntu instance starts, you can set it up as a **systemd service**. This approach ensures that your command starts on boot and restarts automatically if it crashes. Here's how […]

Image Storage in Laravel Vue

User where to put images that will used in laravel vue breeze Assistant In a Laravel Vue Breeze setup, the best location for storing images depends on their purpose and how you plan to use them in your application. Here's a guide on where to store images: ### 1. **Public Images** If the images need […]

Pull Specific Folders Git

User We have master branch in bitubcket and its cloned in hosting ssh But when we pull to hosting ssh we want only take from specific folders Assistant To pull changes from specific folders in your Bitbucket repository to your hosting environment via SSH, you can follow these steps: ### Method 1: Use Sparse Checkout […]

Create Branch with Folders

User create branch of master but only put some folders in it Assistant To create a new branch from the `master` branch and include only specific folders, you can follow these steps using Git: 1. **Check out the master branch** (if you're not already on it): git checkout master 2. **Create a new branch** (replace […]

Git Branch Push Error

User root@8456e834f38c:/var/www/html# git checkout -b minimal-pull Switched to a new branch 'minimal-pull' root@8456e834f38c:/var/www/html# git branch master * minimal-pull root@8456e834f38c:/var/www/html# git add app resources routes root@8456e834f38c:/var/www/html# git commit -m "Minimal pull" On branch minimal-pull You are in a sparse checkout with 100% of tracked files present. nothing to commit, working tree clean root@8456e834f38c:/var/www/html# git push -u […]

Restrict Git Pull Access

User allow git pull only from specific folder Assistant To allow `git pull` (or any other Git commands) from a specific folder, you can implement a few strategies depending on your requirements and setup. Here are some options: ### 1. **Using Submodules** If the specific folder should represent a separate Git repository, you can use […]