Skip to content

Instantly share code, notes, and snippets.

View aslamdoctor's full-sized avatar

Aslam Doctor aslamdoctor

View GitHub Profile
@aslamdoctor
aslamdoctor / CLAUDE.md
Created August 17, 2026 13:56
Claude Config - Clarifying questions

Clarifying questions

When you need to ask me a small clarifying question (not requiring open-ended explanation), always use the AskUserQuestion tool so I get interactive, clickable options instead of a plain text list.

  • Provide 2–4 concrete, mutually exclusive options; the tool adds an "Other" free-text option automatically.
  • If you recommend one, put it first and append "(Recommended)".
  • Use multiSelect: true when several answers can apply.
  • Batch related questions into a single call (up to 4) instead of asking one at a time.

Only ask as free-form text when the answer genuinely can't be reduced to a short set of choices.

@aslamdoctor
aslamdoctor / config
Created April 17, 2026 03:04
Newsboat Config
#nano ~/.newsboat/config
browser "open %u"
#a theme inspired by the GTK Adapta-Maia theme.
#works really well on a stock Manjaro.
#
#for "info" field, both "color35" and "color36" match well.
@aslamdoctor
aslamdoctor / speed-up-claude-code-cli-tools.md
Created March 11, 2026 08:54 — forked from cynthiateeters/speed-up-claude-code-cli-tools.md
Speed up Claude Code with modern CLI tools (bun, ripgrep, fd, sd, jq, parallel)

Speed up Claude Code with modern CLI tools

Claude Code runs shell commands constantly — finding files, searching code, processing JSON, running scripts. The default Unix tools (find, grep, sed, node) work, but modern replacements written in Rust and Zig are significantly faster.

Installing these tools and telling Claude Code to prefer them can noticeably speed up your workflow.

The tools

Default tool Modern replacement Speedup Purpose
@aslamdoctor
aslamdoctor / del_vscode_mac.md
Created September 25, 2024 16:32 — forked from karansinghgit/del_vscode_mac.md
How to completely uninstall VSCode on Mac
  1. Close and Quit VSCode

  2. Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)

  3. Execute these commands in any order. The paths might be slightly different for you.

rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/

rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
@aslamdoctor
aslamdoctor / steps.md
Created May 4, 2024 14:35
Switch PHP version on Mac using Brew
  1. Check if grep is installed

grep --version

If it returns below

grep (BSD grep, GNU compatible) 2.6.0-FreeBSD

  1. Then install it using brew
@aslamdoctor
aslamdoctor / fix-mobile-nav-height.js
Created April 5, 2024 20:33
Fix 100vh issue on mobile
// First we get the viewport height and we multiple it by 1% to get a value for a vh unit
let vh = window.innerHeight * 0.01;
// Then we set the value in the --vh custom property to the root of the document
document.documentElement.style.setProperty('--vh', `${vh}px`);
// We listen to the resize event
window.addEventListener('resize', () => {
// We execute the same script as before
let vh = window.innerHeight * 0.01;
document.documentElement.style.setProperty('--vh', `${vh}px`);
@aslamdoctor
aslamdoctor / cookieHelper.js
Created February 20, 2024 16:30
Javascript Cookie Helper
// Cookie helper functions
const CookieHelper = {
/**
* Set Cookie.
*
* @param {string} name
* @param {string} value
* @param {string} minutes
*/
setCookie( name, value, minutes ) {
server {
listen 80;
listen [::]:80;
server_name mysite.local;
location / {
proxy_pass http://localhost:3000/;
}
}
@aslamdoctor
aslamdoctor / settings.json
Last active April 19, 2023 07:51
PHPCBF VSCode Settings for WordPress
# For Normal Theme
{
"phpsab.standard": "WordPress",
"phpsab.executablePathCBF": "/Users/aslamdoctor/.composer/vendor/bin/phpcbf",
"editor.formatOnSave": true,
"scss.validate": false,
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@aslamdoctor
aslamdoctor / wp-delete-spam-users.php
Created January 17, 2023 09:03
Delete Spam Users from WordPress
<?php
add_action(
'init',
function() {
if ( isset( $_GET['cleanup_spams'] ) ) {
global $wpdb;
$query = "SELECT *
FROM $wpdb->users
WHERE user_email LIKE '%.be'";
$users = $wpdb->get_results( $query );