-
Edit the Apache2 plist file with whatever editor you like (example using vim):
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if command was ran as root. | |
if [[ $(id -u) -eq 0 ]]; then | |
echo "The command \"sphp\" should not be executed as root or via sudo directly." | |
echo "When a service requires root access, you will be prompted for a password as needed." | |
exit 1 | |
fi | |
# Usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://api.github.com/orgs/ORG/repos | jq ".[].ssh_url" | xargs -L 1 git clone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BEGIN CONFIG INFO | |
#DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries | |
#TYPE: SYSTEM | |
#END CONFIG INFO | |
# | |
# This is a MariaDB example config file for systems with 4GB of memory | |
# running mostly MariaDB using InnoDB only tables and performing complex | |
# queries with few connections. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove existing database | |
drush sql-drop -y | |
# Remove existing install | |
sudo rm -rf sites/default | |
# Restore the sites/default/default.settings.php file | |
sudo git checkout -- sites/default | |
# Temporarily make the sites/default writable by anyone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- THEME DEBUG --> | |
<!-- CALL: theme('html') --> | |
<!-- FILE NAME SUGGESTIONS: | |
* html--front.tpl.php | |
* html--node.tpl.php | |
x html.tpl.php | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# brewstack install | |
### Install steps: | |
* Install Homebrew | |
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
$ brew install git | |
$ brew install homebrew/php/php56 | |
$ brew install mariadb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// notify that settings-global is in use | |
// if (!drupal_is_cli()) { | |
// drupal_set_message(t('Additional configuration added via "%file".', array('%file' => str_replace('bdone', '...', __FILE__))), 'warning'); | |
// } | |
// ************************************ | |
// SYSTEM | |
// ************************************ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Proper function of this script on Mac requires: | |
# install tiff 3.6.1 or newer http://www.libtiff.org/ | |
# brew install ghostscript | |
# brew install imagemagick | |
timer() | |
{ | |
if [[ $# -eq 0 ]]; then |
NewerOlder