Skip to content

Instantly share code, notes, and snippets.

/** @test */
public function it_creates_a_new_partner_given_valid_parameters()
{
$this->getJson('api/v1/partners', 'POST', $this->getStub());
$this->assertResponseStatus(201);
}
// stub
@jbpapp
jbpapp / gist:8435576
Created January 15, 2014 12:47
Virtualbox Guest Additions
sudo apt-get install --no-install-recommends virtualbox-guest-utils && sudo apt-get install virtualbox-guest-dkms
@jbpapp
jbpapp / packages.md
Created March 30, 2016 09:42
Sublime Text

Installed packages

  • AdvancedNewFiles
  • All Autocomplete
  • AutoFileName
  • Better Coffescript
  • Color Highlighter
  • CTags
  • DocBlockr
  • EditorConfig
  • Emmet
@jbpapp
jbpapp / nginx-php5-fpm-settings
Last active July 25, 2016 18:57
Nginx & PHP5-FPM settings
===================================
/etc/php5/fpm/pool.d/www.conf
===================================
[...]
request_terminate_timeout = 300
[...]
php_admin_value[post_max_size] = 100M
php_admin_value[upload_max_filesize] = 100M
php_admin_value[max_execution_time] = 300
@jbpapp
jbpapp / shop_order_info_column.php
Last active May 29, 2020 21:10 — forked from passatgt/shop_order_info_column.php
Add order item details into the order manager table in WooCommerce
<?php
/*
Plugin Name: Shop Order Info Column
Plugin URI: https://example.com
Description: Add order details to the order listings.
Author: Your name
Version: 1.0
Author URI: https://example.com
*/