Skip to content

Instantly share code, notes, and snippets.

View bilaliqbalr's full-sized avatar
🎯
Focusing

Bilal Iqbal bilaliqbalr

🎯
Focusing
View GitHub Profile
@bilaliqbalr
bilaliqbalr / queryWooCommerce.py
Created March 31, 2023 12:56 — forked from verygoodplugins/queryWooCommerce.py
Python script for querying the WooCommerce REST API using ChatGPT
import openai
import requests
import re
import json
openai.api_key = "X"
# Define WooCommerce credentials.
site_url = "https://yoursite.com/"
@bilaliqbalr
bilaliqbalr / certbot.sh
Created February 8, 2022 11:57 — forked from fideloper/certbot.sh
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
@bilaliqbalr
bilaliqbalr / gh-deploy-clone.sh
Created November 4, 2021 09:19 — forked from blvz/gh-deploy-clone.sh
Creates a deploy key and clones the repository.
#!/usr/bin/env bash
read -r -d '' usage << EOM
Usage:
gh-deploy-clone user/repo [ENVIRONMENT]
EOM
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1
@bilaliqbalr
bilaliqbalr / gitPermissionFix.txt
Created August 3, 2017 10:20
Fix git Permission denied (publickey) issue
First of all you have to create an SSH key, like so,
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
This creates a new SSH key, using the provided email as a label.
After that you will get a message "Enter a file in which to save the key". Give it the location and press Enter.
After that you will be ask for passphrase. It is optional and you can leave it as empty.
Now, copy the content of newly generated .pub file and paste it to