Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Hernán Flores Leyes hernanflores

:shipit:
  • MercadoLibre.com
View GitHub Profile
View gist:9806871
<!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}
@hernanflores
hernanflores / gist:2254777
Created Mar 30, 2012
Pseudo-Sincro de Mp3
View gist:2254777
rsync -ruvzW --exclude='*.ini' --exclude='AlbumArt_*' --progress $source $destination
@hernanflores
hernanflores / gist:2206056
Created Mar 26, 2012
Como correr java app con RMI
View gist:2206056
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 / worker9.properties
Created Mar 8, 2012
Ejemplo de configuracion de worker de Payments
View worker9.properties
###############################################################
# 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 / remove_key.sh
Created Jan 9, 2012
Comandos remotos memcached
View remove_key.sh
#!/bin/sh
host=localhost
port=11211
cmd="delete $1"
echo "about to exec: $cmd"
( echo open ${host} ${port}
sleep 1
#echo -e "\r"
View mk2pdf.sh
#!/bin/bash
#requires markdown & wkhtmltopdf
markdown $1.md > $1.html;wkhtmltopdf -s A4 $1.html $1.pdf;rm $1.html
View blankTumblrTemplate.html
<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">
/* ================ */
View Tumblr Theme
<!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}