setup directory and clone from githhub
mkdir ~/.local
cd ~/.local
git clone https://github.com/joyent/node.git
cd node
namespace :secret do | |
desc "Edit an encrypted data bag item in EDITOR" | |
task :edit, :data_bag, :bag_item do |t, args| | |
unless ENV['EDITOR'] | |
puts "No EDITOR found. Try:" | |
puts "export EDITOR=vim" | |
puts "or" | |
puts "export EDITOR='subl -w'" | |
exit 1 | |
end |
.col-1 { | |
width: 6.85484%; | |
float: left; | |
margin-right: 1.6129%; | |
display: inline; | |
} | |
.col-2 { | |
width: 15.32258%; | |
float: left; |
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
svn info >/dev/null 2>/dev/null && echo 'ಠ_ಠ' && return | |
echo '○' | |
} | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' | |
} |
grunt.registerMultiTask('deploy', 'deploy program to cloud', function() { | |
var pkgcloud = require('pkgcloud') | |
, walk = require('walk') | |
, fs = require('fs') | |
, done = this.async() | |
, self = this; | |
grunt.log.w |
!!! 5 | |
//if lt IE 7 | |
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> | |
//if IE 7 | |
<html class="no-js lt-ie9 lt-ie8"> | |
//if IE 8 | |
<html class="no-js lt-ie9"> | |
//[if gt IE 8]><! | |
html(class='no-js') | |
//<![endif] |
setup directory and clone from githhub
mkdir ~/.local
cd ~/.local
git clone https://github.com/joyent/node.git
cd node
I hereby claim:
To claim this, I am signing this object:
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo '±' && return | |
hg root >/dev/null 2>/dev/null && echo '☿' && return | |
svn info >/dev/null 2>/dev/null && echo 'ಠ_ಠ' && return | |
echo '○' | |
} | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' | |
} |
Example usage:
This middleware uses the request object to set arbitrary data available at either req.render
or req.redirect
;
routes.js
var setRedirect = require('respond-middleware').redirect;
var setRender = require('respond-middleware').render;
Create a directory for this project and install the dependencies.
npm install adm-zip loggly
Download the log files for Rackspace Cloud Load Balancers from the Cloud Files container, ex: lb_123456_lb-name_Sep_2014
.
Then, create an examples
directory and put the zipped log files there.