Skip to content

Instantly share code, notes, and snippets.

View xikaos's full-sized avatar

Francisco Budaszewski Zanatta xikaos

  • Tiny ERP by Olist
  • Brazil
  • 16:19 (UTC -03:00)
View GitHub Profile
<% favicons.each do |favicon| %>
<% unless favicon[:rel].nil? %>
<link rel="<%= favicon[:rel]%>" sizes="<%= favicon[:size]%>" href="<%= data.informacoes_do_site.hostname + "/" + favicon[:icon]%>">
<% end -%>
<% end -%>
@mixin test-img-alt {
img {
border: 2px dotted red;
}
img[alt] {
border: none;
}
}
@mixin test-link-title {
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="padding: 20px 0 0 0;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#f46e6c" style="padding: 12px 18px 12px 18px; -webkit-border-radius:3px; border-radius:3px" align="center"><a href="http://litmus.com" style="font-size: 16px; font-family: Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none;">Learn more &rarr;</a></td>
</tr>
</table>
</td>
</tr>
@xikaos
xikaos / .htaccess
Last active April 13, 2016 18:31 — forked from Jesm/.htaccess
Just some trivial tasks to do with .htaccess
<IfModule mod_rewrite.c>
# Redirect to another domain
RewriteCond %{HTTP_HOST} ^example\.com$ [NC] # Here goes the regex to match the domain that will be redirected
RewriteCond %{HTTP_HOST} ^(www\.)?example\.net$ [NC] # Create a new condition for every domain, if possible
RewriteRule ^(.*)$ http://www.example.it/$1 [R=301,NC,L]
# Force redirect to www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^example\.com$ [NC] # Here goes the regex to match the domain that will be redirected
RewriteCond %{HTTP_HOST} ^(www\.)?example\.net$ [NC] # Create a new condition for every domain, if possible
RewriteRule ^(.*)$ http://www.example.it/$1 [R=301,NC,L]
# Force redirect to www
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,NC,L]
</IfModule>