Skip to content

Instantly share code, notes, and snippets.

@mukeshwani
mukeshwani / vscode-settings.json
Created September 16, 2020 03:10
vs code settings for dev machine
{
"explorer.openEditors.visible": 0,
"editor.snippetSuggestions": "top",
"emmet.showAbbreviationSuggestions": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"workbench.colorTheme": "Just Black",
"workbench.iconTheme": "vscode-icons",
"editor.fontLigatures": true,
"files.autoSave": "off",
@mukeshwani
mukeshwani / vscode-extensions.txt
Last active September 16, 2020 03:09
vs code extensions for the dev machine
alexcvzz.vscode-sqlite
almenon.arepl
andys8.jest-snippets
apollographql.vscode-apollo
austincummings.razor-plus
bobsparadox.seti-black
BriteSnow.vscode-toggle-quotes
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
CoenraadS.bracket-pair-colorizer
@mukeshwani
mukeshwani / vscode-extensions.txt
Created September 16, 2020 02:55
VS Code Extensions
animus-coop.vscode-phpstorm-formatter
christian-kohler.path-intellisense
CoenraadS.bracket-pair-colorizer
equinusocio.vsc-material-theme-icons
esbenp.prettier-vscode
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
HookyQR.beautify
humy2833.ftp-simple
ms-python.python
@mukeshwani
mukeshwani / LightSail WordPress Cluster
Created July 28, 2020 04:35
Command, Code Snippts and Instructions for following video tutorial on setting up LightSail WordPress Cluster
# Welcome to the lightsail-wordpress-cluster wiki!
## Instructions, commands and code snippets to use and follow along the Video Tutorial on YouTube.
## Create Four LightSail Ubuntu Servers with the appropriate sizing. Name Three instances WP1, WP2, WP3, and name 4th instance LoadBalancer
##
## Open Ports 443 and 9443 (on LoadBalancer and WP1 in the LightSail Instance networking section)
## Run all commands with root (sudo su)
### Run following on each of the 3 WordPress instances
`ufw allow 80,443,9443,3306,4444,4567,4568/tcp;`
@mukeshwani
mukeshwani / WP Security Code Snippets
Created July 13, 2020 00:27
Code Snippets to secure your wordpress website.
*Add snippes 1-7 to your .htaccess file*
1. Protect WordPress important files
<FilesMatch "^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$">
Order deny,allow
Deny from all
</FilesMatch>
2. Prevent wordpress username enumeration
@mukeshwani
mukeshwani / CapRover Setup Commands
Last active January 25, 2022 12:14
CapRover Setup Commands
Docker Install steps (Copy and Paste as is within the SSH terminal. Make you are you sudo as root sudo su).
apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker run hello-world