Skip to content

Instantly share code, notes, and snippets.

View maxmckenzie's full-sized avatar

Max McKenzie maxmckenzie

View GitHub Profile
@maxmckenzie
maxmckenzie / gist:5111987d01ae30504b8e7c31758f9401
Created January 2, 2017 13:30
Allow apps from anywhere not just identified or app store
sudo spctl --master-disable
@maxmckenzie
maxmckenzie / client.js
Last active August 14, 2018 17:12
Simple Socket.io example
// https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.6.0/socket.io.min.js
var socket = io('http://localhost:5050');
socket.on('news', function (data) {
console.log(data);
socket.emit('client event', { my: 'data' });
});
@maxmckenzie
maxmckenzie / .envrc
Created November 10, 2016 09:18
Use the current directories node modules and avoid installing node_modules globally `-g` with direnv
export PATH=$(npm bin):$PATH
/* eslint-disable no-console */
import raven from 'raven';
/*
To Use
import logger from './logger';
logger.error('test error');
logger.debug('test debug');
logger.warning('test warning');