Skip to content

Instantly share code, notes, and snippets.

diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 59075ab..c2af1b1 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -2,10 +2,16 @@
.row
.col-md-9
- = render "events/event_last_push", event: @last_push
- = render 'shared/event_filter'
@kohenkatz
kohenkatz / README.md
Created March 24, 2014 04:02
How to run Dada Mail under nginx

#Dada Mail (or any other CGI) on Nginx

DISCLAIMER: DO NOT rely on this for production (yet)! I'm not done testing it out.

Nginx does not have built in support for traditional CGI applications (of which Dada Mail is one), so it won't work out of the box.

To make a very long story short, here are a Plack wrapper script and nginx configuration that I have found seem to work.

Notes:

@kohenkatz
kohenkatz / output.log
Created July 23, 2014 04:20
Atom plugin build error
Installing atom-color-highlight to C:\Users\moshe\.atom\packages failed
> oniguruma@2.0.0 install C:\Users\moshe\AppData\Local\Temp\apm-install-dir-114622-13172-fbp86q\node_modules\atom-color-highlight\node_modules\oniguruma
> node-gyp rebuild
C:\Users\moshe\AppData\Local\Temp\apm-install-dir-114622-13172-fbp86q\node_modules\atom-color-highlight\node_modules\oniguruma>node "C:\Chocolatey\lib\Atom.0.117.0\tools\Atom\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
regposix.c
regposerr.c
@kohenkatz
kohenkatz / run.log
Created September 12, 2014 01:05
Successfully building and running Redis on my in-memory filesystem using bazil.org/fuse
mmkatz@hyperion:/tmp/mmkatz/fuse-test/redis/src$ ./redis-server
13958:C 11 Sep 21:03:08.268 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf
13958:M 11 Sep 21:03:08.270 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
13958:M 11 Sep 21:03:08.270 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
13958:M 11 Sep 21:03:08.270 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.9.999 (f5efa9bb/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
@kohenkatz
kohenkatz / aloha-config.js
Created September 4, 2012 15:07 — forked from evo42/aloha-config.js
Aloha Editor -- send content via ajax to a backend php script to save the data edited with Aloha Editor
( function ( window, undefined ) {
var Aloha = window.Aloha || ( window.Aloha = {} );
Aloha.settings = {
logLevels: { 'error': true, 'warn': true, 'info': true, 'debug': false, 'deprecated': true },
errorhandling: false,
ribbon: false,
locale: 'en',
floatingmenu: {
width: 630,
@kohenkatz
kohenkatz / broken command transcript.md
Created November 15, 2012 05:18
Github SVN errors with bobthecow/mustache.php

SVN Traffic Capture (via Fiddler2 Proxy) of erroring command

Request

OPTIONS /bobthecow/mustache.php HTTP/1.1
User-Agent: SVN/1.7.7 neon/0.29.6
Connection: TE

TE: trailers

<?php defined('SYSPATH') OR die('No direct access allowed.');
class Model_ActionPlan extends Mongo_Document
{
/**
* The name of the collection within the database.
*
* @var string
*/
protected $name;
@kohenkatz
kohenkatz / gist:4353369
Last active December 10, 2015 00:48
Stack Trace
2012-12-10 14:48:44 --- CRITICAL: ErrorException [ 8 ]: Undefined property: Model_ActionPlan::$status ~ MODPATH\baloo\classes\Model\ActionPlan.php [ 78 ] in <APP DIRECTORY>\modules\baloo\classes\Model\ActionPlan.php:78
2012-12-10 14:48:44 --- DEBUG: #0 C:\Web\CMSC435-game\branches\gameplay\modules\baloo\classes\Model\ActionPlan.php(78): Kohana_Core::error_handler(8, 'Undefined prope...', 'C:\Web\CMSC435-...', 78, Array)
#1 <APP DIRECTORY>\modules\baloo\classes\Model\ActionPlan.php(32): Model_ActionPlan->close(Object(Model_Game), Object(Model_User), 'failure')
#2 <APP DIRECTORY>\modules\mongodb\classes\Mongo\Document.php(868): Model_ActionPlan->after_load()
#3 <APP DIRECTORY>\modules\mongodb\classes\Mongo\Document.php(992): Mongo_Document->load_values(Array, true)
#4 <APP DIRECTORY>\modules\mongodb\classes\Mongo\Document.php(561): Mongo_Document->load()
#5 <APP DIRECTORY>\modules\baloo\classes\Model\Question.php(285): Mongo_Document->__get('status')
#6 <APP DIRECTORY>\modules\baloo\classes\Model\Game.php(68):
@kohenkatz
kohenkatz / install-ruby2.sh
Created August 19, 2013 02:11
How to install Ruby 2.0.0 on Ubuntu
# Install the prereqs.
sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev
# Make sure there are no old versions lying around...
sudo apt-get remove -y ruby1.8 ruby1.9.1 ruby-1.9.3
mkdir /tmp/ruby && cd /tmp/ruby
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz
cd ruby-2.0.0-p247
./configure
@kohenkatz
kohenkatz / main.js
Created October 9, 2013 16:26
How to use jQuery Timeago (http://timeago.yarp.com/) plugin in Durandal. I put this code in my `main.js` file (after the plugin initialization), but there's probably a better place (a plugin file, or similar).
composition.addBindingHandler('timeago',{
init: function(element, valueAccessor) {
var value = ko.utils.unwrapObservable(valueAccessor());
var $this = $(element);
$this.attr($.timeago.isTime($this) ? 'datetime' : 'title', value);
$this.timeago();
},
update: function(element, valueAccessor) {