Skip to content

Instantly share code, notes, and snippets.

@alimac
alimac / vagrant-d8.sh
Created November 3, 2014 05:54
Vagrant shell provisioner for Drupal 8 development environment
#!/bin/bash
# Install Drupal 8 Development Environment
# update apt
sudo apt-get update -y
# install development tools
sudo apt-get install curl git vim -y
@benjamin-dk
benjamin-dk / drupal_permissions.sh
Created June 4, 2013 08:25
Linux bash script for setting correct Drupal permissions in the web folder
#!/bin/bash
#Securing file permissions and ownership: http://drupal.org/node/244924
#run the script as follows: sudo bash drupal_permissions.sh your/drupal/path your_user_name
path=${1%/}
user=${2}
group="www-data"
help="\nHelp: This script is used to fix permissions of a drupal 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\nNote: \"www-data\" (apache default) is assumed as the group the server is belonging to, if this is different you need to modify it manually by editing this script\n\nUsage: (sudo) bash ${0##*/} drupal_path user_name\n"
if [ -z "${path}" ] || [ ! -d "${path}/sites" ] || [ ! -f "${path}/modules/system/system.module" ]; then
@rsvp
rsvp / noise.sh
Last active April 18, 2024 14:18
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)