Skip to content

Instantly share code, notes, and snippets.

View alexrinass's full-sized avatar

Alexander Rinass alexrinass

View GitHub Profile
@alexrinass
alexrinass / sitemap.xml
Created May 7, 2011 11:30
Google sitemap.xml template
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://example.com/</loc>
<lastmod>2006-11-18</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
@alexrinass
alexrinass / robots.txt
Created May 7, 2011 11:29
robots.txt template
# For all user agents
User-agent: *
# Do not index these paths
#Disallow: /admin/
@alexrinass
alexrinass / index.html
Created May 7, 2011 11:25
XHTML Base Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8" />
<meta name="DC.Title" content="" />
<meta name="DC.Description" content="" />
<meta name="description" content="" />
<meta name="DC.Author" content="" />
<meta name="DC.Publisher" content="" />
<meta name="DC.Copyright" content="" />
@alexrinass
alexrinass / NSDateToday.h
Created January 15, 2010 08:30
Create date from today, without time in Cocoa
@interface NSDate (Today)
// Create date from today, without time
+ (NSDate *)dateWithToday;
@end
# Chmod files with certain extension only
find . -type f -name "*\.pl" | xargs chmod 755