Skip to content

Instantly share code, notes, and snippets.

#-- Config Auto Generated By Viscosity --#
#viscosity dnssupport false
#viscosity name dev (de) (proxy)
#viscosity startonopen false
#viscosity ipv6 false
#viscosity dhcp true
#viscosity connectedscript dev_proxy_completed.scpt
remote <openvpn server hostname> 443 tcp-client
pull
do shell script "echo route delete iphone-4.local | /bin/sh " with administrator privileges
// replace iphone-4.local with the hostname of your device
Reader.DocumentView = Ember.View.extend({
didInsertElement: function() {
console.log("did insert DocumentView");
this._super();
},
});
Reader.DocumentReaderView = Ember.View.extend({
didInsertElement: function() {
console.log("did insert DocumentReaderView");
@schmidp
schmidp / engine.rb
Created May 4, 2013 23:18
Rails 4.0 ember-rails engine.rb
require 'ember/handlebars/template'
require 'active_model_serializers'
module Ember
module Rails
class Engine < ::Rails::Engine
config.handlebars = ActiveSupport::OrderedOptions.new
config.handlebars.precompile = true
config.handlebars.templates_root = "templates"
@schmidp
schmidp / gist:5608224
Created May 19, 2013 16:51
Our example code for our grocer fork
def send_push_message(text, badge_count=0, environment='production', async=true)
data = {}
data[:alert] = text if text
data[:badge] = badge_count if badge_count
if async
Resque.enqueue(SendPushJob, self.id, data, environment)
else
self.send_push(data, environment)
end
rails generate ember:install --head
updating git fetch origin && git reset origin/master --hard
building bundle && bundle exec rake clean dist
rm -rf dist
rm -rf tmp
Included '/Users/schmidp/.ember/packages/ember-metal/lib/accessors.js', which is not listed in :additional_dependencies. The pipeline may not invalidate properly.
rake aborted!
No such file or directory - /Users/schmidp/.ember/packages/ember-metal/lib/accessors.js
/Users/schmidp/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rake-pipeline-65b1e744defa/lib/rake-pipeline/file_wrapper.rb:105:in `read'
/Users/schmidp/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rake-pipeline-65b1e744defa/lib/rake-pipeline/file_wrapper.rb:105:in `read'
charlie:debug_problem schmidp$ gradle clean build
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:GlossyShell:clean UP-TO-DATE
:GlossyShellApp:clean UP-TO-DATE
:actionbarsherlock:clean UP-TO-DATE
:GlossyShell:mergeDebugProguardFiles
:GlossyShell:packageDebugAidl UP-TO-DATE
:GlossyShell:prepareDebugDependencies
:GlossyShell:compileDebugAidl
:GlossyShell:generateDebugBuildConfig
Verifying myself: My Bitcoin username is +schmidp. https://onename.io/schmidp
charlie:Hello schmidp$ rake device
Install ./build/Development-L/Hello.apk
3059 KB/s (633995 bytes in 0.202s)
Start com.yourcompany.hello/.MainActivity
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
^Crake aborted!
Command failed with status (): ["/Library/RubyMotionPre/bin/android/repl" ...]
/Library/RubyMotionPre/lib/motion/project/template/android.rb:466:in `run_apk'
/Library/RubyMotionPre/lib/motion/project/template/android.rb:490:in `block (2 levels) in <top (required)>'
@schmidp
schmidp / usr.local.sbin.afpd
Last active August 29, 2015 14:09
netatalk apparmor
#include <tunables/global>
/usr/local/sbin/afpd {
#include <abstractions/authentication>
#include <abstractions/base>
#include <abstractions/nameservice>
#include <abstractions/nis>
#include <abstractions/wutmp>
#include <abstractions/dbus-strict>
#include <local/usr.local.sbin.afpd>