Skip to content

Instantly share code, notes, and snippets.

View retrofox's full-sized avatar
🦊
🪞

Damián Suárez retrofox

🦊
🪞
View GitHub Profile
damian <damian@learnboost.com>
rauchg <rauchg@gmail.com>
/**
* app global var
*/
app = config = require('../config')
/**
* Module dependencies.
*/
public/js/reporting.js
public/js/website/main.js
public/js/calendar.js
public/js/admin.users.js
public/js/app.js
public/js/roster.js
public/js/lesson-plan.js
public/js/components/feedback.backend.js
public/js/util/qs.js
public/js/upload.js
public/js/reporting.js
public/js/website/main.js
public/js/support/jquery.js
public/js/support/jquery-ui-legacy/jquery-1.5.1.js
public/js/support/jquery-ui-legacy/ui/jquery.ui.tabs.js
public/js/support/jquery-ui-legacy/tests/unit/draggable/draggable.html
public/js/support/jquery-ui-legacy/tests/unit/datepicker/datepicker.html
public/js/support/jquery-ui-legacy/tests/unit/swarminject.js
public/js/support/jquery-ui-legacy/tests/unit/slider/slider.html
public/js/support/jquery-ui-legacy/tests/unit/selectable/selectable.html
public/js/reporting.js
public/js/website/main.js
public/js/support/jquery.js
public/js/support/jquery-ui-legacy/jquery-1.5.1.js
public/js/support/jquery-ui-legacy/ui/jquery.ui.tabs.js
public/js/support/jquery-ui-legacy/ui/jquery.ui.dialog.js
public/js/support/jquery-ui-legacy/tests/unit/draggable/draggable.html
public/js/support/jquery-ui-legacy/tests/unit/datepicker/datepicker.html
public/js/support/jquery-ui-legacy/tests/unit/swarminject.js
public/js/support/jquery-ui-legacy/tests/unit/slider/slider.html
total 70752
drwxr-xr-x 2 rino www-data 4096 2011-11-29 00:06 bin
drwxr-xr-x 3 rino www-data 4096 2011-11-29 00:06 boot
-rw-r--r-- 1 root root 229 2011-11-14 15:09 config.js
lrwxrwxrwx 1 rino www-data 9 2011-04-13 21:45 css -> views/css
drwxr-xr-x 7 rino www-data 4096 2011-11-29 00:06 data
-rw-r--r-- 1 root root 393355 2011-11-20 03:34 dump.rdb
-rw-r--r-- 1 root root 811 2011-11-14 15:09 History.md
-rw-r--r-- 1 root root 4310 2011-11-14 15:09 index.js
drwxr-xr-x 2 root root 4096 2011-11-29 00:06 jobs
/**
* MongoDB script that attempts to remove bastards calendars
* A calendar is a bastard calendar when:
* - has an ObjectId _classroom property
* - Classroom Object with that _classroom ObjectId() no longer exists.
*/
var calendars = db.calendars.find({ _classroom: { $ne: null }})
, i = 0
@retrofox
retrofox / gist:1355089
Created November 10, 2011 15:17
desktop dev configuration
# prints git current branch into project folder
function currentBranch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
}
PS1="\h:\w\[\033[0;36m\]\$(currentBranch) \[\033[0m\]\$ "
# git alias
alias gko='git checkout'
alias gb='git branch'
alias gba='git branch -a'
new Date("2011-11-02T02:00:00.000Z")
Tue Nov 01 2011 19:00:00 GMT-0700 (PDT)
$.fullCalendar.parseISO8601("2011-11-02T02:00:00.000Z")
Wed Nov 02 2011 02:00:00 GMT-0700 (PDT)
$.fullCalendar.parseISO8601("2011-11-02T02:00:00.000Z",true)
Wed Nov 02 2011 02:00:00 GMT-0700 (PDT)
$.fullCalendar.parseISO8601("2011-11-02T02:00:00.000Z",false)
Wed Nov 02 2011 02:00:00 GMT-0700 (PDT)
# learnboost amazon access
alias lbproduction='ssh -i ~/.ec2/rauchg.pem root@184.73.209.169'
alias lbreplica1='ssh -i ~/.ec2/rauchg.pem ec2-user@184.73.159.73'
alias lbreplica2='ssh -i ~/.ec2/rauchg.pem ec2-user@184.73.209.169'
alias lbreplica3='ssh -i ~/.ec2/rauchg.pem ec2-user@50.17.255.157'
alias lbstage='ssh -i ~/.ec2/rauchg.pem ec2-user@184.73.159.55'
alias lbchalk='ssh -i ~/.ec2/rauchg.pem ec2-user@50.17.255.98'