Skip to content

Instantly share code, notes, and snippets.

View jaimeiniesta's full-sized avatar

Jaime Iniesta jaimeiniesta

View GitHub Profile
# This prevents capistrano from hanging when executing long tasks
# /etc/ssh/sshd_config
TCPKeepAlive yes
ClientAliveInterval 15
ClientAliveCountMax 5
# Restart sshd
@jaimeiniesta
jaimeiniesta / 1-layout.html
Last active December 19, 2015 10:49
example of a site where HTML Inspector can't find the .row class
<!DOCTYPE html>
<head>
<link href="/assets/template/style.css?body=1" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="span8">
<h1 class="lead">
Hello!
@jaimeiniesta
jaimeiniesta / java_version
Created March 11, 2013 10:19
java exception when validating http://twitter.com
# java -version
java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
@jaimeiniesta
jaimeiniesta / ubuntu_12_10_64.log
Last active December 14, 2015 18:09
validator.nu logs
# Output of "python build/build.py all". Notice the warning about utf-8. The java exceptions always happen, even if I run the script again.
BUILD SUCCESSFUL
Total time: 3 seconds
"javac" -g -nowarn -classpath "./dependencies/commons-codec-1.4/commons-codec-1.4.jar:./dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar:./dependencies/icu4j-charsets-4_4_2.jar:./dependencies/icu4j-4_4_2.jar:./dependencies/iri-0.5/lib/iri.jar:./dependencies/jetty-6.1.26/lib/servlet-api-2.5-20081211.jar:./dependencies/jetty-6.1.26/lib/jetty-6.1.26.jar:./dependencies/jetty-6.1.26/lib/jetty-util-6.1.26.jar:./dependencies/jetty-6.1.26/lib/ext/jetty-ajp-6.1.26.jar:./dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar:./dependencies/rhino1_7R1/js.jar:./dependencies/xerces-2_9_1/xercesImpl.jar:./dependencies/xerces-2_9_1/xml-apis
@jaimeiniesta
jaimeiniesta / gist:4742442
Created February 8, 2013 22:22
generated html for discourse
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Discourse</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="description">
<meta content="" name="author">
<meta rel="canonical" href="">
@jaimeiniesta
jaimeiniesta / example.rb
Created January 10, 2013 20:00
Quick hack to be able to pass an HTML string to MetaInspector, bypassing the scraping of the document
require 'metainspector'
module MetaInspector
class Scraper
attr_writer :document
end
end
page = MetaInspector.new('http://example.com')
@jaimeiniesta
jaimeiniesta / Gemfile
Created September 7, 2012 09:58
How to colorize code in your comments using CodeRay
gem 'coderay'
@jaimeiniesta
jaimeiniesta / gist:3634676
Created September 5, 2012 10:26
Disqus doesnt highlight all code
I would like to talk about HTML in my comments and have it syntax highlighted, like
<pre><code><p style="color:#800; padding:20px;">This is my funky red paragraph.</p></code></pre>
... but instead it will be displayed as HTML in Disqus
http://help.disqus.com/customer/portal/articles/466253-what-html-tags-are-allowed-within-comments-
@jaimeiniesta
jaimeiniesta / example.html
Created August 31, 2012 09:01
html example
<pre><code><p style="color:#800; padding:20px;">This is my funky red paragraph.</p></code></pre>
@jaimeiniesta
jaimeiniesta / validator_log.txt
Created June 27, 2012 10:19
Errors installing www-validator
1.- Use Vagrant for a virtual machine with:
- Ubuntu Precise 32 bits
- apache
- build-essential
- cpanminus
2.- Compile tidyp
vagrant ssh