Skip to content

Instantly share code, notes, and snippets.

View apbarrero's full-sized avatar

Antonio Pérez Barrero apbarrero

View GitHub Profile
[antonio@localhost] rsync_project: rsync -pthrvz --rsh='ssh -p 22 ' /var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpJ0XIrt antonio@localhost:/var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpLUX7m_
[localhost] local: rsync -pthrvz --rsh='ssh -p 22 ' /var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpJ0XIrt antonio@localhost:/var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpLUX7m_
Password:
building file list ... done
tmpJ0XIrt/
tmpJ0XIrt/tmp7BuTNr
sent 110 bytes received 48 bytes 45.14 bytes/sec
total size is 0 speedup is 0.00
.[antonio@localhost] rsync_project: rsync -pthrvz --rsh='ssh -p 22 ' antonio@localhost:/var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmp4KS64r /var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpnYN8AK
@apbarrero
apbarrero / test_rsync.py
Last active December 14, 2015 10:19
Basic rsync_project up/downstream option tests
#!/usr/bin/env python
import os
import tempfile
import unittest
import shutil
from fabric.api import *
from fabric.contrib.project import rsync_project
class TestRsync(unittest.TestCase):
@apbarrero
apbarrero / git-completion.tcsh
Created December 5, 2012 08:59 — forked from kohenkatz/git-completion.tcsh
Source this file in your .tcshrc to get git command completion. Original source is http://gtirtha.wordpress.com/2010/05/14/git-autocomplete/ but WordPress's WSYIWYG editor messed it up and I cleaned it up.
# Source this script in tcsh to setup shell completions
# for git. Completions are activated by typing or Control-D
# in the shell after entering a partial command.
#
# Usage:
# source git-completion.tcsh (e.g. in ~/.cshrc)
#
# Supported completions:
# git (lists git commands)
# git help (lists git commands)
@apbarrero
apbarrero / gist:1268726
Created October 6, 2011 21:26
Final XSLT using the Muenchian method for SVN log
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="ticket" select="__none__" />
<xsl:output encoding="utf-8" method="xml" indent="yes" />
<xsl:key use="concat(text(), substring-before(../../msg, ':'))" name="path-key"
match="path" />
<xsl:template match="log">
@apbarrero
apbarrero / gist:1268724
Created October 6, 2011 21:24
Result of second XSLT using the Muenchian method
<?xml version="1.0" encoding="utf-8"?>
<log>
<path kind="file" action="M">/trunk/file1.txt</path>
<path kind="file" action="M">/trunk/file2.txt</path>
<path kind="file" action="M">/trunk/file4.txt</path>
</log>
@apbarrero
apbarrero / gist:1268720
Created October 6, 2011 21:23
Second XSLT using the Muenchian method (II)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="utf-8" method="xml" indent="yes" />
<xsl:key use="text()" name="path-key"
match="path" />
<xsl:template match="log">
<xsl:copy>
@apbarrero
apbarrero / gist:1268715
Created October 6, 2011 21:22
Second XSLT using the Muenchian method (I)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="ticket" select="__none__" />
<xsl:output encoding="utf-8" method="xml" indent="yes" />
<xsl:template match="log">
<xsl:copy>
<xsl:element name="ticket">
<xsl:value-of select="$ticket" />
@apbarrero
apbarrero / gist:1268707
Created October 6, 2011 21:20
Result of first XSLT using the Muenchian method for SVN log
<?xml version="1.0" encoding="utf-8"?>
<log>
<ticket>ISSUE-2</ticket>
<path kind="file" action="M">/trunk/file4.txt</path>
</log>
@apbarrero
apbarrero / gist:1268703
Created October 6, 2011 21:18
First XSLT using the Muenchian method for SVN log
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="ticket" select="__none__" />
<xsl:output encoding="utf-8" method="xml" indent="yes" />
<xsl:key use="text()" name="path-key"
match="path" />
<xsl:template match="log">
@apbarrero
apbarrero / gist:1262879
Created October 4, 2011 21:29
Result of first XSLT
<?xml version="1.0" encoding="utf-8"?>
<log>
<ticket>ISSUE-2</ticket>
<path kind="file" action="M">/trunk/file1.txt</path>
<path kind="file" action="M">/trunk/file2.txt</path>
<path kind="file" action="M">/trunk/file1.txt</path>
<path kind="file" action="M">/trunk/file4.txt</path>
</log>