HP BL460
- 48 Gb Memory
- 2 x X5675 @ 3.07GHz
- 2 x 10 gbps NIC
- 2tb NetApp NFS volume for ES data
| 'use strict'; | |
| (function() { | |
| var mod = angular.module("App.services", []); | |
| //register other services here... | |
| /* pubsub - based on https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js*/ | |
| mod.factory('pubsub', function() { | |
| var cache = {}; |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| # A guide to prevent pain and suffering while upgrading to OS X Mavericks | |
| # This will vary greatly depending on system set up, so read the instructions carefully | |
| # Back up Virtulenvs | |
| #################### | |
| # Very important! | |
| # For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv | |
| # in order to prevent loss of dependencies during the upgrade. |
| import logging | |
| import zmq | |
| class ZmqClient (object): | |
| def __init__(self, socket, logger): | |
| super(ZmqClient, self).__init__() | |
| self._logger = logger | |
| self._socket = socket |
| from zope.interface import Interface, Attribute, implements | |
| from zope.component import getGlobalSiteManager, adapts | |
| # here is what our data looks like | |
| class IKey(Interface): | |
| pass | |
| class IEntity(Interface): |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| angular.module('test', []) | |
| .directive('placeholder', function($timeout){ | |
| if (!$.browser.msie || $.browser.version >= 10) { | |
| return {}; | |
| } | |
| return { | |
| link: function(scope, elm, attrs){ | |
| if (attrs.type === 'password') { | |
| return; | |
| } |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: gunicorn-graphite | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Should-Start: $nginx | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: gunicorn + nginx ubuntu init script | |
| # Description: gunicorn + nginx ubuntu init script |