Skip to content

Instantly share code, notes, and snippets.

View direvus's full-sized avatar

Brendan Jurd direvus

  • Canberra, Australia
View GitHub Profile
@direvus
direvus / shitlist.md
Last active March 29, 2019 06:19
A list of software to avoid

Brendan's Shitlist

This is a kind of inverse honour roll of software that has ruined my day in one way or another.

My recommendation is to avoid using anything listed here if it is at all practical to do so.

Trend Micro Deep Security

What is it?

@direvus
direvus / p5n.md
Last active January 16, 2019 11:14 — forked from rwz/p5n.md
persona 5 negotiatons

Codes:

  • L: Likes
  • D: Dislikes
  • M: Meh.

Depending on the persona for successful negotiation you need either 2 Like answers or 1 Like + 1 Meh.


@direvus
direvus / .vimrc
Last active October 18, 2018 02:22
filetype plugin indent on
syntax on
set sw=4 ts=4 sts=4 ai et exrc nohls
set foldmethod=indent
set ruler
set showcmd
set list
set listchars=tab:▸\ ,eol:↵
colo desert
#include <stdio.h>
#include <string.h>
unsigned int hash(char *k) {
unsigned int result = 0;
size_t len = strlen(k);
if (len == 0) {
return 0;
} else if (len == 1) {
return k[0];
@direvus
direvus / Station-status.cs
Created June 20, 2017 08:15
Space Engineers station status script
static string panel1_name = "Text panel office 1";
static string panel2_name = "Text panel office 2";
static string panel3_name = "Text panel office 3";
static string panel4_name = "Text panel office 4";
static string reactors_name = "Reactors";
static string batteries_name = "Batteries";
static string ingot_type = "VRage.Game.MyObjectBuilder_Ingot";
static string ore_type = "VRage.Game.MyObjectBuilder_Ore";
public struct ItemType {
commit ac5e415d468b655d8c425aef443846dad2fabef7
Author: Brendan Jurd <[email protected]>
Date: Wed May 10 15:09:52 2017 +1000
Manually patch XeroPHP to work with Contact/PaymentTerms properly.
See https://github.com/calcinai/xero-php/issues/181.
diff --git a/src/XeroPHP/Models/Accounting/Contact.php b/src/XeroPHP/Models/Accounting/Contact.php
index a84b15c..2fd0248 100644
PHPUnit 6.1-g253f1d2 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.15 with Xdebug 2.4.1
Configuration: /home/direvus/src/phpunit/phpunit.xml
............................................................. 61 / 1536 ( 3%)
............................................................. 122 / 1536 ( 7%)
............................................................. 183 / 1536 ( 11%)
............................................................. 244 / 1536 ( 15%)
............................................................. 305 / 1536 ( 19%)