Skip to content

Instantly share code, notes, and snippets.

View dosire's full-sized avatar

Sytse Sijbrandij dosire

  • Dosire
View GitHub Profile
[ 2675.525]
X.Org X Server 1.11.3
Release Date: 2011-12-16
[ 2675.526] X Protocol Version 11, Revision 0
[ 2675.526] Build Operating System: Linux 2.6.24-31-server i686 Ubuntu
[ 2675.526] Current Operating System: Linux hp5420s 3.2.0-25-generic-pae #40-Ubuntu SMP Wed May 23 22:11:24 UTC 2012 i686
[ 2675.526] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic-pae root=UUID=2b60a266-7971-4974-815e-0d282d59116f ro quiet
[ 2675.526] Build Date: 07 May 2012 11:39:37PM
[ 2675.526] xorg-server 2:1.11.4-0ubuntu10.2 (For technical support please see http://www.ubuntu.com/support)
[ 2675.526] Current version of pixman: 0.24.4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<head>
<script src="http://partner.googleadservices.com/gampad/google_service.js" type="text/javascript"></script>
<script type="text/javascript">
GS_googleAddAdSenseService("ca-pub-3283567966420294");
GS_googleEnableAllServices();
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>H:\andreamosaic\globe Mosaic02 Web Page.html created by AndreaMosaic</title>
<script language="javascript">
function U(F, Coords)
{
var Z = document.getElementById("MyZoom");
Z.src = F ;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>H:\andreamosaic\globe Mosaic02 Web Page.html created by AndreaMosaic</title>
<script language="javascript">
function U(F, Coords)
{
var Z = document.getElementById("MyZoom");
Z.src = F ;
http://www.google.com/baraza/,http://www.google.com/flights/,http://www.google.com/calendar,http://mail.google.com/,http://www.google.com/reader/,http://www.google.com/shoppinglist,https://www.google.com/offers/,http://spreadsheets.google.com/,http://www.google.com/ig,https://www.google.com/health,http://www.google.com/analytics/,http://docs.google.com,http://picasaweb.google.com/,https://profiles.google.com/,http://www.google.com/language_tools,http://www.google.com/finance,https://plus.google.com/,http://www.google.com/places/,http://books.google.com/,http://maps.google.com/,http://www.google.com/moderator/,https://www.google.com/bookmarks/,https://www.google.com/advisor/,http://www.google.com/products,http://www.google.com/,http://groups.google.com/,http://www.google.com/friendconnect/,http://sites.google.com/,http://www.facebook.com/,http://www.youtube.com/,http://mail.yahoo.com/,http://buzz.yahoo.com/,http://webmessenger.yahoo.com/,http://pipes.yahoo.com/,http://weather.yahoo.com/,http://groups.yahoo.com
{"VA"=>"Holy See (Vatican City State)", "CC"=>"Cocos (Keeling) Islands", "GT"=>"Guatemala", "JP"=>"Japan", "SE"=>"Sweden", "TZ"=>"Tanzania, United Republic of", "CD"=>"Congo, the Democratic Republic of the", "GU"=>"Guam", "MM"=>"Myanmar", "DZ"=>"Algeria", "MN"=>"Mongolia", "PK"=>"Pakistan", "SG"=>"Singapore", "VC"=>"Saint Vincent and the Grenadines", "CF"=>"Central African Republic", "GW"=>"Guinea-Bissau", "MO"=>"Macao", "PL"=>"Poland", "SH"=>"Saint Helena", "CG"=>"Congo", "MP"=>"Northern Mariana Islands", "PM"=>"Saint Pierre and Miquelon", "SI"=>"Slovenia", "VE"=>"Venezuela", "ZW"=>"Zimbabwe", "CH"=>"Switzerland", "GY"=>"Guyana", "MQ"=>"Martinique", "PN"=>"Pitcairn", "SJ"=>"Svalbard and Jan Mayen", "CI"=>"Cote d'Ivoire", "MR"=>"Mauritania", "SK"=>"Slovakia", "VG"=>"Virgin Islands, British", "MS"=>"Montserrat", "SL"=>"Sierra Leone", "CK"=>"Cook Islands", "ID"=>"Indonesia", "MT"=>"Malta", "SM"=>"San Marino", "VI"=>"Virgin Islands, U.S.", "YE"=>"Yemen", "CL"=>"Chile", "IE"=>"Ireland", "LA"=>"Lao People's Democr
{"VA"=>"Holy See (Vatican City State)", "CC"=>"Cocos (Keeling) Islands", "GT"=>"Guatemala", "JP"=>"Japan", "SE"=>"Sweden", "TZ"=>"Tanzania, United Republic of", "CD"=>"Congo, the Democratic Republic of the", "GU"=>"Guam", "MM"=>"Myanmar", "DZ"=>"Algeria", "MN"=>"Mongolia", "PK"=>"Pakistan", "SG"=>"Singapore", "VC"=>"Saint Vincent and the Grenadines", "CF"=>"Central African Republic", "GW"=>"Guinea-Bissau", "MO"=>"Macao", "PL"=>"Poland", "SH"=>"Saint Helena", "CG"=>"Congo", "MP"=>"Northern Mariana Islands", "PM"=>"Saint Pierre and Miquelon", "SI"=>"Slovenia", "VE"=>"Venezuela", "ZW"=>"Zimbabwe", "CH"=>"Switzerland", "GY"=>"Guyana", "MQ"=>"Martinique", "PN"=>"Pitcairn", "SJ"=>"Svalbard and Jan Mayen", "CI"=>"C\303\264te d'Ivoire", "MR"=>"Mauritania", "SK"=>"Slovakia", "VG"=>"Virgin Islands, British", "MS"=>"Montserrat", "SL"=>"Sierra Leone", "CK"=>"Cook Islands", "ID"=>"Indonesia", "MT"=>"Malta", "SM"=>"San Marino", "VI"=>"Virgin Islands, U.S.", "YE"=>"Yemen", "CL"=>"Chile", "IE"=>"Ireland", "LA"=>"Lao People's
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="" lang="" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta name="description" content="Behance.net is a platform for creative professionals across all industries. Members create multi-media portfolios that showcase their work within the network." />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link href="http://feeds.feedburner.com/appappealnewest" rel="alternate" title="RSS" type="application/rss+xml" />
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="verify-v1" content="T/wAkyyf8A4+sVlU3Nz1N2HRCm81jNkWH2VIPLNCyvw=" />
<title>Behance.net Review - Design - AppAppeal</title>
#!/bin/bash
# This file is available publicly online on http://gist.github.com/475358
# Use the raw link to download
if [ "`gem -v`" != "1.3.6" ]; then
sudo apt-get remove rubygems rubygems1.8 -y;
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz;
tar -xvzf rubygems-1.3.6.tgz;
sudo ruby rubygems-1.3.6/setup.rb;
sudo ln -sfv /usr/bin/gem1.8 /usr/bin/gem
fi
def to_filename(name)
result = name.downcase
result.gsub!(/\W/, ' ') # Remove any non word chars
result.gsub!(/\ /, '_') # Convert spaces to underscores
result.gsub!(/(_)$/, '') # Trim underscores at end
result.gsub!(/^(_)/, '') # Trim underscores at beginning
result.gsub!(/( )$/, '') # Trim spaces at end
result.gsub!(/^( )/, '') # Trim spaces at beginning
result = result[0..59]
(result.blank?) ? Time.now.to_i : result