Skip to content

Instantly share code, notes, and snippets.

View hernanflores's full-sized avatar
:shipit:

Hernán Flores Leyes hernanflores

:shipit:
  • MercadoLibre.com
View GitHub Profile
@hernanflores
hernanflores / gist:9806871
Created March 27, 2014 12:52
tumblr theme #2
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{Title}{block:PostTitle}: {PostTitle}{/block:PostTitle}</title>
{block:Description}
<!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" dir="ltr" lang="en-US">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{Title}</title>
<meta name="description" content="{MetaDescription}" />
<link rel="shortcut icon" href="{Favicon}" />
<link rel="alternate" type="application/rss+xml" href="{RSS}" />
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<style type="text/css">
/* ================ */
@hernanflores
hernanflores / mk2pdf.sh
Created May 12, 2011 03:12
markdown to pdf
#!/bin/bash
#requires markdown & wkhtmltopdf
markdown $1.md > $1.html;wkhtmltopdf -s A4 $1.html $1.pdf;rm $1.html
@hernanflores
hernanflores / remove_key.sh
Created January 9, 2012 16:28
Comandos remotos memcached
#!/bin/sh
host=localhost
port=11211
cmd="delete $1"
echo "about to exec: $cmd"
( echo open ${host} ${port}
sleep 1
#echo -e "\r"
@hernanflores
hernanflores / worker9.properties
Created March 8, 2012 20:30
Ejemplo de configuracion de worker de Payments
###############################################################
# User Exit for Java Properties.
# These properties configure the C-User-Exit (native library).
###############################################################
goldengate.userexit.chkptprefix=JAVAUE_
goldengate.userexit.nochkpt=TRUE
goldengate.userexit.timestamp=default
goldengate.userexit.writers=javawriter
goldengate.log.modules=UTIL,UEUTIL,TXSTORE,UTILS,JAVAWRITER,JAVAUSEREXIT
goldengate.log.level=INFO
@hernanflores
hernanflores / gist:2206056
Created March 26, 2012 15:41
Como correr java app con RMI
java -Djava.security.manager -Djava.security.policy=${policy_file_path} -Djava.rmi.server.codebase=${rmi_classpath}
Ejemplo:
java -Djava.security.manager -Djava.security.policy=/home/hernan/repos/DistribuidosRMI/src/java.policy -Djava.rmi.server.codebase=file:///home/hernan/repos/DistribuidosRMI/src/
@hernanflores
hernanflores / gist:2254777
Created March 30, 2012 20:32
Pseudo-Sincro de Mp3
rsync -ruvzW --exclude='*.ini' --exclude='AlbumArt_*' --progress $source $destination