Skip to content

Instantly share code, notes, and snippets.

View harsxv's full-sized avatar
Turn cof​​​​​​fee into server uptime​

Harry Suryapambagya harsxv

Turn cof​​​​​​fee into server uptime​
View GitHub Profile
@harsxv
harsxv / whmcs_mark_resolved.md
Last active April 17, 2023 06:34
WHMCS: Mark Resolved all Queued Modules

WHMCS does not provide a button to mark all modules recently queued as resolved yet. They just provide the Retry All button.

However, if you wish to automate this process, you may use your browser's console to run the following JavaScript:

const buttons = document.querySelectorAll('button.resolve[data-entry-id]');

for (let i = 0; i < buttons.length; i++) {
  buttons[i].click();
}
@harsxv
harsxv / repo-reset.md
Created November 16, 2018 17:45 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A