Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)
- Some utilities:
sudo apt-get install vim tmux git curl
- Copy/paste from the command line:
These are the things I did in order to have Gitosis installed and working on my Snow Leopard Server: | |
1. Install Git. | |
I use the installer for OS X provided by Google Code (http://git-osx-installer.googlecode.com/files/git-1.6.5.7-intel-leopard.dmg). | |
2. Install Gitosis | |
I got the Gitosis from the eagain.net server and I installed using Python bundled with Snow Leopard. | |
$ git clone git://eagain.net/gitosis.git | |
$ cd gitosis && python setup.py install |
#import <Foundation/Foundation.h> | |
@interface NSArray (Globbing) | |
+ (NSArray*) arrayWithFilesMatchingPattern: (NSString*) pattern inDirectory: (NSString*) directory; | |
@end |
/* | |
asynctask.m -- sample code that shows how to implement asynchronous stdin, stdout & stderr streams for processing data with NSTask | |
compile with: | |
gcc -Wall -O3 -x objective-c -fobjc-exceptions -framework Foundation -o asynctask asynctask.m | |
./asynctask | |
./asynctask > asynctask-output.txt 2>&1 |
#!/usr/bin/env ruby -w | |
# fix_ovf: convert virtualbox ovf documents to work with vmware | |
# Usage: fix_ovf < vbox.ovf > vmware.ovf | |
require 'nokogiri' | |
class OVFDocument < Nokogiri::XML::Document | |
XMLNS = { | |
'rasd' => "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData", | |
'vssd' => "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData", |
package main | |
import ( | |
"bytes" | |
"exec" | |
"log" | |
"os" | |
) | |
// Pipeline strings together the given exec.Cmd commands in a similar fashion |
#!/usr/bin/env bash | |
set -o errtrace | |
set -o errexit | |
facter_version=$1 | |
puppet_version=$2 | |
target_volume=$3 |
#!/usr/local/bin/node | |
// ThisService node.js service script example, by Christian Eager | |
// Service type: Acts on input | |
// | |
// Node.js does *not* ship with OS X | |
// Download and installation instructions are available at http://nodejs.org | |
process.stdin.resume() | |
// Makes the data event emit a string instead of a Buffer |
sudo apt-get install vim tmux git curl
This playbook has been removed as it is now very outdated. |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |