start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
nohup xvfb-run --server-args="-screen 0 1920x1080x24" java -Dwebdriver.chrome.driver="/usr/local/bin/chromedriver" -Dwebdriver.chrome.whitelistedIps="" -jar /opt/selenium-server-standalone.jar -role hub & | |
sleep 10 | |
nohup xvfb-run --server-args="-screen 0 1920x1080x24" java -Dwebdriver.chrome.driver="/usr/local/bin/chromedriver" -Dwebdriver.chrome.whitelistedIps="" -jar /opt/selenium-server-standalone.jar -role node -hub http://10.160.1.5:4444/grid/register & |
#!/bin/bash | |
PROC_NAME="sync/cli/cron.php" | |
FECHA=$(date +%Y%m%d) | |
BASE_LOG="/CODE/logs/operaciones/unblock_sync_v2_${FECHA}.log" | |
# bucle con pids que coinciden con el nombre del proceso | |
for pid in $(ps -fe | grep $PROC_NAME | grep -v grep | awk '{print $2}'); do | |
# Recoge el tiempo que lleva corriendo y limpiamos de simbolo : |
$(document).ready(function() { | |
formmodified=0; | |
$('form *').change(function(){ | |
formmodified=1; | |
}); | |
window.onbeforeunload = confirmExit; | |
function confirmExit() { | |
if (formmodified == 1) { | |
return "No has guardado la información. ¿Estás seguro de que quieres salir?"; | |
} |
<script> | |
$(document).ready(function(){ | |
$('#txtStartDate').datepicker({ | |
dateFormat: 'dd/mm/yy', | |
onSelect: function(dateText, inst) { | |
var pieces = dateText.split('/'); | |
$('#day').val(pieces[0]); | |
$('#month').val(pieces[1]); |
{* | |
* 2007-2013 PrestaShop | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php | |
* If you did not receive a copy of the license and are unable to |
#! /usr/bin/env sh | |
firstTag=$(git tag | sort -r | head -1) | |
secondTag=$(git tag | sort -r | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}') | |
echo "Changes between ${secondTag} and ${firstTag}\n" | |
git log --pretty=format:' * %s' ${secondTag}..${firstTag} |