Skip to content

Instantly share code, notes, and snippets.

View qnm's full-sized avatar

Rob qnm

  • Sydney, Australia
View GitHub Profile
# /etc/ushare.conf
# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=helios
# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=br-lan
# Port to listen to (default is random from IANA Dynamic Ports range)
We couldn’t find that file to show.
[robsharp@robsharp rc]$ bundle show
Gems included by the bundle:
* actionmailer (2.3.5)
* actionpack (2.3.5)
* activerecord (2.3.5)
* activerecord-oracle_enhanced-adapter (1.2.4)
* activeresource (2.3.5)
* activesupport (2.3.5)
* addressable (2.1.2)
* data_objects (0.10.2)
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "centos-5.5"
config.vm.provisioner = :chef_solo
config.chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
config.chef.roles_path = "roles"
@qnm
qnm / gist:458315
Created June 30, 2010 06:27 — forked from lankz/gist:458306
sed -i 's/[[:space:]]*$//' my_file_name
--------- Forwarded message ----------
From: Guy Incognito <withheld@gmail.com>
To: undisclosed-recipients:;
Date: Mon, 7 Feb 2011 22:36:28 +0100
Subject: Urgent
Hi,
Apologies for having to reach out to you like this, but I made a
quick trip, to London,United Kingdom and had my bag
stolen from me with my passport and credit cards in it. The embassy
is willing to help by authorizing me to fly without my passport, I
@qnm
qnm / gist:5166708
Created March 15, 2013 01:02
Webrick One Liner
ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd).start'
@qnm
qnm / gist:5259944
Last active December 15, 2015 12:28
<div id="my-table"></div>
<script type="text/javascript">
function ratecityConfig() {
// product request configuration
var config ={
vertical: 'credit-cards',
stylesheet: "//www.ratecity.com.au/assets/widget.css",
container: 'my-table',
<param value="FlashVars" name="utm_source=omg&utm_campign=homepage" />
@qnm
qnm / gist:5479610
Created April 29, 2013 03:49
Use system libv8 when using bundler, to work around fedora 19 compilation issues
bundle config build.libv8 --with-system-v8