Skip to content

Instantly share code, notes, and snippets.

View ebratb's full-sized avatar

Ramón Torres ebratb

View GitHub Profile
@ebratb
ebratb / deploy.rake
Created June 21, 2012 04:52 — forked from mig/deploy.rake
Hot capistrano replacement
task :deploy do
`rsync -rltvz -e ssh . deploy@hostname:/var/www/apps/my_app`
`ssh deploy@hostname touch /var/www/apps/my_app/public/restart.txt`
end
@ebratb
ebratb / mobile-meta-links.html
Created August 15, 2012 04:08
iOS Web App Configuration
@ebratb
ebratb / JRuby on Rails thread safe HOW-TO.md
Created September 10, 2012 17:29
Thread-safe JRuby on Rails HOW-TO with the help of Warbler, Apache Tomcat and JNDI
@ebratb
ebratb / xsd-merge.xslt
Created October 2, 2012 15:11 — forked from dex4er/xsd-merge.xslt
XSLT tools for XSD and WSDL schemas
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsl:output version="1.0" encoding="utf-8" indent="yes" name="xml" />
<xsl:template match="/">
<xsl:apply-templates />
@ebratb
ebratb / menu.lst.diff
Created October 8, 2012 19:06 — forked from pizzapanther/menu.lst.diff
Fix Ubuntu 12.04 menu.lst for Rackspace
Line 1: Good
Line 2: Bad
135c135
< kernel /boot/vmlinuz-3.2.0-25-virtual root=/dev/xvda1 console=hvc0 ro quiet splash
---
> kernel /boot/vmlinuz-3.2.0-25-virtual root=UUID=/dev/xvda1 ro quiet splash
140c140
< kernel /boot/vmlinuz-3.2.0-25-virtual root=/dev/xvda1 console=hvc0 ro single
---
@ebratb
ebratb / dnsd.rb
Created October 18, 2012 23:13 — forked from peterc/dnsd.rb
Simple, scrappy UDP DNS server in Ruby (with protocol annotations)
# Simple, scrappy UDP DNS server in Ruby (with protocol annotations)
# By Peter Cooper
#
# MIT license
#
# * Not advised to use in your production environment! ;-)
# * Requires Ruby 1.9
# * Supports A and CNAME records
# * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance
# * All records get the same TTL
@ebratb
ebratb / Textmate bundles
Created October 22, 2012 05:08
TextMate Bundles
# Textmate essential bundles
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript.tmbundle
git clone git://github.com/johnmuhl/nginx-tmbundle.git nginx.tmbundle
git clone git://github.com/fredwu/ruby-slim-tmbundle.git Ruby-Slim.tmbundle
git clone git://github.com/libin/RubyMotion.tmbundle.git
#git clone git://github.com/tycooon/ruby-slim-tmbundle.git Ruby-Slim.tmbundle
doctype html
/[if lt IE 7]
| <html class="ie6">
/[if IE 7]
| <html class="ie7">
/[if IE 8]
| <html class="ie8">
/[if IE 9]
| <html class="ie9">
| <!--[if (gte IE 9)|!(IE)]<!--> <html> <!--<![endif]-->
@ebratb
ebratb / pedantically_commented_playbook.yml
Created October 13, 2015 18:28 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@ebratb
ebratb / demo.go
Created April 28, 2016 21:22 — forked from liyonghelpme/demo.go
golang http proxy
package main
import (
"flag"
"log"
"net/http"
"strings"
"unicode"
"io/ioutil"
//"os"
)