Skip to content

Instantly share code, notes, and snippets.

Daniel Staudigel dts

Block or report user

Report or block dts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 01.configure
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 / develop.js
Created Feb 20, 2015
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.
View develop.js
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 / gist:2823057
Created May 29, 2012
brew install -v mpfr
View gist:2823057
==> Downloading
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) -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 / gist:2823070
Created May 29, 2012
brew doctor 2>&1 | pbcopy
View gist:2823070
Your system is raring to brew.
dts / gist:2823062
Created May 29, 2012
brew --config
View gist:2823062
HEAD: 55d79f45121f2739b7df7125be8a27eacc28d292
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
View gist:2823074
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. ##
View Auto-open iOS Simulator Web Inspector
-- `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 / gist:6926855
Created Oct 10, 2013
Error I got when combining rails_admin and spree.
View gist:6926855
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/
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'
dts / stately.js
Last active Sep 7, 2016
"Stately" for Angular
View stately.js
// 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 /
Created Oct 4, 2016
Gitlab Runner Kubernetes YAML for AWS
aws ec2 create-volume --size 1 --availability-zone us-west-2b --volume-type standard
You can’t perform that action at this time.