Skip to content

Instantly share code, notes, and snippets.

Martin Wawrusch mwawrusch

Block or report user

Report or block mwawrusch

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
View gist:3f945b6487540bb890a363b36ae580cc
//
// ViewController.swift
// TestLive
//
// Created by Martin Wawrusch on 6/9/17.
//
import UIKit
import lf
import AVFoundation
View gist:8294079
npm WARN package.json fanignite-workers@0.1.0 No README.md file found!
npm http GET https://registry.npmjs.org/nconf/0.6.8
npm http GET https://registry.npmjs.org/request/2.27.0
npm http GET https://registry.npmjs.org/fbgraph/0.2.7
npm http GET https://registry.npmjs.org/async/0.2.9
npm http GET https://registry.npmjs.org/underscore/1.5.2
npm http GET https://registry.npmjs.org/bunyan/0.22.1
npm http GET https://registry.npmjs.org/bunyan-syslog/0.2.2
npm http GET https://registry.npmjs.org/phonegap-build/0.8.4
npm http GET https://registry.npmjs.org/iron_mq/0.2.0
View gist:8040888
deployment:
staging:
branch: master
commands:
- ./bin/docs
- ./bin/build-assets:
timeout: 500
- ./bin/deploy-assets:
timeout: 500
- ./bin/nodejitsu
View gist:7975444
###
Primary task scheduler for fanignite.
This queries the site api for tasks to schedule, then schedules them.
###
_ = require 'underscore'
async = require 'async'
request = require 'request'
logSetup = require './log-setup'
iron_mq = require 'iron_mq'
View gist:7878503
info: Creating snapshot 0.2.0-5
debug: { method: 'POST',
debug: uri: 'https://api.nodejitsu.com/apps/modeista/fanignite-fanbox/snapshots/0.2.0-5',
debug: headers:
debug: { Authorization: '*****************************************************************',
debug: 'Content-Type': 'application/octet-stream',
debug: 'Content-Length': 289730 },
debug: timeout: '1000000000',
debug: rejectUnauthorized: false }
info Uploading: [=============================] 100% info Uploading: [=============================] 100%
View gist:7795258
curl -X POST -H "Content-Type: application/json" -d '{"username":"xyz","password":"xyz"}' http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test
curl -X GET -H "Content-Type: application/json" http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test
curl -X GET -H "Content-Type: application/json" http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test/529cfeab25d7b200004f2aa4
curl -X DELETE -H "Content-Type: application/json" http://50a30013fdc691052b000075.fanignite.net/529955c0ebf7c5cc61000009/d/some-test/529cfeab25d7b200004f2aa4
View gist:7761864
passport-google-oauth@0.1.5 node_modules/passport-google-oauth current=0.1.5
passport-twitter@1.0.2 node_modules/passport-twitter current=1.0.2
passport@0.1.17 node_modules/passport current=0.1.17
passport-local@0.1.6 node_modules/passport-local current=0.1.6
passport-facebook@1.0.2 node_modules/passport-facebook current=1.0.2
imagemagick@0.1.3 node_modules/imagemagick current=0.1.3
gm@1.8.2 node_modules/gm current=1.8.2
formidable@1.0.14 node_modules/formidable current=1.0.14
markdown-js@0.0.3 node_modules/markdown-js current=0.0.3
emailjs@0.3.6 node_modules/emailjs current=0.3.6
View gist:7760623
/home/plasma/project/martin-hash-test.js:7
hash.setEncoding('hex');
^
TypeError: Object #<Hash> has no method 'setEncoding'
at Object.<anonymous> (/home/plasma/project/martin-hash-test.js:7:6)
at Module._compile (module.js:454:26)
at Object.Module._extensions..js (module.js:472:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:497:10)
View gist:7760403
var crypto = require('crypto');
// change to 'md5' if you want an MD5 hash
var hash = crypto.createHash('sha1');
// change to 'binary' if you want a binary hash.
hash.setEncoding('hex');
// the text that you want to hash
hash.write('hello world');
View gist:9df09b30526d8699161d
/**
* import {checkIfSessionActive} from '.../session.service';
* @CanActivate(checkIfSessionActive)
*/
export function checkIfSessionActive(next: ComponentInstruction, prev) : Promise<boolean> {
let injector = Injector.resolveAndCreate([SessionService,
ApiClientService,
TokenService,
LoggerService,
LocalStorageService,
You can’t perform that action at this time.