Skip to content

Instantly share code, notes, and snippets.

@imantsk
Last active May 9, 2024 08:29
Show Gist options
  • Save imantsk/2bfef859cea0c6ef9ba4cfe27eb5d50a to your computer and use it in GitHub Desktop.
Save imantsk/2bfef859cea0c6ef9ba4cfe27eb5d50a to your computer and use it in GitHub Desktop.
thank me later
# LSCACHE Fix for wp-admin
<IfModule LiteSpeed>
RewriteEngine on
RewriteCond %{REQUEST_URI} wp-admin/.* [NC]
RewriteRule .* - [E=Cache-Control:no-cache]
</IfModule>
# Delete all local branches present on remote, except master and develop
git config --global alias.cleanup '!git branch --list | grep -vE "^\*|develop|main" | xargs -I {} bash -c "git branch -r --list *{}* | grep -q {} && git branch -D {}"'
# unset alias if you want to remove it
git config --global --unset alias.cleanup
#!/bin/sh
# Path to the file where the commit message is saved
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3
# Check if the commit is a merge commit
if [ "$COMMIT_SOURCE" = "merge" ]; then
# Get the current HEAD branch name
HEAD=$(git symbolic-ref --short HEAD)
# Get the autogenarated commit message
MESAGE=$(cat $COMMIT_MSG_FILE | sed "s/'/\`/g")
# clean the commit message
MESAGE=${MESAGE/ remote-tracking branch/}
MESAGE=${MESAGE/ into $HEAD/}
# Set the updated commit message
echo "chore: $MESAGE" > "$COMMIT_MSG_FILE"
fi

Name: Auto Rename Tag Id: formulahendry.auto-rename-tag Description: Auto rename paired HTML/XML tag Version: 0.1.10 Publisher: Jun Han VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag

Name: Bottom Terminal Id: fuadpashayev.bottom-terminal Description: Terminal toggle on the bottom status bar. So comfortable! Version: 0.0.5 Publisher: Fuad Pashayev VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=fuadpashayev.bottom-terminal

Name: Code Spell Checker Id: streetsidesoftware.code-spell-checker Description: Spelling checker for source code Version: 3.0.1 Publisher: Street Side Software VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

Name: Compare View Id: chekweitan.compare-view Description: Create compare view Version: 0.13.0 Publisher: useful-app VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=chekweitan.compare-view

Name: DupChecker Id: jianbingfang.dupchecker Description: Check duplicate lines and remove them if you need to keep the unique lines only Version: 0.1.7 Publisher: Jianbing Fang VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=jianbingfang.dupchecker

Name: Duplicate action Id: mrmlnc.vscode-duplicate Description: Ability to duplicate files in VS Code Version: 1.2.1 Publisher: mrmlnc VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate

Name: EditorConfig for VS Code Id: EditorConfig.EditorConfig Description: EditorConfig Support for Visual Studio Code Version: 0.16.4 Publisher: EditorConfig VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

Name: GistPad Id: vsls-contrib.gistfs Description: Manage your code snippets and developer notes using GitHub Gists and repositories. Version: 0.6.0 Publisher: Jonathan Carter VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs

Name: GitHub Actions Id: github.vscode-github-actions Description: GitHub Actions workflows and runs for github.com hosted repositories in VS Code Version: 0.26.2 Publisher: GitHub VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-github-actions

Name: GitHub Copilot Id: GitHub.copilot Description: Your AI pair programmer Version: 1.147.0 Publisher: GitHub VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot

Name: GitHub Copilot Chat Id: GitHub.copilot-chat Description: AI chat features powered by Copilot Version: 0.11.1 Publisher: GitHub VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat

Name: GitHub Pull Requests and Issues Id: GitHub.vscode-pull-request-github Description: Pull Request and Issue Provider for GitHub Version: 0.78.1 Publisher: GitHub VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github

Name: gitignore Id: michelemelluso.gitignore Description: Add file to .gitignore Version: 1.0.1 Publisher: michelemelluso VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=michelemelluso.gitignore

Name: GitLens — Git supercharged Id: eamodio.gitlens Description: Supercharge Git within VS Code — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more Version: 14.6.1 Publisher: GitKraken VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens

Name: HTML CSS Support Id: ecmel.vscode-html-css Description: CSS Intellisense for HTML Version: 2.0.6 Publisher: ecmel VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css

Name: IntelliSense for CSS class names in HTML Id: Zignd.html-css-class-completion Description: CSS class name completion for the HTML class attribute based on the definitions found in your workspace. Version: 1.20.0 Publisher: Zignd VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion

