Skip to content

Instantly share code, notes, and snippets.

@gradosevic
Last active October 8, 2021 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gradosevic/1d7fa320e64a685fa37392d69ac4fb80 to your computer and use it in GitHub Desktop.
Save gradosevic/1d7fa320e64a685fa37392d69ac4fb80 to your computer and use it in GitHub Desktop.
Linux commands
#change owner and permissions recursively
sudo chmod -R 775  /ROOT_OF_YOUR_APP/vendor/
sudo chown -R $USER:$USER /ROOT_OF_YOUR_APP/vendor/

#impersonate as www-data in command line
sudo su www-data -s /bin/sh


#Homestead box swithc PHP version
sudo update-alternatives --config php


#unzip dd image backup
VBoxManage convertdd image_raw sda.vdi --format VDI --variant Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment