Skip to content

Instantly share code, notes, and snippets.

@SQiShER
SQiShER / UpdateEnvironmentPlist.sh
Created May 17, 2012 16:46
Two simple commands to resolve problems with Maven installed via Homebrew
defaults write ~/.MacOSX/environment.plist M2_HOME `brew --prefix maven`/libexec
defaults write ~/.MacOSX/environment.plist M2 `brew --prefix maven`/libexec/bin
@ada-lovecraft
ada-lovecraft / gist:7031158
Last active December 25, 2015 19:59
Invoking an AbstractController
app = angular.module('app')
AbstractController = ($scope) ->
$scope.namespace = 'abstract' unless $scope.namespace
# to save you a lot of typing...
namespace = $scope[$scope.namespace];
namespace.setup = (value) ->
namespace.setupComplete = true
@paul91
paul91 / GraphicsMagick.sh
Last active September 20, 2020 17:02
How to install GraphicsMagick on CentOS 6.4
#!/bin/bash
# Install build dependencies
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
tar zxvf GraphicsMagick-1.3.9.tar.gz
# Configure and compile
@ada-lovecraft
ada-lovecraft / Procfile
Last active August 29, 2015 14:20
How to heroku
# create this file in your project root
web: node <entry point file here>
EXAMPLE:
web: node app.js