Skip to content

Instantly share code, notes, and snippets.

View maestrojed's full-sized avatar

Jed Herzog maestrojed

  • Linkwell Health
  • New York, NY
View GitHub Profile
@maestrojed
maestrojed / sites.php
Created August 9, 2012 21:00
Drupal Multisite Config File
<?php
/**
* @file
* Configuration file for Drupal's multi-site directory aliasing feature.
*
* Drupal searches for an appropriate configuration directory based on the
* website's hostname and pathname. A detailed description of the rules for
* discovering the configuration directory can be found in the comment
* documentation in 'sites/default/default.settings.php'.
@maestrojed
maestrojed / .htaccess
Created August 9, 2012 21:30
Drupal Files Path Rewrite
#Turn Mod Rewrite On
RewriteEngine on
#Mod Rewrite Rules
RewriteRule ^files/([^/\.]+)/?$ sites/www.example.com/files/$1
@maestrojed
maestrojed / dropbox-multiacct.txt
Created February 22, 2013 05:29
An OSX automator script to run multiple Dropbox accounts.
-In Automator, Add a Run Shell Script action:
-Remove any default text (e.g. cat) from the script window
-Paste in the following code (change the folder “Dropbox-personal” if desired):
bash HOME=$HOME/Dropbox-personal /Applications/Dropbox.app/Contents/MacOS/Dropbox &
-Test from Automator by pressing the Run button at the top right
-This should launch the setup wizard for Dropbox; go through the wizard, entering credentials for your additional account
once you are satisfied that everything is working, quit Dropbox (click the menu bar icon and select Quit Dropbox)
-Save your custom application so that it can be run independently
@maestrojed
maestrojed / .gitignore
Created December 4, 2013 19:11
A .gitignore boilerplate for drupal projects
# Ignore configuration files that may contain sensitive information.
*settings*.php
# Ignore paths that contain user-generated content.
files
private
# Compiled source #
###################
# Sass, Compass and extensions.
gem 'compass' # Framework built on Sass.
gem 'compass-validator' # So you can `compass validate`.
gem 'compass-normalize' # Compass version of normalize.css.
gem 'compass-rgbapng' # Turns rgba() into .png's for backwards compatibility.
gem 'toolkit' # Compass utility from the fabulous Snugug.
gem 'oily_png' # Faster Compass sprite generation.
gem 'css_parser' # Helps `compass stats` output statistics.
#gem 'guard-compass' # Compile on sass/scss change.
# Sass, Compass and extensions.
Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.
Password:
Gem::LoadError on line ["2064"] of /Library/Ruby/Site/2.0.0/rubygems/specification.rb: Unable to activate toolkit-2.1.0, because sass-3.2.19 conflicts with sass (~> 3.3.0)
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p545.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
username password required for 'softwareupdate -l':
Checking requirements for osx.
Installing requirements for osx.
Updating system......
Error running 'requirements_osx_brew_update_system ruby-1.9.3-p545',
showing last 15 lines of /Users/username/.rvm/log/1398321667_ruby-1.9.3-p545/update_system.log
Error running 'requirements_osx_brew_update_system ruby-1.9.3-p545',
showing last 15 lines of /Users/username/.rvm/log/1398321667_ruby-1.9.3-p545/update_system.log
https://github.com/mxcl/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.'
++ rvm_pretty_print stderr
++ case "${rvm_pretty_print_flag:=auto}" in
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p545.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system....
Installing required packages: gcc46.....
Error running 'requirements_osx_brew_libs_install gcc46',
showing last 15 lines of /Users/username/.rvm/log/1398322098_ruby-1.9.3-p545/package_install_gcc46.log