Skip to content

Instantly share code, notes, and snippets.

@schmidp
schmidp / gist:e2ad307337dd86dbc9936f6ddf0d3128
Created October 28, 2021 20:15
Azure Eventhub Debug Output
2021-10-28T20:10:36.3770891Z 2021-10-28T20:10:35.804Z [WARN] Provider "registry.terraform.io/hashicorp/azurerm" produced an invalid plan for azurerm_eventhub_namespace.main, but we are tolerating it because it is using the legacy plugin SDK.
2021-10-28T20:10:36.3771593Z The following problems may be the cause of any confusing errors from downstream operations:
2021-10-28T20:10:36.3775395Z - .network_rulesets: planned value cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"default_action":cty.StringVal("Deny"), "ip_rule":cty.ListValEmpty(cty.Object(map[string]cty.Type{"action":cty.String, "ip_mask":cty.String})), "trusted_service_access_enabled":cty.True, "virtual_network_rule":cty.ListValEmpty(cty.Object(map[string]cty.Type{"ignore_missing_virtual_network_service_endpoint":cty.Bool, "subnet_id":cty.String}))})}) does not match config value cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"default_action":cty.StringVal("Deny"), "ip_rule":cty.NullVal(cty.List(cty.Object(map[string
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
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'
@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
@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"
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");
do shell script "echo route delete iphone-4.local | /bin/sh " with administrator privileges
// replace iphone-4.local with the hostname of your device
#-- 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
Nov 10 00:38:00 data kernel: [ 5220.298963] type=1400 audit(1415576280.195:4464): apparmor="ALLOWED" operation="exec" profile="/usr/local/sbin/netatalk" pid=7911 comm="netatalk" requested_mask="x" denied_mask="x" fsuid=0 ouid=0 target="/usr/local/sbin/netatalk//null-d"
Nov 10 00:38:00 data kernel: [ 5220.299929] type=1400 audit(1415576280.195:4465): apparmor="ALLOWED" operation="file_inherit" profile="/usr/local/sbin/netatalk//null-d" name="/dev/null" pid=7911 comm="sh" requested_mask="rw" denied_mask="rw" fsuid=0 ouid=0
Nov 10 00:38:00 data kernel: [ 5220.299947] type=1400 audit(1415576280.195:4466): apparmor="ALLOWED" operation="file_inherit" profile="/usr/local/sbin/netatalk//null-d" name="/dev/null" pid=7911 comm="sh" requested_mask="rw" denied_mask="rw" fsuid=0 ouid=0
Nov 10 00:38:00 data kernel: [ 5220.299961] type=1400 audit(1415576280.195:4467): apparmor="ALLOWED" operation="file_inherit" profile="/usr/local/sbin/netatalk//null-d" name="/dev/null" pid=7911 comm="sh" requested_mask="rw" denied_mask="rw
@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>