Name: Markdown Preview Github Styling Id: bierner.markdown-preview-github-styles Description: Changes VS Code's built-in markdown preview to match Github's style Version: 2.0.3 Publisher: Matt Bierner VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=bierner.markdown-preview-github-styles

Name: Prettier - Code formatter Id: esbenp.prettier-vscode Description: Code formatter using prettier Version: 10.1.0 Publisher: Prettier VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Name: Reload Id: natqe.reload Description: Add reload button to status bar right bottom Version: 0.0.6 Publisher: natqe VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=natqe.reload

Name: Tailwind CSS IntelliSense Id: bradlc.vscode-tailwindcss Description: Intelligent Tailwind CSS tooling for VS Code Version: 0.10.5 Publisher: Tailwind Labs VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss

Name: Tailwind Snippets Id: Zarifprogrammer.tailwind-snippets Description: Tailwind Snippets is a powerful extension which generates any kind of components, sections for your web page. Start using Tailwind Snippets and design your website faster than ever. Version: 1.0.2 Publisher: ZS Software Studio VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Zarifprogrammer.tailwind-snippets

Name: Todo Highlighter Id: zerefdev.todo-highlighter Description: Highlights TODO keyword and lists all todos in the side bar. Version: 1.0.1 Publisher: zerefdev VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=zerefdev.todo-highlighter

Name: YAML Id: redhat.vscode-yaml Description: YAML Language Support by Red Hat, with built-in Kubernetes syntax support Version: 1.14.0 Publisher: Red Hat VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

Name: Sort lines Id: Tyriar.sort-lines Description: Sorts lines of text Version: 1.11.0 Publisher: Daniel Imms VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Tyriar.sort-lines

Name: Bookmarks Id: alefragnani.Bookmarks Description: Mark lines and jump to them Version: 13.4.2 Publisher: Alessandro Fragnani VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks

Name: ESLint Id: dbaeumer.vscode-eslint Description: Integrates ESLint JavaScript into VS Code. Version: 2.4.4 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

Name: Inertia.js Id: nhedger.inertia Description: Visual Studio Code extension for Inertia.js Version: 0.4.3 Publisher: Nicolas Hedger VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=nhedger.inertia

Name: Path Intellisense Id: christian-kohler.path-intellisense Description: Visual Studio Code plugin that autocompletes filenames Version: 2.8.5 Publisher: Christian Kohler VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense

Name: Unsaved Files Id: wraith13.unsaved-files-vscode Description: Easy access to unsaved files for vscode. Version: 2.1.3 Publisher: wraith13 VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=wraith13.unsaved-files-vscode

Name: Material Theme Id: Equinusocio.vsc-material-theme Description: The most epic theme now for Visual Studio Code Version: 34.3.1 Publisher: Equinusocio VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme

Name: Material Theme Icons Id: equinusocio.vsc-material-theme-icons Description: Material Theme Icons, the most epic icons theme for Visual Studio Code and Material Theme. Version: 3.5.0 Publisher: Equinusocio VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme-icons

Name: phpstan Id: SanderRonde.phpstan-vscode Description: PHPStan language server and inline error provider Version: 2.2.26 Publisher: SanderRonde VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode

Name: PHP Namespace Resolver Id: MehediDracula.php-namespace-resolver Description: Import and expand php namespaces Version: 1.1.9 Publisher: Mehedi Hassan VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=MehediDracula.php-namespace-resolver

Name: PHP Debug Id: xdebug.php-debug Description: Debug support for PHP with Xdebug Version: 1.34.0 Publisher: Xdebug VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug

Name: Select Line Status Bar Id: tomoki1207.selectline-statusbar Description: Displays selected lines count in status bar Version: 0.0.2 Publisher: tomoki1207 VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=tomoki1207.selectline-statusbar

Name: PHP Intelephense Id: bmewburn.vscode-intelephense-client Description: PHP code intelligence for Visual Studio Code Version: 1.10.4 Publisher: Ben Mewburn VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client

Name: PHP Id: DEVSENSE.phptools-vscode Description: All-in-One PHP support - IntelliSense, Debug, Formatter, Code Lenses, Code Fixes, Linting, Refactoring, PHPUnit Tests, Web Server, and more. Version: 1.45.15192 Publisher: DEVSENSE VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=DEVSENSE.phptools-vscode

Name: IntelliPHP - AI Autocomplete for PHP Id: DEVSENSE.intelli-php-vscode Description: AI-assisted development for PHP. Version: 0.12.15062 Publisher: DEVSENSE VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=DEVSENSE.intelli-php-vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment