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
@dts
dts / keybase.md
Created Dec 24, 2017
Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am dts on github.
  • I am dstaudigel (https://keybase.io/dstaudigel) on keybase.
  • I have a public key ASAAHx5dBAIe5wQHyLH2I9oA2pmDfFHyEbCUlDXB8a7zrwo

To claim this, I am signing this object:

@dts
dts / keybase.md
Created Dec 24, 2017
Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am dts on github.
  • I am dstaudigel (https://keybase.io/dstaudigel) on keybase.
  • I have a public key ASAAHx5dBAIe5wQHyLH2I9oA2pmDfFHyEbCUlDXB8a7zrwo

To claim this, I am signing this object:

@dts
dts / create_aws_volume.sh
Created Oct 4, 2016
Gitlab Runner Kubernetes YAML for AWS
View create_aws_volume.sh
aws ec2 create-volume --size 1 --availability-zone us-west-2b --volume-type standard
@dts
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
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
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
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/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'
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
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. ##
@dts
dts / gist:2823070
Created May 29, 2012
brew doctor 2>&1 | pbcopy
View gist:2823070
Your system is raring to brew.
You can’t perform that action at this time.