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

This is much harder than it needs to be.

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

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

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    
View keybase.md

Keybase proof

I hereby claim:

  • I am axoplasm on github.
  • I am axoplasm (https://keybase.io/axoplasm) on keybase.
  • I have a public key ASAZS39mQL2CjEJW2mdhMf6MTWbQf_sXT-VxFCStkcwEIgo

To claim this, I am signing this object:

@axoplasm
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 https://drupal.org/node/3060/release
* 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.