Skip to content

Instantly share code, notes, and snippets.

View Eitz's full-sized avatar
🚀
Building the next great thing right now

Richard Eitz Eitz

🚀
Building the next great thing right now
View GitHub Profile
@Eitz
Eitz / soffice
Last active August 31, 2018 17:52 — forked from kevinmartin/soffice
#!/bin/bash
# originally from: http://code.google.com/p/openmeetings/wiki/OpenOfficeConverter
# openoffice.org headless server script
#
# chkconfig: 2345 80 30
# description: headless openoffice server script
# processname: openoffice
#
# Author: Vic Vijayakumar
# Modified by Federico Ch. Tomasczik
@Eitz
Eitz / node-simple-http.js
Last active August 23, 2016 13:23 — forked from wilsonpage/reqUrl.js
A function I made that wraps the node http.request function to make it a little more friendly. In my case I am using it for API route testing.
// module dependencies
const http = require('http');
const url = require('url');
/**
* request - Wraps the http.request function making it nice for unit testing APIs.
*
* @param {string} reqUrl The required url in any form
* @param {object} options An options object (this is optional)
* @param {Function} cb This is passed the 'res' object from your request
*