Skip to content

Instantly share code, notes, and snippets.

View antoniodemora's full-sized avatar

Antonio de Mora antoniodemora

  • Villahermosa, Tabasco
View GitHub Profile
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" media="screen" href="dropzone.css">
<script src="dropzone.js"></script>
<script>
var dzCargada;
var cargaDropzone = function (){
dzCargada = new Dropzone("#dzRegion", {
url: "/prueba.php",
@antoniodemora
antoniodemora / vimdiff.md
Created February 29, 2016 19:55 — forked from mattratleph/vimdiff.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

## enjoy the by-pass :)
echo "Base de datos Objetivo:"
read LOCAL_DATABASE
echo "usuario de la base de datos objetivo:"
read LOCAL_DB_USER
echo "host de la base de datos objetivo:"
read LOCALHOST
echo "Reseteando la base de datos objetivo"
echo "drop database if exists $LOCAL_DATABASE; create database $LOCAL_DATABASE" | psql -t -U $LOCAL_DB_USER -h $LOCALHOST template1
echo "Base de datos reseteada."