Skip to content

Instantly share code, notes, and snippets.

@durango
durango / app.js
Created December 3, 2012 15:41 — forked from katanacrimson/app.js
nodejs app - expressjs 3.0 + socket.io v9 + passport + redis
var express = require('express'),
passport = require('passport'),
LocalStrategy = require('passport-local').Strategy,
connect = require('connect'),
http = require('http'),
path = require('path'),
util = require('util'),
fs = require('fs'),
redis = require('redis'),
cookie = require('cookie'),
@durango
durango / file.js
Last active December 11, 2015 17:09
// Upcoming DAOFactory concept for sequelizejs
var async = require('async');
var _ = require('lodash');
var Klass = function() {
this.bin;
this.primaryKey = 'id';
this.length = 0;
set :application, "SampleApp"
set :repository, "."
set :scm, :none
set :use_sudo, false
set :keep_releases, 5
#Use the copy method which will compress and scp the files
set :deploy_via, :copy
set :main_js, "app.js"
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
$ git log | tail -n5
commit 5e3aa42c84bbd7c82b1d0b595ca13b49d3a6e8bf
Author: James Halliday <mail@substack.net>
Date: Wed Mar 13 15:16:33 2013 -0700
happstack article
$ git filter-branch --env-filter 'if [ "$GIT_COMMIT" = "5e3aa42c84bbd7c82b1d0b595ca13b49d3a6e8bf" ]; then GIT_AUTHOR_DATE="2009-10-25 09:59:47 UTC"; fi'
Rewrite 85a994a56fc0fae5c9f082b1e2dbb2ee8ee23ceb (7/7)
Ref 'refs/heads/master' was rewritten
@durango
durango / code.js
Created May 10, 2013 03:27
DataTypes error on SequelizeJS
var data = sequelize.define('NativeDataType', {
aBoolean3: Sequelize.BOOLEAN,
aBoolean4: {type: Sequelize.BOOLEAN}
})
console.log(data);
#!/usr/bin/env ruby
# Made by Pieter de Bie <frimmirf@gmail.com>
# Based on a "Pastie" task by someone
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
GIST_LOGIN_URL = 'https://gist.github.com/session'
USERNAME = "martinisoft"
TOKEN = "6ef8395fecf207165f1a82178ae1b984"
/*
---
name: guilloche
script: guilloche.js
description: guilloche
provides: [Guilloche]
...
*/
@durango
durango / gitpro
Last active December 19, 2015 01:09
easily create centralized git projects on any server
#!/usr/bin/env bash
PROJ_NAME=""
PROJ_GIT_DIR=""
PROJ_DIR=""
PROJ_ROOT=""
PROJ_GIT_ROOT=""
PWD=$(pwd)
function set_config_vars () {