Skip to content

Instantly share code, notes, and snippets.

View miknight's full-sized avatar

Michael Knight miknight

View GitHub Profile
#!/bin/bash
rsync -avz --exclude pull.sh --exclude push.sh user@server.com:/path/to/folder/ .
date
#!/bin/bash
rsync -auvz --exclude push.sh --exclude pull.sh --exclude .git --exclude css --exclude .css --exclude /inc/js/jqgrid/themes/ --exclude .DS_Store . user@server.com:/path/to/folder/
date
-showlocation
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx384m
-Xss2m
% tidy -e test.html
line 28 column 1 - Warning: missing </pre> before <table>
line 43 column 7 - Warning: inserting implicit <pre>
line 51 column 1 - Warning: missing </pre> before <table>
line 78 column 7 - Warning: inserting implicit <pre>
line 91 column 1 - Warning: missing </pre> before <table>
line 128 column 7 - Warning: inserting implicit <pre>
line 171 column 1 - Warning: missing </pre> before <table>
line 206 column 7 - Warning: inserting implicit <pre>
line 217 column 1 - Warning: missing </pre> before <table>
#!/usr/bin/env ruby
require 'rubygems'
require 'prawn'
require 'prawn/layout'
data = [["Gregory","Brown"],["James","Healy"],["Jia","Wu"]]
Prawn::Document.generate("table.pdf") do
table data, :headers => ["First Name", "Last Name"]