Skip to content

Instantly share code, notes, and snippets.

View dts's full-sized avatar

Daniel Staudigel dts

View GitHub Profile
@dts
dts / gist:2823057
Created May 29, 2012 07:11
brew install -v mpfr
==> Downloading http://www.mpfr.org/mpfr-3.1.0/mpfr-3.1.0.tar.bz2
Already downloaded: /Users/dstaudigel/Library/Caches/Homebrew/mpfr-3.1.0.tar.bz2
/usr/bin/tar xf /Users/dstaudigel/Library/Caches/Homebrew/mpfr-3.1.0.tar.bz2
==> Downloading patches
/usr/bin/curl -qf#LA Homebrew 0.9 (Ruby 1.8.7-357; Mac OS X 10.7.4) http://www.mpfr.org/mpfr-3.1.0/allpatches -o 000-homebrew.diff --silent
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file PATCHES
patching file VERSION
patching file src/mpfr-impl.h
@dts
dts / gist:2823062
Created May 29, 2012 07:12
brew --config
HOMEBREW_VERSION: 0.9
HEAD: 55d79f45121f2739b7df7125be8a27eacc28d292
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: build 5666
@dts
dts / gist:2823070
Created May 29, 2012 07:14
brew doctor 2>&1 | pbcopy
Your system is raring to brew.
@dts
dts / gist:2823074
Created May 29, 2012 07:14
config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by MPFR configure 3.1.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/mpfr/3.1.0 --build=x86_64-apple-darwin
## --------- ##
## Platform. ##
-- `menu_click`, by Jacob Rus, September 2006
--
-- Accepts a list of form: `{"Finder", "View", "Arrange By", "Date"}`
-- Execute the specified menu item. In this case, assuming the Finder
-- is the active application, arranging the frontmost folder by date.
on menu_click(mList)
local appName, topMenu, r
-- Validate our input
@dts
dts / gist:6926855
Created October 10, 2013 22:50
Error I got when combining rails_admin and spree.
SyntaxError in RailsAdmin::MainController#dashboard
/Users/dstaudigel/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-2.1.1/lib/generators/spree/dummy/templates/rails/application.rb:9: syntax error, unexpected '<', expecting $end <%= application_definition %> ^
Rails.root: /Users/dstaudigel/dev/yogaslackers.com
Application Trace | Framework Trace | Full Trace
activesupport (4.0.0) lib/active_support/dependencies.rb:423:in `load'
activesupport (4.0.0) lib/active_support/dependencies.rb:423:in `block in load_file'
activesupport (4.0.0) lib/active_support/dependencies.rb:615:in `new_constants_in'
activesupport (4.0.0) lib/active_support/dependencies.rb:422:in `load_file'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... clang
@dts
dts / develop.js
Created February 20, 2015 17:24
Develop.js is a development mode script that allows gulp-angular projects to report errors in JS and SASS to the user via the web browser, instead of the terminal. I have used colons to delimit folders - there are two, /develop and /develop/templates.
var LR_PORT= 35730;
var express = require('express');
var gulp = require('gulp');
var app = express();
var livereload = require('livereload');
var proxy = require('http-proxy').createProxyServer({ target : 'http://localhost:3000/api' , toProxy : true , prependPath : true });
// needs:
// we need to recompile HTML file every time the JS file list changes
@dts
dts / stately.js
Last active September 7, 2016 19:35
"Stately" for Angular
// automatically stores any values in the root scope to localStorage,
// restoring them when you return to the angular app.
// Usage: Include 'stately' in your modules requirement list.
// Redefine the STATELY_KEY to a new variable to make multiple apps
// work on the same domain.
angular.module('stately', []).constant('STATELY_KEY', 'stately'). run(function($rootScope, STATELY_KEY) {
function restore() {
console.log('Attempting to restore state from "' + STATELY_KEY + '"');
@dts
dts / create_aws_volume.sh
Created October 4, 2016 16:57
Gitlab Runner Kubernetes YAML for AWS
aws ec2 create-volume --size 1 --availability-zone us-west-2b --volume-type standard