Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
## railsbox.org:~ ozeias$ vim /etc/init.d/spawn-fcgi | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts FastCGI for PHP |
<?php | |
/** | |
* LDAP PHP Change Password Webpage | |
* @author: Matt Rude <http://mattrude.com> | |
* @website: http://technology.mattrude.com/2010/11/ldap-php-change-password-webpage/ | |
* | |
* | |
* GNU GENERAL PUBLIC LICENSE | |
* Version 2, June 1991 |
var crypto = require('crypto') | |
, key = 'salt_from_the_user_document' | |
, plaintext = 'password' | |
, cipher = crypto.createCipher('aes-256-cbc', key) | |
, decipher = crypto.createDecipher('aes-256-cbc', key); | |
cipher.update(plaintext, 'utf8', 'base64'); | |
var encryptedPassword = cipher.final('base64') | |
decipher.update(encryptedPassword, 'base64', 'utf8'); |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar -xvzf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
./configure --prefix=/usr/local | |
make | |
make install |
#!/bin/bash | |
# nexusdeb builds a debian package of the Nexus repository manager. nexusdeb | |
# downloads nexus by itself. You run it by | |
# nexusdeb.sh <version> <maintainer> | |
# Example: | |
# nexusdeb.sh 2.0.5 "Denny Colt <d.colt@eisner.qcg>" | |
# | |
# The script has been tested with version 2.0.5. | |
if [ -z $1 ] |
var Sequelize = require('sequelize') | |
, sequelize = new Sequelize('sequelize_test', 'root', null, { | |
logging: false | |
}) | |
var Project = sequelize.define('project', { | |
name: Sequelize.STRING | |
}) | |
var Task = sequelize.define('task', { |
from tornado.web import asynchronous, RequestHandler, Application | |
from tornado import gen | |
from tornado.testing import AsyncHTTPTestCase, gen_test | |
from tornado.httpclient import AsyncHTTPClient, HTTPRequest, HTTPResponse | |
from mock import patch, Mock | |
from tornado.concurrent import Future | |
import StringIO | |
class FooHandler(RequestHandler): |
#!/usr/bin/env python | |
''' | |
Mocking Httpclient and AsyncHttpclient in Tornado Server | |
''' | |
import unittest | |
import urllib | |
import tornado.gen | |
import tornado.ioloop | |
import tornado.web |