Skip to content

Instantly share code, notes, and snippets.

View zeekay's full-sized avatar
💎
👋

z zeekay

💎
👋
View GitHub Profile
@zeekay
zeekay / gist:2891146
Created June 7, 2012 19:49
Smart Machine .bashrc
alias v=vim
PATH=$HOME/local/bin:$HOME/local/nodejs/bin:/opt/nodejs/bin:/usr/nodejs/bin:/opt/local/bin:/opt/local/sbin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/usr/ccs/bin
MANPATH=$HOME/local/share/man:/opt/nodejs/share/man:/opt/local/man:/opt/local/share/man:/usr/share/man:/usr/sfw/share/man:/usr/openwin/share/man
PAGER=/usr/bin/less
LIBRARY_PATH=/home/node/local/nodejs/lib:/lib:/usr/lib:/opt/local/lib:/opt/gcc/lib
INCLUDE_PATH=/home/node/local/nodejs/include:/opt/local/include
C_INCLUDE_PATH=$INCLUDE_PATH
CPLUS_INCLUDE_PATH=$INCLUDE_PATH
NODE_PATH=$HOME/node_modules:$HOME/local/lib/node_modules:/opt/nodejs/lib/node_modules
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:$HOME/local/nodejs/lib/pkgconfig
die = require('die')
base: __dirname
app = die.createServer ->
@use '/app2', require 'app2'
@use '/app3', require 'app3'
@use '/app4', require 'app4'
module.exports = app
#!/usr/bin/env coffee
# A very simple Read-Eval-Print-Loop. Compiles one line at a time to JavaScript
# and evaluates it. Good for simple tests, or poking around the **Node.js** API.
# Using it looks like this:
#
# coffee> console.log "#{num} bottles of beer" for num in [99..1]
# Start by opening up `stdin` and `stdout`.
stdin = process.openStdin()
stdout = process.stdout
md = require('markdown').markdown
read = require('fs').readFileSync
app = require('die')
base: __dirname
app.inject require '../app2'
app.mount 'app3', require '../app3'
app.extend ->
@set 'view options'
require 'formula'
class Macvim < Formula
homepage 'http://code.google.com/p/macvim/'
url 'https://github.com/b4winckler/macvim/tarball/snapshot-64'
version '7.3-64'
md5 '5bdc0bc618b3179130f846f8d0f81283'
head 'https://github.com/b4winckler/macvim.git', :branch => 'master'
Zombie: GET https://chrome.google.com/webstore/detail/amfalcbcdebaemokjapphcfnldiogddk/details => 200
Zombie: GET https://chrome.google.com/webstore/detail/gdiimmpmdoofmahingpgabiikimjgcia/details => 200
Zombie: GET https://chrome.google.com/webstore/static/1343683323/wall/js/webstore.js => 200
Zombie: GET https://www.google.com/jsapi => 200
Zombie: GET https://apis.google.com/js/plusone.js => 200
Zombie: Firing timeout after 1ms delay
Zombie: Firing timeout after 1ms delay
Zombie: Firing timeout after 1ms delay
Zombie: Firing timeout after 1ms delay
Zombie: Firing timeout after 1ms delay
modelist = require 'modelist'
modelist.connect 'mongodb://localhost/chromestore'
exports.App = modelist 'App',
guid:
type: String
index: true
unique: true
category: String
creator: String
modelist = require 'modelist'
modelist.connect 'mongodb://localhost/chromestore'
exports.App = modelist 'App',
guid:
type: String
index: true
unique: true
category: String
creator: String
let g:disable_arrow_keys = 1
so ~/.vim/vimrc
nnoremap ; :
vnoremap ; :
nnoremap J <c-d>
nnoremap K <c-u>
vnoremap J <c-d>
#user http;
worker_processes 4;
#worker_cpu_affinity 0100 1000;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;