Skip to content

Instantly share code, notes, and snippets.

View GlenTiki's full-sized avatar
🙊
🐨🍵 🍦🥋

Glen Keane GlenTiki

🙊
🐨🍵 🍦🥋
View GitHub Profile
'use strict'
const inherits = require('util').inherits
const EE = require('events').EventEmitter
const net = require('net')
const HTTPParser = require('http-parser-js').HTTPParser
const methods = [
'GET',
'DELETE',
'POST',
package accounttest1;
// This defines a "type" of object which you can create, etc.
public class Account {
// this defines a "hidden" or "private" variable.
// this is a variable which is only able to be accessed from
// within the account class methods
// The "int" defines this variable as an "integer" which is a
// type of number, with no decimal points
// version 1
instance1 = autocannon({
url: 'localhost:3000',
headers: {auth: 'token'},
body: 'some body',
method: 'POST',
customiseRequest: function (client) {
client.setHeaders(...)
client.setBody(...)
client.setHeadersAndBody(...)
const inherits = require('util').inherits
const xtend = require('xtend')
const requestBuilder = require('./httpRequestBuilder')
function RequestIterator (requests, defaults) {
this.requests = requests || [{}]
this.requests.forEach((request) => {
request = xtend(requestDefaults, request)
})
@GlenTiki
GlenTiki / gist:c51ed25eb3a5a603cb7e
Last active January 26, 2017 00:04
Hook idea's

What we have: a bunch of global trace events.

Globals:
 LTTNG_NET_SERVER_CONNECTION
 ...
 &&
 DTRACE_NET_SERVER_CONNECTION
 ...

Keybase proof

I hereby claim:

  • I am thekemkid on github.
  • I am glen_keane (https://keybase.io/glen_keane) on keybase.
  • I have a public key ASBakc-90X6WtpmxoKllzNtnnDULtKwsov7fSnrElSXMsgo

To claim this, I am signing this object:

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
strategy: