Skip to content

Instantly share code, notes, and snippets.

Alex Worrad-Andrews conatus

Block or report user

Report or block conatus

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
View porting-plugins-from-directory-to-composer.sh
for f in ~/[wherever]/wp-content/plugins/*/; do
echo "docker-compose run composer require wpackagist-plugin/$(basename $f)"
done
View proposedAPI.js
class DeleteJob extends Queueable {
static queue = 'delete-job';
static defaultPriority = 1;
constructor(post: Post) {
super();
this.postToDelete = post;
}
View ello.md

Ello API

This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.

Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.

Like this:

{
   "id": <new post ID>,
@conatus
conatus / node-boxen-intellij.md
Last active Dec 18, 2015
Setting up Intellij Idea when you are using NVM and Boxen.
View node-boxen-intellij.md

Intellij With Node (while using NVM/Boxen)

  1. Install Node related plugins for Intellij.
  2. Setup a new configuration.
  3. Path to Node is /opt/boxen/bin/node.
  4. Ensure .nvm-version is set to the appropriate version.
  5. Set a new environment variable BOXEN_NVM_DIR to /opt/boxen/nvm
  6. Setup rest as required.
  7. You're done!
@conatus
conatus / gist:4435210
Created Jan 2, 2013
Bundler problems.
View gist:4435210
› bundle install
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system:
Using fast-stemmer (1.0.1)
Using classifier (1.3.3)
Using directory_watcher (1.4.1)
Using kramdown (0.13.8)
Installing liquid (2.4.1)
Gem::InstallError: liquid requires RubyGems version >= 1.3.7. Try 'gem update --system' to update RubyGems itself.
An error occured while installing liquid (2.4.1), and Bundler cannot continue.
You can’t perform that action at this time.