Skip to content

Instantly share code, notes, and snippets.

@jpmx
jpmx / README.md
Created November 5, 2012 07:53 — forked from dariocravero/README.md
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.

@jpmx
jpmx / index.html
Created November 13, 2012 13:32
Meteor preserve-inputs bug?
<head>
<title>bug-preserve-inputs</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
Radio Test: <input type="radio" name="myradio" {{isChecked}} /><br/><br/>
@jpmx
jpmx / hack.sh
Created November 19, 2012 14:40 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
# 'ab' program freezes after lots of requests, why?
# http://stackoverflow.com/questions/1216267/ab-program-freezes-after-lots-of-requests-why
# Enter sudo mode
sudo -i
# net.inet.ip.portrange.first: 49152 -> 32768
sysctl -w net.inet.ip.portrange.first=32768
@jpmx
jpmx / 1nova-compute.log
Last active December 14, 2015 19:18
nova fails to boot a VM with "OSError: [Errno 2] No such file or directory" When I launch a VM with --flavor 0 (no disk) it works, but fail when the flavor has disk
2013-03-11 11:22:00 DEBUG nova.utils [req-0918d30d-00b8-45b0-b2b8-a4743c879ac6 50398e8030bb497a9a4bbd1429576ad2 411625da55b546e2ba68b8dc9e111ab6] Result was 0 execute /usr/lib/python2.7/dist-packages/nova/utils.py:203
2013-03-11 11:22:00 DEBUG nova.utils [req-0918d30d-00b8-45b0-b2b8-a4743c879ac6 50398e8030bb497a9a4bbd1429576ad2 411625da55b546e2ba68b8dc9e111ab6] Running cmd (subprocess): env LC_ALL=C LANG=C qemu-img info /var/lib/nova/instances/_base/876d0b1240b2bfa3bb04fa14f184db987604d322.converted execute /usr/lib/python2.7/dist-packages/nova/utils.py:187
2013-03-11 11:22:00 DEBUG nova.utils [req-0918d30d-00b8-45b0-b2b8-a4743c879ac6 50398e8030bb497a9a4bbd1429576ad2 411625da55b546e2ba68b8dc9e111ab6] Result was 0 execute /usr/lib/python2.7/dist-packages/nova/utils.py:203
2013-03-11 11:22:00 DEBUG nova.utils [req-0918d30d-00b8-45b0-b2b8-a4743c879ac6 50398e8030bb497a9a4bbd1429576ad2 411625da55b546e2ba68b8dc9e111ab6] Got semaphore "/var/lib/nova/instances/_base/876d0b1240b2bfa3bb04fa14f184db987604d322" for metho
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
var Util         = require('util');
var EventEmitter = require('events').EventEmitter;

function myfunc(cb) {
  EventEmitter.call(this);
  this.emit('end');
  cb();
}
Util.inherits(myfunc, EventEmitter);
@jpmx
jpmx / packages
Created August 11, 2013 03:28
Meteor table render bug
# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
autopublish
insecure
preserve-inputs
jquery
bootstrap
"use strict";
this.MysqlBinlogTailer = MysqlBinlogTailer;
var EventEmitter = require('events').EventEmitter;
var fs = require('fs');
var path = require('path');
/**
* Tails a Mysql binlog and emits an event for every query executed.
*/

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.