Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jasonagnew on github.
  • I am jasonagnew (https://keybase.io/jasonagnew) on keybase.
  • I have a public key ASCMVMeFV7b9brOe9ugp5eV86-rNm2GYXq0Gt1Fd6Z0YZgo

To claim this, I am signing this object:

Deploy without Peggy

Peggy is just wrapper for virtue: https://github.com/jasonagnew/virtue2 - so you can just do:

ssh -t {user}@{ip} virtue app:deploy {app-name} {git-branch}

You can grab the {app-name} by sshing into the server and running ls /var/www - it'd normally be:

{id}-{name}-{env}-{another-id}
/*
  Home.js
*/
import React from 'react';

import Master from './layouts/Master';

import HeroSlide from './partials/hero/Slide.js';

Smart Money People API End-Points:

/api/brands/:

Lists all brands' slugs, paginated with a max limit of 25 brands. Will also say pages left and total count of brands.

Example @ /api/brands/:

{
    "count": 2,
    "total": 76,
@jasonagnew
jasonagnew / gist:dcf10a55baa2d16b5614
Last active August 29, 2015 14:03
Wordpress Server

Server Requirements

  • Apache
  • PHP 5.5
  • MySQL
  • Varnish 4
  • SSH
  • libssh2-php or FTP
    • Used by wordpress for updating.
    • libssh2 allows us to use SSH for updates
@jasonagnew
jasonagnew / gist:a68453460def1b245d03
Last active August 29, 2015 14:03
Laravel & Angular - Gulp

Directory Layout

gulp/
  tasks/
  util/
  config.js
api/
  BigBiteCreative/
  bootstrap/

commands/