I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| from fabric.api import * | |
| """ | |
| Base configuration | |
| """ | |
| env.project_name = '$(project)' | |
| env.database_password = '$(db_password)' | |
| env.site_media_prefix = "site_media" | |
| env.admin_media_prefix = "admin_media" | |
| env.newsapps_media_prefix = "na_media" |
| # For "Classic" style/top-level type of apps do something like: | |
| # | |
| # configure :development do | |
| # require File.join(File.dirname(__FILE__), 'sinatra_reloader') | |
| # set :reload_paths, [File.join(File.dirname(__FILE__), '**', '*.rb')] | |
| # end | |
| # | |
| # For "Modular" style/Sinatra::Base subclasses: | |
| # | |
| # configure :development do |
| include $(GOROOT)/src/Make.inc | |
| GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4 | |
| all: | |
| $(GC) jsontest.go | |
| $(LD) -o jsontest.out jsontest.$O | |
| format: | |
| $(GOFMT) -w jsontest.go |
| #requires -version 2.0 | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string] | |
| $ComputerName, | |
| [Parameter(Mandatory=$true)] | |
| [string] |
| # | |
| # Cookbook Name:: development | |
| # Recipe:: renameComputer | |
| # | |
| # Copyright 2011, YOUR_COMPANY_NAME | |
| # | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| powershell "Join Active Directory Domain" do |
| # vmc update is great for test and development, however it stops your old app and stages and starts the new one, | |
| # resulting in dropped requests. | |
| # If you want to update an application without dropping user requests, see below. | |
| # NOTE: This change assumes your application can share services, etc with the new version. | |
| # Assume my app is named foo | |
| vmc push foo-v2 --url foov2.cloudfoundry.com |
| var steps = 0 // steps drawn on the current element, so far | |
| , info = document.getElementById('next_step') | |
| , svgs = [].slice.call(document.getElementsByTagName('svg')) | |
| , svg, walker, current; | |
| function lexSVGPath(d) { | |
| function command(seg) { | |
| var cmd = seg.match(/[a-z]/i), arg, cnt; | |
| if (cmd) { | |
| cmd = cmd[0]; // which subcommand |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| #!/usr/bin/env bash | |
| # | |
| # =================================== | |
| # Experiments with the HBase REST API | |
| # =================================== | |
| # | |
| # <http://hbase.apache.org/docs/r0.20.4/api/org/apache/hadoop/hbase/rest/package-summary.html> | |
| # | |
| # Usage: | |
| # |