Skip to content

Instantly share code, notes, and snippets.

View MarkBennett's full-sized avatar

Mark Bennett MarkBennett

View GitHub Profile
// ==========================================================================
// Project: Questions.itemBanksController
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Questions */
/** @class
(Document Your Controller Here)
// ==========================================================================
// Project: Questions - mainPage
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Questions */
// This page describes the main user interface for your application.
Questions.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
>>>: aptitude search libxml2
i libxml2 - GNOME XML library
p libxml2-dbg - Debugging symbols for the GNOME XML library
i libxml2-dev - Development files for the GNOME XML library
p libxml2-doc - Documentation for the GNOME XML library
i libxml2-utils - XML utilities
i python-libxml2 - Python bindings for the GNOME XML library
p python-libxml2-dbg
~: telnet smedia.yardstickmeasure.com 80
Trying 67.192.196.1...
Connected to smedia.yardstickmeasure.com.
Escape character is '^]'.
GET /stylesheets/base/login.css?1284414930
<h1>Bad Request (Invalid Hostname)</h1>Connection closed by foreign host.
@MarkBennett
MarkBennett / gem-scan-0.41-ubuntu
Created October 17, 2010 19:00
Result of running latest gem scan on Ubuntu
~/versioned: gem scan .
Trying to process a Gemfile found in /home/mark/versioned/em-websocket
Trying to process a Gemfile found in /home/mark/versioned/rails
Trying to process a Gemfile found in /home/mark/versioned/rails/railties/lib/rails/generators/rails/app/templates
Trying to process a Gemfile found in /home/mark/versioned/yegtrash
Display http://gemrage.com/dashboard with "My poop here". :P
~/versioned: gem scan
Scanning with RVM...this might take a while
Scanning RVM config Usage: rvm list {known,default,rubies,strings}
~/versioned:
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
# Mayor.create(:name => 'Daley', :city => cities.first)
require Rails.root.join("spec", "blueprints")
ubuntu@ubuntu:~$ sudo apt-get install nvidia-current
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dkms fakeroot nvidia-settings patch screen-resolution-extra
Suggested packages:
diffutils-doc
The following NEW packages will be installed:
dkms fakeroot nvidia-current nvidia-settings patch screen-resolution-extra
@MarkBennett
MarkBennett / csv_renderer.gemspec
Created December 31, 2010 22:28
failed to push some WTF?
# Provide a simple gemspec so you can easily use your enginex
# project in your rails apps through git.
Gem::Specification.new do |s|
s.name = "csv_renderer"
s.author = "Mark Bennett"
s.email = "mark@burmis.ca"
s.homepage = "https://github.com/MarkBennett/csv_renderer"
s.summary = "A Rails3 renderer for the Comma Seperated Value (CSV) format."
s.description = "A Rails3 renderer for the Comma Seperated Value (CSV) format. Thank-you to @josevalim for his excellent Crafting Rails3 Applications book which inspired this gem."
s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
@MarkBennett
MarkBennett / tmux-session.sh
Created January 4, 2011 22:44
A script I use to quickly setup the tmux session I use for developement
#!/bin/sh
#
# window 0 = irc
# window 1 = development server
# window 2 = vim w/ autotest split
# window 3 = console
# window 4 = remote server
tmux new-session -s litdistco -n irc \; new-window -n server \; new-window -n vim \; split-window -d -p 30 \; new-window -n console \; new-window -n remote