Skip to content

Instantly share code, notes, and snippets.

View pritdeveloper's full-sized avatar
🏠
Working from home

Pritpal Singh pritdeveloper

🏠
Working from home
View GitHub Profile
@pritdeveloper
pritdeveloper / after-install-linux.md
Last active December 13, 2020 04:21
after install linux

sudo without password

sudo visudo

{USER} ALL=(ALL) NOPASSWD: ALL

install vim

sudo apt install vim -y
@pritdeveloper
pritdeveloper / linux-host.conf
Last active January 1, 2025 19:41
Linux host file
<VirtualHost *:80>
ServerName local
DocumentRoot /var/www/vhosts/
# Only log error and not warnings or other notices
# change to info to log everything
LogLevel error
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
@pritdeveloper
pritdeveloper / change-domain.sh
Created September 7, 2024 20:26 — forked from jagveerdev/change-domain.sh
Update domain on an existing wordpress db
#!/bin/bash
# Prompt for MySQL credentials
read -p "Enter MySQL username: " MYSQL_USER
read -sp "Enter MySQL password: " MYSQL_PASS
echo
read -p "Enter MySQL database name: " DB_NAME
read -p "Enter old domain (e.g., old.example.com): " OLD_DOMAIN
read -p "Enter new domain (e.g., new.example.com): " NEW_DOMAIN

Keybase proof

I hereby claim:

  • I am pritdeveloper on github.
  • I am pritpalsingh (https://keybase.io/pritpalsingh) on keybase.
  • I have a public key ASAXhwhYQKatDtyzMgjOAKZQWGa1Z46CpQpFqevgHhwVoAo

To claim this, I am signing this object: