Skip to content

Instantly share code, notes, and snippets.

Brendan Jurd direvus

Block or report user

Report or block direvus

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
@direvus
direvus / shitlist.md
Last active Mar 29, 2019
A list of software to avoid
View shitlist.md

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 Jan 16, 2019 — forked from rwz/p5n.md
persona 5 negotiatons
View p5n.md

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.


View .vimrc
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
View hash.c
#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 Jun 20, 2017
Space Engineers station status script
View Station-status.cs
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 {
View xero-php-payment-terms-181.diff
commit ac5e415d468b655d8c425aef443846dad2fabef7
Author: Brendan Jurd <brendan.jurd@achievecorp.com.au>
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
View gist:5215629e690aea3bf45b51258164d8e2
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%)
You can’t perform that action at this time.