Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am symmetric on github.
  • I am symmetric (https://keybase.io/symmetric) on keybase.
  • I have a public key ASBJNEtuo4ZGwdNxUGodB5QiQBQ_LMqXal6Id1TK5jzzWQo

To claim this, I am signing this object:

@Symmetric
Symmetric / .gitconfig
Created January 29, 2016 19:41 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
#! /usr/bin/env python
class UserViewSet(ModelViewSet):
queryset = User.objects.all()
serializer_class = UserSerializer
def get_permissions(self):
# Allow non-authenticated user to create (i.e. register) by POST
return [AllowAny() if self.request.method == 'POST' else IsSuperOrTargetUser()]
[vagrant@kubernetes-minion-1 ~]$ sudo salt-call -l debug state.sls calico
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/grains.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/grains.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/log-level-debug.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/log-level-debug.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/master.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: kubernetes-minion-1
[DEBUG ] Configuration file path: /etc/salt/minion

Keybase proof

I hereby claim:

  • I am symmetric on github.
  • I am symmetric (https://keybase.io/symmetric) on keybase.
  • I have a public key whose fingerprint is AEBC BE9F 65D4 93A9 0694 7DDE 283C 6802 3BAC 765B

To claim this, I am signing this object:

@Symmetric
Symmetric / gist:10343955
Created April 10, 2014 05:02
food-rescue-robot 'rake db:migrate' failure
== InitRegionInLocations: migrating ==========================================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `acts_as_gmappable' for #<Class:0x00000003e0b188>/var/lib/gems/1.9.1/gems/activerecord-3.2.17/lib/active_record/dynamic_matchers.rb:55:in
`method_missing'
/home/paul/dev/food-rescue-robot/app/models/location.rb:4:in `<class:Location>'
/home/paul/dev/food-rescue-robot/app/models/location.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:469:in `load'
/var/lib/gems/1.9.1/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:469:in `block in load_file'
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "C:\\Users\\pat\\.vagrant.d\\boxes\\precise32\\virtualbox\\box.ovf"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\pat\.vagrant.d\boxes\precise32\virtualbox\box.ovf...
OK.
@Symmetric
Symmetric / noname_error.txt
Created April 25, 2013 17:55
"vagrant reload" lost track of VM name
INFO global: Vagrant version: 1.2.1
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/package/plugin.rb
@Symmetric
Symmetric / ssh_error.txt
Created April 24, 2013 22:49
Vagrant mount fails
INFO global: Vagrant version: 1.2.1
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command
DEBUG global: Loading core plugin: C:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.1/plugins/commands/package/plugin.rb