Skip to content

Instantly share code, notes, and snippets.

Paul Souders axoplasm

Block or report user

Report or block axoplasm

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
axoplasm /
Last active Feb 6, 2019
Django Wagtail one-liner for database-agnostic JSON dumps

This is much harder than it needs to be.

See here and here. This issue won’t help.

(venv) $ ./ dumpdata --indent=4 --natural-primary --natural-foreign -e contenttypes -e auth.Permission -e wagtailcore.groupcollectionpermission > dumpfile.json
axoplasm /
Last active Jan 29, 2018
Set up wincent/command-t for both Vim & MacVim

I had trouble getting both Vim and MacVim to use the same Ruby executable, which is necessary to use the command-t plugin. The cannonical MacVim homebrew recipe hardlinks to /usr/bin/ruby while (terminal) Vim will use the system executable (whatever it is). If you install Ruby via homebrew it installs in /usr/local/bin/ruby.

Here's what I did:

$ brew install ruby # install most recent ruby (2.3.x)    
$ brew uninstall vim     
$ brew uninstall macvim     
$ brew install vim    
$ brew tap macvim-dev/macvim # dev branch of macvim, has better tap config    

Keybase proof

I hereby claim:

  • I am axoplasm on github.
  • I am axoplasm ( on keybase.
  • I have a public key ASAZS39mQL2CjEJW2mdhMf6MTWbQf_sXT-VxFCStkcwEIgo

To claim this, I am signing this object:

axoplasm / gist:bdda3922fa43b2ef25d8
Last active Jan 17, 2018
Ditching Compass and Sass for LibSass
View gist:bdda3922fa43b2ef25d8

I had a large client framework extending my personal boilerplate that was taking upwards of 10seconds to compile with standard Ruby Sass. This framework had minimal dependencies:

I used Bundler to manage Ruby dependencies and ran tasks with Grunt — mainly compiling Sass via grunt-contrib-compass, and previewing with live-reload. Simple stuff.

But 10seconds was an unacceptable performance hit for me. I typically keep my monitor split in half (using Spectacle ), with a browser on one half and MacVim on the other. With Live Reload running I get a nearly realtime preview of my work … except for that one client framework, where I was gettin

View Set up Drupal 8 on OS X Mavericks
* [Install MySQL]
* [ensure PHP is loaded]
* [add local hostname in /private/etc/hosts]
* [add local vhost /private/etc/apache2/conf/httpd-vhosts.conf]
* Download latest alpha from
* create sites/default/files
$ mkdir sites/default/files
* copy settings.php
$ cp sites/default/default.settings.php sites/default/settings.php
* clear perms for sites/default
You can’t perform that action at this time.