Skip to content

Instantly share code, notes, and snippets.

@twomice
twomice / fix-drupal7-permissions.sh
Created May 26, 2021 02:17 — forked from GreenSkunk/fix-drupal7-permissions.sh
Drupal - Bash shell script to fix Drupal 7 permissions where the PHP Handler is FastCGI. Forked from https://gist.github.com/mejpark/2294266
#!/bin/bash
path=${1%/}
user=${2}
group=${2}
help="\nHelp: This script is used to fix permissions of a Drupal 7 installation\nwhere the PHP Handler is FastCGI\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\nNote: This script assumes that the group is the same as the username if your PHP is compiled to run as FastCGI. If this is different you need to modify it manually by editing this script or checking out forks on GitHub.\nUsage: bash ${0##*/} drupal_path user_name\n"
echo "Refer to https://www.Drupal.org/node/244924"
@twomice
twomice / gist:5d1146fb66285978f1bf581db214587a
Last active March 19, 2021 20:16
Tampermonkey script for Freshdesk
// ==UserScript==
// @name Freshdesk link pound issue
// @namespace https://joineryhq.com
// @version 0.1
// @description try to take over the world!
// @author You
// @match *.freshdesk.com/*
// @grant none
// ==/UserScript==