Skip to content

Instantly share code, notes, and snippets.

View rotemreiss's full-sized avatar

Rotem Reiss rotemreiss

  • Israel
View GitHub Profile
@rotemreiss
rotemreiss / setup-ubuntu-devenv.sh
Last active November 15, 2023 02:22
Shell script to setup all the basic development tools on fresh Ubuntu 18.04.
#!/bin/sh
# @todo Automate the manual steps at the bottom
# Make it work (broken on Ubuntu 18.04)
#if [[ $EUID -ne 0 ]];
#then
# exec sudo /bin/bash "$0" "$@"
#fi
echo "Update Linux"
@rotemreiss
rotemreiss / fix-drupal8-permissions.sh
Last active March 20, 2020 13:31 — forked from GreenSkunk/fix-drupal8-permissions.sh
Drupal - Bash shell script to fix Drupal 8 permissions where the PHP Handler is FastCGI.
#!/bin/bash
path=${1%/}
user=${2}
group=${3}
help="\nThis script is used to fix permissions of a Drupal 8 installation.\nYou need to provide the following arguments:\n\t 1) Path to your drupal installation\n\t 2) Username of the user that you want to give files/directories ownership\n\nUsage: bash ${0##*/} drupal_path user_name\n"
echo "Refer to https://www.Drupal.org/node/244924"