Skip to content

Instantly share code, notes, and snippets.

View josepgv's full-sized avatar
🏠
Working from home

Josep Garrigues Vila josepgv

🏠
Working from home
View GitHub Profile
<?php echo "asdfsadf"; ?>
// ==UserScript==
// @name Detecta tickets
// @namespace DetectaTickets
// @include https://www.evidaliasoporte.com/staff/index.php?_m=tickets&_a=manage
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require https://raw.githubusercontent.com/admsev/jquery-play-sound/master/jquery.playSound.js
// @require https://raw.githubusercontent.com/placemarker/jQuery-MD5/master/jquery.md5.js
// @require https://raw.githubusercontent.com/js-cookie/js-cookie/master/src/js.cookie.js
@josepgv
josepgv / sincronizador.php
Created October 7, 2015 22:34
Script para sincronizar carpeta remota
<?php
// para poner en cron sin que se pisen sincronizaciones
$carpeta_remota = "root@*.*.*.*:/carpeta/remota/";
$destino = "/carpeta/local";
$fichero_log = "/carpeta/local/log.txt";
$fichero_control = "/carpeta/local/control_sync.txt";
$estado = file_get_contents($fichero_control);