Skip to content

Instantly share code, notes, and snippets.

View z0mt3c's full-sized avatar

Timo Behrmann z0mt3c

  • Hamburg, Germany
View GitHub Profile
@z0mt3c
z0mt3c / ddns-update.js
Last active August 29, 2015 14:27
HE.net DynDNS supporting ipv4 and ipv6 (single call)
module['exports'] = function simpleHttpRequest (hook) {
var request = require('request')
var async = require('async')
var Hoek = require('hoek')
var _ = require('lodash')
var host = hook.params.domain
var password = hook.params.password
var IPs = []
Uncaught TypeError: Cannot read property 'test' of undefined
SwaggerUi.Views.OperationView.Backbone.View.extend.showStatus @ index.js:24
SwaggerUi.Views.OperationView.Backbone.View.extend.showCompleteStatus @ index.js:24
9.Operation.execute.obj.on.response @ index.js:568
(anonymous function) @ spec-converter.js:505
111.Request.callback @ index.js:24
(anonymous function) @ index.js:24
112.Emitter.emit @ index.js:24
111.Request.end.xhr.onreadystatechange @ index.js:24
@z0mt3c
z0mt3c / swagger-array-of-strings
Created December 9, 2014 09:49
swagger-array-of-strings
---
swagger: "2.0"
host: "localhost:8000"
schemes:
- "http"
paths:
/simple/test:
post:
tags:
- "api"
@z0mt3c
z0mt3c / fs-tree.js
Last active August 29, 2015 14:10
fs-tree.js
var fs = require('fs');
var path = require('path');
var async = require('async');
module.exports = function(rootPath, next) {
rootPath = path.normalize(rootPath);
var files = [];
var directories = [];
var totalSize = 0;
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#