How to Purge Cache on Cloudflare for a Single File

Sometimes you push an update to a CSS file, a script, or an image, and Cloudflare keeps serving the old version to visitors. Purging your entire site cache is overkill (and slows things down while it rebuilds).

Here is how you can clear the cache for a single specific file directly from your Cloudflare dashboard.

[…]

Read More

How to Bulk Delete Your Tweets on X Using the Browser Console

If you want to clean up your X / Twitter account, deleting tweets one by one can take forever. There are paid tools that can do this, but you can also automate the process directly from your browser using JavaScript and the browser console.

Before You Start This method works directly in your […]

Read More

Fix “X cannot be loaded because running scripts is disabled on this system” error

I tried running npm run dev in Windows PowerShell and got this error:

npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

Of course when I went to that Microsoft link there was tons of info and

[…]

Read More

Can you copy SSH keys to new PC? (Windows or Linux)

You dont need to generate new SSH keys when switching or upgrading to new PC.

Copying SSH Keys to a New PC: Windows and Linux On Linux: Locate Your SSH Keys: Your keys are usually in the ~/.ssh/ directory. ls -al ~/.ssh Copy the Keys: Use a USB drive or a secure transfer method. If […]

Read More

Should I create a new Git branch locally or on GitHub first?

It’s generally better to create a new Git branch locally first and then push it to GitHub. Here’s why:

1. Create the Branch Locally First

Creating a branch locally gives you full control and flexibility before sharing it with others. The workflow typically looks like this:

Create the branch locally: git checkout -b new-branch-name Work […]

Read More

How to rename GitHub repository

To rename a GitHub repository, follow these steps:

Go to the repository on GitHub: Log in to your GitHub account. Navigate to the repository you want to rename. Access the repository settings: Click on the “Settings” tab at the top of the repository page. Rename the repository: In the “General” section, look for the “Repository […]

Read More

What is `protected $fillable` in a Laravel model?

In Laravel, the `protected $fillable` property is used to define an array of attributes that are mass assignable. This means these attributes can be assigned using mass-assignment techniques, such as when creating a new model instance or updating an existing one using the `create` or `update` methods.

Mass Assignment

Mass assignment is a way to

[…]

Read More