Skip to content

Instantly share code, notes, and snippets.

@curtislacy
curtislacy / Basic Ubuntu Setup
Last active October 14, 2022 11:53 — forked from mikermcneil/Node.js installation on Rackspace
Installing nodejs, npm, and all their pals on an Ubuntu 12.x server
############################################################################
# Installing nodejs, npm, and all their pals on an Ubuntu 12.x server
############################################################################
# Make sure we're getting the newest packages.
sudo apt-get update
# If this is a local image, you may need sshd set up.
sudo apt-get install openssh-server openssh-client
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
@curtislacy
curtislacy / $.fn.outerHTML.js
Created August 27, 2013 14:49 — forked from jboesch/$.fn.outerHTML.js
Quick sample of how to add a JQuery extension function.
/*
* Full example here: http://jsfiddle.net/jboesch26/3SKsL/1/
*/
$.fn.outerHTML = function(){
// IE, Chrome & Safari will comply with the non-standard outerHTML, all others (FF) will have a fall-back for cloning
return (!this.length) ? this : (this[0].outerHTML || (
function(el){
var div = document.createElement('div');