GitHub 'repository not found' error when using an access token

At my work we use Personal Access Tokens (PATs) to authenticate to a GitHub repository (as opposed to using a password). I was having trouble cloning the repository and seeing the following error After browsing Stack Overflow posts, I realized that I didn’t set the right “scopes” or permissions for my token. I generated a new token but this time I made sure to set all the scopes under “repo”....

October 4, 2021 · 1 min · Shariq Jamil

Optimizing images revisited

One of the most important workflows for our food recipe blog (JamilGhar) is image optimization. My wife uploads images to our GitHub repository and, when prodded, I run a bash script that decreases image sizes and removes extraneous information from the files. The script is a constant work in progress and I have a few posts (1,2) about it on here. Lately, I have been considering downloading the repository on a Raspberry Pi and running the script as a scheduled job....

September 27, 2021 · 3 min · Shariq Jamil

Google Search Console verification for Namecheap

Google Search Console helps with understanding your website’s performance on the search engine. To track a website there, you must first verify domain ownership using the form shown below. The form asks us to add a TXT record for our URL. You’ll need to update this through your domain management tool. Since I use Namecheap to manage my domains, I’ll add the record there. Adding TXT record in Namecheap To access DNS settings, you’ll need to...

September 15, 2021 · 1 min · Shariq Jamil

Copying or Migrating a WordPress Site

When my dad opened a new branch for his business, he opted for a new WordPress site which would be a copy of the site for the original location but with specific updated references like branch name, addresses and, phone numbers. He uses GoDaddy as his host but this guide would apply to most web hosting solutions. Copying WordPress files When migrating or copying your WordPress files, you will first need to navigate to your host’s File Manager or File Navigator....

August 9, 2021 · 3 min · Shariq Jamil

Refactoring/Find-&-Replace on a WordPress site

I help my dad maintain a WordPress site for his business. He recently opened a new location and needed a new WordPress site created for it. The only differences between the two sites are the branch name (ex. ‘Los Angeles’ instead of ‘San Diego’) and phone number (‘111-222-3333’ instead of ‘222-333-4444’). The site is not stored in version control so downloading the source code, using an IDE to run find/replace and pushing updates wasn’t a straight-forward option....

August 9, 2021 · 2 min · Shariq Jamil