-
Create (option --no-hardlinks)
mkdir /path/to/repository.git
git clone --local --bare [--no-hardlinks] . /path/to/repository.git
-
Initial Data From branchname(could be master)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var window; | |
if (typeof window === "undefined" || window === null) { | |
window = {}; | |
} | |
if (typeof jQuery === "undefined" || jQuery === null) { | |
global.$ = require('jquery'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java 1.7.0_55 | |
hadoop 2.4.0 | |
hive 0.11 | |
postgres 9.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generates a string length of a specific character | |
* @param char Character to repeat | |
* @param times How many times | |
* @returns {string} | |
*/ | |
String.prototype.repeat= function(n){ | |
n= n || 1; | |
return Array(n+1).join(this); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect to origin db | |
use some_database; // This will be named db | |
// Connecto to destiny db2 | |
db2 = db.getSiblingDB('some_other_db'); | |
// Only if needed clean destiny collection | |
db2.some_or_other_collection.remove({}); | |
// Search all origin collection and copy each to destiny collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var urlLib = require('url'); | |
function UrlAdapter(urlString) { | |
this.urlObj = urlLib.parse(urlString, true); | |
// XXX remove the search property to force format() to use the query object when transforming the url object to a string | |
delete this.urlObj.search; | |
} | |
UrlAdapter.prototype.parse = urlLib.parse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAX_THREADS = 5 | |
delay = 0.5 | |
import psycopg2 | |
import re | |
import sys | |
import time | |
import threading | |
import urllib2 | |
import urlparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
Testing | |
<br> | |
<iframe id="deeptarget" name="deeptarget" src="about:blank" width="100%"> | |
</iframe> | |
<script type="application/javascript" src="iframe_script.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var clients = []; | |
net.createServer(function (socket) { | |
clients.push(socket); | |
socket.on('data', function (data) { | |
broadcast(data, socket); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Todos los artículos de 'RAFA' primero ordenados por serial y luego el resto de artículos ordenados igualmente por serial. | |
SELECT a.* FROM articulos a LEFT JOIN (SELECT 'RAFA' COLLATE utf8mb4_general_ci AS nombre) r on r.nombre = a.usuario | |
ORDER BY r.nombre DESC, serial |
OlderNewer